Package com.ibm.wala.ipa.callgraph.impl
Class FakeRootMethod
- java.lang.Object
-
- com.ibm.wala.classLoader.SyntheticMethod
-
- com.ibm.wala.ipa.callgraph.impl.AbstractRootMethod
-
- com.ibm.wala.ipa.callgraph.impl.FakeRootMethod
-
- All Implemented Interfaces:
IMember
,IMethod
,ContextItem
,IClassHierarchyDweller
public class FakeRootMethod extends AbstractRootMethod
A synthetic method that models the fake root node.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.wala.ipa.callgraph.ContextItem
ContextItem.Value<T>
-
Nested classes/interfaces inherited from interface com.ibm.wala.classLoader.IMethod
IMethod.SourcePosition
-
-
Field Summary
Fields Modifier and Type Field Description static Descriptor
descr
static Atom
name
static MethodReference
rootMethod
-
Fields inherited from class com.ibm.wala.ipa.callgraph.impl.AbstractRootMethod
cache, cha, insts, nextLocal, statements
-
Fields inherited from class com.ibm.wala.classLoader.SyntheticMethod
declaringClass, NO_STATEMENTS, resolvedMethod
-
-
Constructor Summary
Constructors Constructor Description FakeRootMethod(IClassHierarchy cha, AnalysisOptions options, AnalysisCache cache)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodReference
getRootMethod()
static boolean
isFakeRootMethod(MemberReference m)
static boolean
isFromFakeRoot(IBasicBlock block)
-
Methods inherited from class com.ibm.wala.ipa.callgraph.impl.AbstractRootMethod
add1DArrayAllocation, addAllocation, addAllocationWithoutCtor, addCheckcast, addGetArrayField, addGetInstance, addGetStatic, addInvocation, addLocal, addPhi, addReturn, addSetArrayField, addSetInstance, addSetStatic, getInterpreter, getStatements, getValueNumberForByteConstant, getValueNumberForCharConstant, getValueNumberForIntConstant, makeIR
-
Methods inherited from class com.ibm.wala.classLoader.SyntheticMethod
equals, getAnnotations, getBytecodeStream, getClassHierarchy, getDeclaredExceptions, getDeclaringClass, getDescriptor, getLineNumber, getLocalVariableName, getMaxLocals, getMaxStackHeight, getName, getNumberOfParameters, getParameterSourcePosition, getParameterType, getPoison, getPoisonLevel, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getStatements, hasExceptionHandler, hashCode, hasLocalVariableTable, hasPoison, isAbstract, isBridge, isClinit, isFactoryMethod, isFinal, isInit, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, makeControlFlowGraph, toString
-
-
-
-
Field Detail
-
name
public static final Atom name
-
descr
public static final Descriptor descr
-
rootMethod
public static final MethodReference rootMethod
-
-
Constructor Detail
-
FakeRootMethod
public FakeRootMethod(IClassHierarchy cha, AnalysisOptions options, AnalysisCache cache)
-
-
Method Detail
-
isFakeRootMethod
public static boolean isFakeRootMethod(MemberReference m)
- Returns:
- true iff m is the fake root method.
- Throws:
IllegalArgumentException
- if m is null
-
isFromFakeRoot
public static boolean isFromFakeRoot(IBasicBlock block)
- Returns:
- true iff block is a basic block in the fake root method
- Throws:
IllegalArgumentException
- if block is null
-
getRootMethod
public static MethodReference getRootMethod()
-
-