Package pascal.taie.ir.stmt
Class New
- All Implemented Interfaces:
Serializable
,Stmt
,Indexable
Representation of following kinds of new statements:
- new instance: o = new T
- new array: o = new T[..]
- new multi-array: o = new T[..][..]
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(StmtVisitor<T> visitor) boolean
int
getIndex()
int
void
setIndex
(int index) void
setLineNumber
(int lineNumber)
-
Field Details
-
index
protected int index -
lineNumber
protected int lineNumber
-
-
Constructor Details
-
New
-
-
Method Details
-
getContainer
-
accept
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceStmt
- Returns:
- the line number of this Stmt in the original source file. If the line number is unavailable, return -1.
-
setLineNumber
public void setLineNumber(int lineNumber) - Specified by:
setLineNumber
in interfaceStmt
-
canFallThrough
public boolean canFallThrough()- Specified by:
canFallThrough
in interfaceStmt
- Returns:
- true if execution after this statement could continue at the following statement, otherwise false.
-