org.stjs.generator
Class SourcePosition

java.lang.Object
  extended by org.stjs.generator.SourcePosition
All Implemented Interfaces:
Serializable

@Immutable
public final class SourcePosition
extends Object
implements Serializable

This class indicated a position in a source file (line, column) where the given identifier starts.

Author:
Alexandru Craciun
See Also:
Serialized Form

Constructor Summary
SourcePosition(File file, int beginLine, int beginColumn)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getColumn()
           
 File getFile()
           
 int getLine()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourcePosition

public SourcePosition(File file,
                      int beginLine,
                      int beginColumn)
Method Detail

getLine

public int getLine()

getColumn

public int getColumn()

getFile

public File getFile()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.