|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.cast.loader.AstMethod
public abstract class AstMethod
| Nested Class Summary | |
|---|---|
static interface |
AstMethod.DebuggingInformation
|
static interface |
AstMethod.LexicalInformation
|
class |
AstMethod.LexicalParent
Parents of this method with respect to lexical scoping, that is, methods containing state possibly referenced lexically in this method |
| Field Summary | |
|---|---|
TypeReference[][] |
catchTypes
|
AbstractCFG |
cfg
|
IClass |
cls
|
AstMethod.DebuggingInformation |
debugInfo
|
boolean |
hasCatchBlock
|
AstMethod.LexicalInformation |
lexicalInfo
|
java.util.Collection |
qualifiers
|
MethodReference |
ref
|
SymbolTable |
symtab
|
| Constructor Summary | |
|---|---|
protected |
AstMethod(IClass cls,
java.util.Collection qualifiers,
AbstractCFG cfg,
SymbolTable symtab,
MethodReference ref,
boolean hasCatchBlock,
TypeReference[][] catchTypes,
AstMethod.LexicalInformation lexicalInfo,
AstMethod.DebuggingInformation debugInfo)
|
protected |
AstMethod(IClass cls,
java.util.Collection qualifiers,
MethodReference ref)
|
| Method Summary | |
|---|---|
ControlFlowGraph |
getControlFlowGraph()
|
IClass |
getDeclaringClass()
Return the object that represents the declaring class for this member. |
Descriptor |
getDescriptor()
Method getDescriptor. |
int |
getLineNumber(int instructionIndex)
|
Atom |
getName()
|
int |
getNumberOfParameters()
Method getNumberOfParameters. |
abstract AstMethod.LexicalParent[] |
getParents()
|
MethodReference |
getReference()
|
TypeReference |
getReturnType()
|
Selector |
getSelector()
something like: foo(Ljava/langString;)Ljava/lang/Class; |
java.lang.String |
getSignature()
something like: com.foo.bar.createLargeOrder(IILjava.lang.String;SLjava.sql.Date;)Ljava.lang.Integer; |
CAstSourcePositionMap.Position |
getSourcePosition()
|
CAstSourcePositionMap.Position |
getSourcePosition(int instructionIndex)
|
boolean |
hasExceptionHandler()
|
boolean |
isAbstract()
Is this method abstract? |
boolean |
isClinit()
Is this method a class initializer? |
boolean |
isFinal()
Is this method final? |
boolean |
isInit()
Is this method an object initializer? |
boolean |
isNative()
Is this method native? |
boolean |
isPrivate()
Is this method private? |
boolean |
isProtected()
Is this method protected? |
boolean |
isPublic()
Is this method public? |
boolean |
isStatic()
Is this member static? |
boolean |
isSynchronized()
Is this method synchronized? |
boolean |
isSynthetic()
Did someone synthesize this method? (As opposed to reading it from a class file) |
boolean |
isVolatile()
Is this member volatile? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.wala.classLoader.IMethod |
|---|
getDeclaredExceptions, getLocalVariableName, getMaxLocals, getMaxStackHeight, getParameterType, hasLocalVariableTable |
| Methods inherited from interface com.ibm.wala.ipa.cha.IClassHierarchyDweller |
|---|
getClassHierarchy |
| Field Detail |
|---|
public final IClass cls
public final java.util.Collection qualifiers
public final AbstractCFG cfg
public final SymbolTable symtab
public final MethodReference ref
public final boolean hasCatchBlock
public final TypeReference[][] catchTypes
public final AstMethod.LexicalInformation lexicalInfo
public final AstMethod.DebuggingInformation debugInfo
| Constructor Detail |
|---|
protected AstMethod(IClass cls,
java.util.Collection qualifiers,
AbstractCFG cfg,
SymbolTable symtab,
MethodReference ref,
boolean hasCatchBlock,
TypeReference[][] catchTypes,
AstMethod.LexicalInformation lexicalInfo,
AstMethod.DebuggingInformation debugInfo)
protected AstMethod(IClass cls,
java.util.Collection qualifiers,
MethodReference ref)
| Method Detail |
|---|
public abstract AstMethod.LexicalParent[] getParents()
public IClass getDeclaringClass()
IMember
getDeclaringClass in interface IMemberpublic java.lang.String getSignature()
IMethod
getSignature in interface IMethodpublic Selector getSelector()
IMethod
getSelector in interface IMethodpublic boolean isClinit()
IMethod
isClinit in interface IMethodpublic boolean isInit()
IMethod
isInit in interface IMethodpublic Atom getName()
getName in interface IMemberpublic Descriptor getDescriptor()
IMethod
getDescriptor in interface IMethodpublic MethodReference getReference()
getReference in interface IMethodpublic TypeReference getReturnType()
getReturnType in interface IMethodpublic boolean isStatic()
IMember
isStatic in interface IMemberpublic boolean isSynchronized()
IMethod
isSynchronized in interface IMethodpublic boolean isNative()
IMethod
isNative in interface IMethodpublic boolean isSynthetic()
IMethod
isSynthetic in interface IMethodpublic boolean isAbstract()
IMethod
isAbstract in interface IMethodpublic boolean isPrivate()
IMethod
isPrivate in interface IMethodpublic boolean isProtected()
IMethod
isProtected in interface IMethodpublic boolean isPublic()
IMethod
isPublic in interface IMethodpublic boolean isFinal()
IMethod
isFinal in interface IMethodpublic boolean isVolatile()
IMember
isVolatile in interface IMemberpublic ControlFlowGraph getControlFlowGraph()
public boolean hasExceptionHandler()
hasExceptionHandler in interface IMethodpublic int getNumberOfParameters()
IMethod
getNumberOfParameters in interface IMethodpublic int getLineNumber(int instructionIndex)
getLineNumber in interface IMethodpublic CAstSourcePositionMap.Position getSourcePosition()
public CAstSourcePositionMap.Position getSourcePosition(int instructionIndex)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||