public class CharacterLiteralNode extends ValueLiteralNode
'a' '\t' 'Ω'
tree
Constructor and Description |
---|
CharacterLiteralNode(LiteralTree t)
Create a new CharacterLiteralNode.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(@Nullable Object obj)
Compare the value of this nodes.
|
Collection<Node> |
getOperands()
|
Character |
getValue()
Returns the value of the literal, null for the null literal.
|
getTree, hashCode, toString
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValue
public CharacterLiteralNode(LiteralTree t)
t
- the character literalpublic Character getValue()
ValueLiteralNode
getValue
in class ValueLiteralNode
public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node
public boolean equals(@Nullable Object obj)
ValueLiteralNode
equals
in class ValueLiteralNode
public Collection<Node> getOperands()
Node
getOperands
in class ValueLiteralNode
Node
s of this Node