Home | History | Annotate | Download | only in store

Lines Matching defs:Location

40 public class Location {
51 public Location parentLocation;
54 public Location() {
58 public Location(Location other) {
65 public Location(Token start, Token end) {
84 public Location(ParserRuleContext context) {
89 public Location(int startLine, int startOffset, int endLine, int endOffset) {
98 return "Location{" +
107 public void setParentLocation(Location parentLocation) {
120 Location location = (Location) o;
122 if (endLine != location.endLine) {
125 if (endOffset != location.endOffset) {
128 if (startLine != location.startLine) {
131 if (startOffset != location.startOffset) {
134 return !(parentLocation != null ? !parentLocation.equals(location.parentLocation)
135 : location.parentLocation != null);
152 public boolean contains(Location other) {
165 private Location getValidParentAbsoluteLocation() {
175 public Location toAbsoluteLocation() {
176 Location absoluteParent = getValidParentAbsoluteLocation();
180 Location copy = new Location(this);
198 public static Location fromUserReadableString(String str) {
201 return new Location();
206 Location location = new Location();
208 location.startLine = point[0];
209 location.startOffset = point[1];
212 location.endLine = point[0];
213 location.endOffset = point[1];
214 return location;
230 public List<Location> provideScopeLocation() {
231 return Collections.singletonList(Location.this);