Package com.tonic.analysis.cpg.node
Class MethodNode
- java.lang.Object
-
- com.tonic.analysis.cpg.node.CPGNode
-
- com.tonic.analysis.cpg.node.MethodNode
-
public class MethodNode extends CPGNode
CPG node wrapping a lifted IR method together with its owner class.
-
-
Constructor Summary
Constructors Constructor Description MethodNode(long id, IRMethod method, String owner)Creates a node for a lifted method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockCount()StringgetDescriptor()StringgetFullSignature()StringgetLabel()IRMethodgetMethod()StringgetName()StringgetOwner()intgetParameterCount()<T> TgetUnderlying()booleanisStatic()StringtoString()-
Methods inherited from class com.tonic.analysis.cpg.node.CPGNode
addIncomingEdge, addOutgoingEdge, astChildren, astParent, cfgPredecessors, cfgSuccessors, controlDependencies, dataDependencies, equals, getEdges, getId, getIncomingEdges, getIncomingEdges, getInDegree, getNodeType, getOutDegree, getOutgoingEdges, getOutgoingEdges, getProperties, getProperty, getTaintLabel, hashCode, hasProperty, isTainted, removeIncomingEdge, removeOutgoingEdge, removeProperty, setProperty, setTainted, setTaintLabel
-
-
-
-
Method Detail
-
getMethod
public IRMethod getMethod()
- Returns:
- the method
-
getOwner
public String getOwner()
- Returns:
- the owner
-
getName
public String getName()
- Returns:
- the name
-
getDescriptor
public String getDescriptor()
- Returns:
- the descriptor
-
getLabel
public String getLabel()
-
getUnderlying
public <T> T getUnderlying()
- Specified by:
getUnderlyingin classCPGNode- Type Parameters:
T- the expected underlying type- Returns:
- the wrapped IR or analysis object
-
getFullSignature
public String getFullSignature()
- Returns:
- the signature as owner.name plus descriptor
-
isStatic
public boolean isStatic()
- Returns:
- whether the method is static
-
getParameterCount
public int getParameterCount()
- Returns:
- the number of declared parameters
-
getBlockCount
public int getBlockCount()
- Returns:
- the number of basic blocks in the method
-
-