Package sootup.core.jimple.basic
Class SimpleStmtPositionInfo
java.lang.Object
sootup.core.jimple.basic.StmtPositionInfo
sootup.core.jimple.basic.SimpleStmtPositionInfo
- Direct Known Subclasses:
FullStmtPositionInfo
This class stores position information (the line number + first/last column) stored for a
statement.
- Author:
- Markus Schmidt
-
Field Summary
Fields inherited from class sootup.core.jimple.basic.StmtPositionInfo
NOPOSITION
-
Constructor Summary
ConstructorDescriptionSimpleStmtPositionInfo
(int lineNumber) Create an instance only from line number, this is usually the case from byte code front-end.SimpleStmtPositionInfo
(Position stmtPosition) -
Method Summary
Modifier and TypeMethodDescriptiongetOperandPosition
(int index) Return the precise position of the given operand in the statement.Return the position of the statement.Methods inherited from class sootup.core.jimple.basic.StmtPositionInfo
getNoStmtPositionInfo, toString
-
Field Details
-
stmtPosition
-
-
Constructor Details
-
SimpleStmtPositionInfo
-
SimpleStmtPositionInfo
public SimpleStmtPositionInfo(int lineNumber) Create an instance only from line number, this is usually the case from byte code front-end.- Parameters:
lineNumber
- the line number of the statement.
-
-
Method Details
-
getStmtPosition
Description copied from class:StmtPositionInfo
Return the position of the statement.- Specified by:
getStmtPosition
in classStmtPositionInfo
- Returns:
- the position of the statement
-
getOperandPosition
Description copied from class:StmtPositionInfo
Return the precise position of the given operand in the statement.- Specified by:
getOperandPosition
in classStmtPositionInfo
- Parameters:
index
- the operand index- Returns:
- the position of the given operand
-