Class StringLiteral
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.Statement
-
- it.unive.lisa.program.cfg.statement.Expression
-
- it.unive.lisa.program.cfg.statement.literal.Literal<java.lang.String>
-
- it.unive.lisa.program.cfg.statement.literal.StringLiteral
-
- All Implemented Interfaces:
it.unive.lisa.program.cfg.ProgramPoint,it.unive.lisa.program.CodeElement,it.unive.lisa.util.datastructures.graph.code.CodeNode<it.unive.lisa.program.cfg.CFG,it.unive.lisa.program.cfg.statement.Statement,it.unive.lisa.program.cfg.edge.Edge>,it.unive.lisa.util.datastructures.graph.Node<it.unive.lisa.program.cfg.CFG,it.unive.lisa.program.cfg.statement.Statement,it.unive.lisa.program.cfg.edge.Edge>,java.lang.Comparable<it.unive.lisa.program.cfg.statement.Statement>
public class StringLiteral extends it.unive.lisa.program.cfg.statement.literal.Literal<java.lang.String>ALiteralrepresenting a constant string value. Instances of this literal have aStringTypestatic type.
-
-
Constructor Summary
Constructors Constructor Description StringLiteral(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, java.lang.String value)Builds the literal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()-
Methods inherited from class it.unive.lisa.program.cfg.statement.literal.Literal
accept, equals, getValue, hashCode, semantics, setOffset
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Expression
getMetaVariables, getParentStatement, getRootStatement, getStatementEvaluatedBefore, getStaticType, setParentStatement
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Statement
compareTo, getCFG, getEvaluationPredecessor, getLocation, getOffset, stopsExecution, throwsError
-
-
-
-
Constructor Detail
-
StringLiteral
public StringLiteral(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, java.lang.String value)Builds the literal.- Parameters:
cfg- theCFGwhere this literal lieslocation- the location where this literal is definedvalue- the constant value represented by this literal
-
-