Package it.unive.lisa.imp.constructs
Class StringSubstring.IMPStringSubstring
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.Statement
-
- it.unive.lisa.program.cfg.statement.Expression
-
- it.unive.lisa.program.cfg.statement.NaryExpression
-
- it.unive.lisa.program.cfg.statement.TernaryExpression
-
- it.unive.lisa.program.cfg.statement.string.Substring
-
- it.unive.lisa.imp.constructs.StringSubstring.IMPStringSubstring
-
- All Implemented Interfaces:
it.unive.lisa.program.cfg.ProgramPoint
,it.unive.lisa.program.cfg.statement.PluggableStatement
,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>
- Enclosing class:
- StringSubstring
public static class StringSubstring.IMPStringSubstring extends it.unive.lisa.program.cfg.statement.string.Substring implements it.unive.lisa.program.cfg.statement.PluggableStatement
An expression modeling the string substring operation. The type of the first operand must beStringType
, while the other two operands' types must beInt32Type
. The type of this expression is theStringType
.
-
-
Constructor Summary
Constructors Constructor Description IMPStringSubstring(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, it.unive.lisa.program.cfg.statement.Expression left, it.unive.lisa.program.cfg.statement.Expression middle, it.unive.lisa.program.cfg.statement.Expression right)
Builds the substring.IMPStringSubstring(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.program.cfg.statement.Expression left, it.unive.lisa.program.cfg.statement.Expression middle, it.unive.lisa.program.cfg.statement.Expression right)
Builds the substring.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringSubstring.IMPStringSubstring
build(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, it.unive.lisa.program.cfg.statement.Expression... params)
Builds a new instance of this native call, according to thePluggableStatement
contract.void
setOriginatingStatement(it.unive.lisa.program.cfg.statement.Statement st)
-
Methods inherited from class it.unive.lisa.program.cfg.statement.string.Substring
compareSameClassAndParams, fwdTernarySemantics
-
Methods inherited from class it.unive.lisa.program.cfg.statement.TernaryExpression
backwardSemanticsAux, bwdTernarySemantics, forwardSemanticsAux, getLeft, getMiddle, getRight
-
Methods inherited from class it.unive.lisa.program.cfg.statement.NaryExpression
accept, backwardSemantics, compareSameClass, equals, forwardSemantics, getConstructName, getOrder, getStatementEvaluatedAfter, getStatementEvaluatedBefore, getSubExpressions, hashCode, toString
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Expression
getMetaVariables, getParentStatement, getRootStatement, getStaticType, setParentStatement
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Statement
compareTo, getCFG, getEvaluationPredecessor, getEvaluationSuccessor, getLocation, stopsExecution, throwsError
-
-
-
-
Constructor Detail
-
IMPStringSubstring
public IMPStringSubstring(it.unive.lisa.program.cfg.CFG cfg, java.lang.String sourceFile, int line, int col, it.unive.lisa.program.cfg.statement.Expression left, it.unive.lisa.program.cfg.statement.Expression middle, it.unive.lisa.program.cfg.statement.Expression right)
Builds the substring.- Parameters:
cfg
- theCFG
where this operation liessourceFile
- the source file name where this operation is definedline
- the line number where this operation is definedcol
- the column where this operation is definedleft
- the left-hand side of this operationmiddle
- the middle operand of this operationright
- the right-hand side of this operation
-
IMPStringSubstring
public IMPStringSubstring(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, it.unive.lisa.program.cfg.statement.Expression left, it.unive.lisa.program.cfg.statement.Expression middle, it.unive.lisa.program.cfg.statement.Expression right)
Builds the substring.- Parameters:
cfg
- theCFG
where this operation lieslocation
- the code location where this operation is definedleft
- the left-hand side of this operationmiddle
- the middle operand of this operationright
- the right-hand side of this operation
-
-
Method Detail
-
build
public static StringSubstring.IMPStringSubstring build(it.unive.lisa.program.cfg.CFG cfg, it.unive.lisa.program.cfg.CodeLocation location, it.unive.lisa.program.cfg.statement.Expression... params)
Builds a new instance of this native call, according to thePluggableStatement
contract.- Parameters:
cfg
- the cfg where the native call happenslocation
- the location where the native call happensparams
- the parameters of the native call- Returns:
- the newly-built call
-
setOriginatingStatement
public void setOriginatingStatement(it.unive.lisa.program.cfg.statement.Statement st)
- Specified by:
setOriginatingStatement
in interfaceit.unive.lisa.program.cfg.statement.PluggableStatement
-
-