Package sootup.core.jimple.common.stmt
Class JIdentityStmt
java.lang.Object
sootup.core.jimple.common.stmt.AbstractStmt
sootup.core.jimple.common.stmt.AbstractDefinitionStmt
sootup.core.jimple.common.stmt.JIdentityStmt
- All Implemented Interfaces:
EquivTo,FallsThroughStmt,Stmt,Acceptor<StmtVisitor>
-
Field Summary
Fields inherited from class sootup.core.jimple.common.stmt.AbstractStmt
positionInfo -
Constructor Summary
ConstructorsConstructorDescriptionJIdentityStmt(@NonNull Local local, @NonNull IdentityRef identityValue, @NonNull StmtPositionInfo positionInfo) -
Method Summary
Modifier and TypeMethodDescription<V extends StmtVisitor>
Vaccept(@NonNull V v) Called when this object is visited.booleanbranches()Returns true if execution after this statement does not necessarily continue at the following statement.intReturns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.booleanReturns true if execution after this statement may continue at the following statement.@NonNull LocalReturns the left-hand side (defined value) of this definition.@NonNull IdentityRefReturns the right-hand side (value being assigned) of this definition.booleantoString()voidtoString(@NonNull StmtPrinter up) @NonNull JIdentityStmtwithIdentityValue(@NonNull IdentityRef identityValue) @NonNull JIdentityStmt@NonNull FallsThroughStmtwithNewDef(@NonNull Local newLocal) Returns a copy of this statement with the defined local replaced by newLocal.@NonNull JIdentityStmtwithPositionInfo(@NonNull StmtPositionInfo positionInfo) Methods inherited from class sootup.core.jimple.common.stmt.AbstractDefinitionStmt
collectUses, getDef, getTypeMethods inherited from class sootup.core.jimple.common.stmt.AbstractStmt
asInvokableStmt, containsArrayRef, containsFieldRef, getArrayRef, getExpectedSuccessorCount, getFieldRef, getPositionInfo, isInvokableStmt, withNewUseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface sootup.core.jimple.common.stmt.Stmt
asInvokableStmt, asJAssignStmt, asJBreakpointStmt, asJEnterMonitorStmt, asJExitMonitorStmt, asJGotoStmt, asJIfStmt, asJInvokeStmt, asJNopStmt, asJRetStmt, asJReturnStmt, asJReturnVoidStmt, asJSwitchStmt, asJThrowStmt, collectUses, containsArrayRef, containsFieldRef, getArrayRef, getDef, getExpectedSuccessorCount, getFieldRef, getPositionInfo, getUses, getUsesAndDefs, isInvokableStmt, isJAssignStmt, isJBreakpointStmt, isJEnterMonitorStmt, isJExitMonitorStmt, isJGotoStmt, isJIfStmt, isJInvokeStmt, isJNopStmt, isJRetStmt, isJReturnStmt, isJReturnVoidStmt, isJSwitchStmt, isJThrowStmt, toJAssignStmt, toJBreakpointStmt, toJEnterMonitorStmt, toJExitMonitorStmt, toJGotoStmt, toJIfStmt, toJInvokeStmt, toJNopStmt, toJRetStmt, toJReturnStmt, toJReturnVoidStmt, toJSwitchStmt, toJThrowStmt, withNewUse
-
Constructor Details
-
JIdentityStmt
public JIdentityStmt(@NonNull Local local, @NonNull IdentityRef identityValue, @NonNull StmtPositionInfo positionInfo)
-
-
Method Details
-
toString
-
getLeftOp
Description copied from class:AbstractDefinitionStmtReturns the left-hand side (defined value) of this definition.- Specified by:
getLeftOpin classAbstractDefinitionStmt
-
getRightOp
Description copied from class:AbstractDefinitionStmtReturns the right-hand side (value being assigned) of this definition.- Specified by:
getRightOpin classAbstractDefinitionStmt
-
fallsThrough
public boolean fallsThrough()Description copied from interface:StmtReturns true if execution after this statement may continue at the following statement. (e.g. GotoStmt will return false and e.g. IfStmt will return true).- Specified by:
fallsThroughin interfaceFallsThroughStmt- Specified by:
fallsThroughin interfaceStmt- Overrides:
fallsThroughin classAbstractDefinitionStmt- Returns:
- true if control may fall through to the next statement
-
branches
public boolean branches()Description copied from interface:StmtReturns true if execution after this statement does not necessarily continue at the following statement. TheBranchingStmt's GotoStmt, JSwitchStmt and IfStmt will return true.- Specified by:
branchesin interfaceStmt- Overrides:
branchesin classAbstractDefinitionStmt- Returns:
- true if this statement may branch to a non-sequential successor
-
toString
-
isJIdentityStmt
public boolean isJIdentityStmt()- Specified by:
isJIdentityStmtin interfaceStmt
-
asJIdentityStmt
- Specified by:
asJIdentityStmtin interfaceStmt
-
toJIdentityStmt
- Specified by:
toJIdentityStmtin interfaceStmt
-
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<StmtVisitor>- Type Parameters:
V- the concrete visitor type- Parameters:
v- the visitor processing this object- Returns:
- the visitor after processing
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator. -
equivHashCode
public int equivHashCode()Description copied from interface:EquivToReturns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects. The contract is defined inJimpleComparator.- Specified by:
equivHashCodein interfaceEquivTo- Returns:
- a structural hash code consistent with equivTo
-
withLocal
-
withIdentityValue
-
withPositionInfo
-
withNewDef
Description copied from class:AbstractDefinitionStmtReturns a copy of this statement with the defined local replaced by newLocal.- Specified by:
withNewDefin classAbstractDefinitionStmt
-