checkers.flow
Class Location
java.lang.Object
   checkers.flow.Location
checkers.flow.Location
- public final class Location 
- extends Object
Represents the location of a Tree. A tree's location may be uniquely
 identified by its source position (character offset) and Tree.Kind.
 Source position alone is not sufficient, since many trees may share the same
 source position (for instance, the member select "a.b" and the identifier "a"
 in that select have the same source position, but different kinds).
- See Also:
- for determining a tree's source position (character offset)
 
 
 
 
position
public final Long position
- The tree's source position (as a character offset).
 
 
kind
public final Tree.Kind kind
- The tree's kind.
 
 
Location
public Location(long position,
                Tree.Kind kind)
- Creates a new Locationfrom a position andTree.Kind.
 Positions can be obtained from a tree using the SourcePositionsclass.
 
 
- Parameters:
- position- the tree's position
- kind- the tree's kind
- See Also:
- SourcePositions
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Object
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
-