public class ShortLiteralNode extends ValueLiteralNode
5 0x8fffJava source and the AST representation do not have "short" literals. They have integer literals that may be narrowed to shorts depending on context. If we use explicit NarrowingConversionNodes, do we need ShortLiteralNodes too? TODO: Decide this question.
tree| Constructor and Description |
|---|
ShortLiteralNode(LiteralTree t)
Create a new ShortLiteralNode.
|
| 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() |
Short |
getValue() |
getTree, hashCode, toStringgetAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValuepublic ShortLiteralNode(LiteralTree t)
t - the tree for the literal valuepublic Short getValue()
getValue in class ValueLiteralNodepublic <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Nodepublic boolean equals(@Nullable Object obj)
ValueLiteralNodeequals in class ValueLiteralNodepublic Collection<Node> getOperands()
getOperands in class ValueLiteralNodeNodes of this Node.