Class StringLiteralNode
- java.lang.Object
-
- org.checkerframework.dataflow.cfg.node.Node
-
- org.checkerframework.dataflow.cfg.node.ValueLiteralNode
-
- org.checkerframework.dataflow.cfg.node.StringLiteralNode
-
- All Implemented Interfaces:
org.plumelib.util.UniqueId
public class StringLiteralNode extends ValueLiteralNode
A node for an string literal. For example:"abc"
-
-
Constructor Summary
Constructors Constructor Description StringLiteralNode(com.sun.source.tree.LiteralTree t)
Create a new StringLiteralNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(NodeVisitor<R,P> visitor, P p)
Accept method of the visitor pattern.boolean
equals(@Nullable java.lang.Object obj)
java.util.Collection<Node>
getOperands()
java.lang.String
getValue()
Returns the value of the literal, null for the null literal.java.lang.String
toString()
-
Methods inherited from class org.checkerframework.dataflow.cfg.node.ValueLiteralNode
getTree, hashCode
-
Methods inherited from class org.checkerframework.dataflow.cfg.node.Node
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebug
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Description copied from class:ValueLiteralNode
Returns the value of the literal, null for the null literal.- Specified by:
getValue
in classValueLiteralNode
- Returns:
- the value of the literal, null for the null literal
-
accept
public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Description copied from class:Node
Accept method of the visitor pattern.
-
equals
public boolean equals(@Nullable java.lang.Object obj)
- Overrides:
equals
in classValueLiteralNode
-
getOperands
@SideEffectFree public java.util.Collection<Node> getOperands()
Description copied from class:Node
- Overrides:
getOperands
in classValueLiteralNode
- Returns:
- a collection containing all of the operand
Node
s of thisNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueLiteralNode
-
-