V - the node type the tree-pattern is workingpublic static final class TreePattern.Var<V> extends TreePattern.Decl<V> implements Comparable<TreePattern.Var<V>>, Serializable
$x,
$y or $my_var. It is one of two implementations of the
sealed TreePattern.Decl class.TreePattern.Val,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TreePattern.Var<V> var) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name()
Return the name of the variable.
|
static <V> TreePattern.Var<V> |
of(String name)
Return a new variable with the given name.
|
String |
toString() |
public int compareTo(TreePattern.Var<V> var)
compareTo in interface Comparable<TreePattern.Var<V>>public static <V> TreePattern.Var<V> of(String name)
V - the node type the tree-pattern is working onname - the name of the variableNullPointerException - if the given name is nullIllegalArgumentException - if the given name is not a
valid Java identifier© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)