Class ShortLiteralNode
java.lang.Object
org.checkerframework.dataflow.cfg.node.Node
org.checkerframework.dataflow.cfg.node.ValueLiteralNode
org.checkerframework.dataflow.cfg.node.ShortLiteralNode
- All Implemented Interfaces:
org.plumelib.util.UniqueId
A node for a short literal. For example:
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.
-
Field Summary
Fields inherited from class org.checkerframework.dataflow.cfg.node.ValueLiteralNode
tree -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(NodeVisitor<R, P> visitor, P p) Accept method of the visitor pattern.booleangetValue()Returns the value of the literal, null for the null literal.Methods inherited from class org.checkerframework.dataflow.cfg.node.ValueLiteralNode
getTree, hashCode, toStringMethods inherited from class org.checkerframework.dataflow.cfg.node.Node
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.plumelib.util.UniqueId
getClassAndUid
-
Constructor Details
-
ShortLiteralNode
Create a new ShortLiteralNode.- Parameters:
t- the tree for the literal value
-
-
Method Details
-
getValue
Description copied from class:ValueLiteralNodeReturns the value of the literal, null for the null literal.- Specified by:
getValuein classValueLiteralNode- Returns:
- the value of the literal, null for the null literal
-
accept
Description copied from class:NodeAccept method of the visitor pattern. -
equals
- Overrides:
equalsin classValueLiteralNode
-
getOperands
Description copied from class:Node- Overrides:
getOperandsin classValueLiteralNode- Returns:
- a collection containing all of the operand
Nodes of thisNode
-