Package sootup.core.jimple.common.stmt
Class JAssignStmt
java.lang.Object
sootup.core.jimple.common.stmt.AbstractStmt
sootup.core.jimple.common.stmt.AbstractDefinitionStmt
sootup.core.jimple.common.stmt.JAssignStmt
- All Implemented Interfaces:
 EquivTo,FallsThroughStmt,InvokableStmt,Stmt,Acceptor<StmtVisitor>
public final class JAssignStmt
extends AbstractDefinitionStmt
implements FallsThroughStmt, InvokableStmt
Represents the assignment of one value to another
- 
Field Summary
Fields inherited from class sootup.core.jimple.common.stmt.AbstractStmt
positionInfo - 
Constructor Summary
ConstructorsConstructorDescriptionJAssignStmt(@NonNull LValue variable, @NonNull Value rValue, @NonNull StmtPositionInfo positionInfo) Instantiates a new JAssignStmt. - 
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.booleanbooleanintReturns 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.This method must only be used for Stmts which contain an ArrayRef - possible with JAssignStmts.This method must only be used for Stmts which contain an FieldRef - possible with JAssignStmts.Returns the possible invoke expression in the invokable statement@NonNull LValue@NonNull ValuebooleanChecks if the invokable statement can potentially invoke a static initializer To cause a static initializer call, the statement contains a static method call, a new expression, or a static field reference.booleantoString()voidtoString(@NonNull StmtPrinter up) @NonNull JAssignStmtwithNewDef(@NonNull Local newLocal) @NonNull JAssignStmtwithPositionInfo(@NonNull StmtPositionInfo positionInfo) @NonNull JAssignStmtwithRValue(@NonNull Value rValue) @NonNull JAssignStmtwithVariable(@NonNull LValue variable) Methods inherited from class sootup.core.jimple.common.stmt.AbstractDefinitionStmt
getDef, getType, getUsesMethods inherited from class sootup.core.jimple.common.stmt.AbstractStmt
asInvokableStmt, getExpectedSuccessorCount, getPositionInfo, getUsesAndDefs, 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, asJBreakpointStmt, asJEnterMonitorStmt, asJExitMonitorStmt, asJGotoStmt, asJIdentityStmt, asJIfStmt, asJInvokeStmt, asJNopStmt, asJRetStmt, asJReturnStmt, asJReturnVoidStmt, asJSwitchStmt, asJThrowStmt, getDef, getExpectedSuccessorCount, getPositionInfo, getUses, getUsesAndDefs, isInvokableStmt, isJBreakpointStmt, isJEnterMonitorStmt, isJExitMonitorStmt, isJGotoStmt, isJIdentityStmt, isJIfStmt, isJInvokeStmt, isJNopStmt, isJRetStmt, isJReturnStmt, isJReturnVoidStmt, isJSwitchStmt, isJThrowStmt, toJBreakpointStmt, toJEnterMonitorStmt, toJExitMonitorStmt, toJGotoStmt, toJIdentityStmt, toJIfStmt, toJInvokeStmt, toJNopStmt, toJRetStmt, toJReturnStmt, toJReturnVoidStmt, toJSwitchStmt, toJThrowStmt, withNewUse 
- 
Constructor Details
- 
JAssignStmt
public JAssignStmt(@NonNull LValue variable, @NonNull Value rValue, @NonNull StmtPositionInfo positionInfo) Instantiates a new JAssignStmt.- Parameters:
 variable- the variable on the left side of the assign statement.rValue- the value on the right side of the assign statement.
 
 - 
 - 
Method Details
- 
invokesStaticInitializer
public boolean invokesStaticInitializer()Description copied from interface:InvokableStmtChecks if the invokable statement can potentially invoke a static initializer To cause a static initializer call, the statement contains a static method call, a new expression, or a static field reference.- Specified by:
 invokesStaticInitializerin interfaceInvokableStmt- Returns:
 - true if the statement can cause a static initializer call, and false if not.
 
 - 
getInvokeExpr
Description copied from interface:InvokableStmtReturns the possible invoke expression in the invokable statement- Specified by:
 getInvokeExprin interfaceInvokableStmt- Returns:
 - The optional contains the invoke expression of the invokable statement or is empty if there is no invoke expression.
 
 - 
containsArrayRef
public boolean containsArrayRef()- Specified by:
 containsArrayRefin interfaceStmt- Overrides:
 containsArrayRefin classAbstractStmt
 - 
getArrayRef
Description copied from class:AbstractStmtThis method must only be used for Stmts which contain an ArrayRef - possible with JAssignStmts. check via containsArrayRef().- Specified by:
 getArrayRefin interfaceStmt- Overrides:
 getArrayRefin classAbstractStmt
 - 
containsFieldRef
public boolean containsFieldRef()- Specified by:
 containsFieldRefin interfaceStmt- Overrides:
 containsFieldRefin classAbstractStmt
 - 
getFieldRef
Description copied from class:AbstractStmtThis method must only be used for Stmts which contain an FieldRef - possible with JAssignStmts. check via containsFieldRef().- Specified by:
 getFieldRefin interfaceStmt- Overrides:
 getFieldRefin classAbstractStmt
 - 
isJAssignStmt
public boolean isJAssignStmt()- Specified by:
 isJAssignStmtin interfaceStmt
 - 
asJAssignStmt
- Specified by:
 asJAssignStmtin interfaceStmt
 - 
toJAssignStmt
- Specified by:
 toJAssignStmtin interfaceStmt
 - 
toString
 - 
toString
 - 
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
 acceptin interfaceAcceptor<StmtVisitor>
 - 
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
 - 
getLeftOp
- Specified by:
 getLeftOpin classAbstractDefinitionStmt
 - 
getRightOp
- 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
 - 
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
 - 
withNewDef
- Specified by:
 withNewDefin classAbstractDefinitionStmt
 - 
withVariable
 - 
withRValue
 - 
withPositionInfo
 
 -