Package qilin.core.pag
Class VarNode
java.lang.Object
qilin.core.pag.Node
qilin.core.pag.ValNode
qilin.core.pag.VarNode
- All Implemented Interfaces:
Comparable
,Numberable
- Direct Known Subclasses:
ContextVarNode
,GlobalVarNode
,LocalVarNode
Represents a simple variable node in the pointer assignment graph.
- Author:
- Ondrej Lhotak
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<SparkField,
FieldRefNode> protected boolean
protected boolean
protected Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract VarNode
base()
context()
dot
(SparkField field) Returns the field ref node having this node as its base, and field as its field; null if nonexistent.Returns all field ref nodes having this node as their base.abstract SootMethod
Returns the underlying variable that this node represents.boolean
Returns true if this node is the potential source of a interprocedural assignment edge which may be added during on-the-fly call graph updating.boolean
Returns true if this node is the potential target of a interprocedural assignment edge which may be added during on-the-fly call graph updating.void
Designates this node as the potential source of a interprocedural assignment edge which may be added during on-the-fly call graph updating.void
Designates this node as the potential target of a interprocedural assignment edge which may be added during on-the-fly call graph updating.Methods inherited from class qilin.core.pag.ValNode
compareTo, discardP2Set, getP2Set
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface qilin.util.Numberable
getNumber, setNumber
-
Field Details
-
variable
-
fields
-
interProcTarget
protected boolean interProcTarget -
interProcSource
protected boolean interProcSource
-
-
Constructor Details
-
VarNode
-
-
Method Details
-
context
-
getAllFieldRefs
Returns all field ref nodes having this node as their base. -
dot
Returns the field ref node having this node as its base, and field as its field; null if nonexistent. -
getVariable
Returns the underlying variable that this node represents. -
setInterProcTarget
public void setInterProcTarget()Designates this node as the potential target of a interprocedural assignment edge which may be added during on-the-fly call graph updating. -
isInterProcTarget
public boolean isInterProcTarget()Returns true if this node is the potential target of a interprocedural assignment edge which may be added during on-the-fly call graph updating. -
setInterProcSource
public void setInterProcSource()Designates this node as the potential source of a interprocedural assignment edge which may be added during on-the-fly call graph updating. -
isInterProcSource
public boolean isInterProcSource()Returns true if this node is the potential source of a interprocedural assignment edge which may be added during on-the-fly call graph updating. -
base
-
getMethod
-