public final class Path
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Path() |
Path(java.lang.CharSequence... fields)
Creates path from given path elements.
|
Modifier and Type | Method and Description |
---|---|
Path |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.CharSequence |
get(int i)
Returns path chunk at given index.
|
Path |
getAltPath()
Returns alternative path.
|
int |
hashCode() |
int |
length()
Returns path length.
|
static Path |
parse(java.lang.String path)
Parses input dot-separated string that represents a path.
|
java.lang.CharSequence |
pop()
Pop last element from the path.
|
Path |
push(java.lang.CharSequence field)
Push element to the path.
|
Path |
push(java.lang.CharSequence field,
java.lang.CharSequence altField) |
java.lang.String |
toString() |
public Path()
public Path(java.lang.CharSequence... fields)
public static Path parse(java.lang.String path)
public Path getAltPath()
public Path push(java.lang.CharSequence field)
public Path push(java.lang.CharSequence field, java.lang.CharSequence altField)
public java.lang.CharSequence pop()
public int length()
public java.lang.CharSequence get(int i)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Path clone()
clone
in class java.lang.Object
Copyright © 2003-present Jodd Team