Package org.pgcodekeeper.core
Class ContextLocation
java.lang.Object
org.pgcodekeeper.core.ContextLocation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AntlrError,PgObjLocation
Represents a location context within a file, storing position information
including file path, offset, line number and character position.
This is an abstract base class for concrete location implementations.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this location with another object for equality.intintintinthashCode()Computes a hash code based on all location attributes.
-
Method Details
-
getFilePath
-
getOffset
public int getOffset() -
getLineNumber
public int getLineNumber() -
getCharPositionInLine
public int getCharPositionInLine() -
equals
Compares this location with another object for equality. -
hashCode
public int hashCode()Computes a hash code based on all location attributes.
-