Package overit.geocall.util.gson
Class Path
java.lang.Object
overit.geocall.util.gson.Path
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute()Returns if the path is absolutegetNode(int i) Returns thePath.Nodein the given positionbooleanReturns if two path matchesvoidpop()Removes the last tokenvoidPush a new NamevoidpushPos(int pos) Push a new positionintsize()Returns the token size of the pathtoString()
-
Field Details
-
absolute
protected boolean absolute
-
-
Constructor Details
-
Path
Creates a new Path- Parameters:
s- String containing the path
-
-
Method Details
-
getNode
Returns thePath.Nodein the given position -
absolute
public boolean absolute()Returns if the path is absolute- Returns:
trueif the path is absolute,falseotherwise
-
pushName
Push a new Name- Parameters:
name- String containing the name
-
pushPos
public void pushPos(int pos) Push a new position- Parameters:
pos- Integer containing the position
-
pop
public void pop()Removes the last token -
size
public int size()Returns the token size of the path- Returns:
- The token size of the path
-
matches
Returns if two path matches- Parameters:
p- The path to check- Returns:
trueif the two path matches,falseotherwise
-
toString
-