public class Identifier extends AbstractNode
An Identifier is a SimpleName or a String in double quotes.
Constructor and Description |
---|
Identifier(SimpleName name) |
Identifier(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Try to accept this node by a visitor.
|
java.lang.String |
getValue() |
java.lang.String |
toString() |
compareTo
public Identifier(java.lang.String value)
public Identifier(SimpleName name)
public java.lang.String getValue()
public void accept(Visitor visitor)
AbstractNode
Try to accept this node by a visitor.
accept
in interface Node
accept
in class AbstractNode
visitor
- the visitorpublic java.lang.String toString()
toString
in class java.lang.Object