Class JavaSourceLoaderImpl.JavaEntityMethod
java.lang.Object
com.ibm.wala.cast.loader.AstMethod
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl.JavaEntityMethod
- All Implemented Interfaces:
IMember, IMethod, ContextItem, IClassHierarchyDweller
- Direct Known Subclasses:
JavaSourceLoaderImpl.AbstractJavaMethod, JavaSourceLoaderImpl.ConcreteJavaMethod
- Enclosing class:
JavaSourceLoaderImpl
Generic DOMO representation of a method on a Java type that resides in a source file
- Author:
- rfuhrer
-
Nested Class Summary
Nested classes/interfaces inherited from class AstMethod
AstMethod.DebuggingInformation, AstMethod.LexicalInformation, AstMethod.LexicalParent, AstMethod.RetranslatableNested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T>Nested classes/interfaces inherited from interface IMethod
IMethod.SourcePosition -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJavaEntityMethod(CAstEntity methodEntity, IClass owner) JavaEntityMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeReference[]computeExceptionTypes(CAstEntity methodEntity) protected TypeReference[]computeParameterTypes(CAstEntity methodEntity) intintgetParameterType(int i) By convention, for a non-static method, getParameterType(0) is the this pointertoString()Methods inherited from class AstMethod
catchTypes, cfg, cloneLexicalInfo, debugInfo, getAnnotations, getControlFlowGraph, getDeclaringClass, getDescriptor, getLineNumber, getName, getNumberOfParameters, getParameterPosition, getParameterSourcePosition, getParents, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getSourcePosition, hasExceptionHandler, hasMonitorOp, isAbstract, isAnnotation, isBridge, isClinit, isEnum, isFinal, isInit, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isWalaSynthetic, lexicalInfo, symbolTableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IClassHierarchyDweller
getClassHierarchyMethods inherited from interface IMethod
getLocalVariableName, getNumberOfDefaultParameters, hasLocalVariableTable
-
Constructor Details
-
JavaEntityMethod
public JavaEntityMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
JavaEntityMethod
-
-
Method Details
-
getMaxLocals
public int getMaxLocals() -
getMaxStackHeight
public int getMaxStackHeight() -
getParameterType
Description copied from interface:IMethodBy convention, for a non-static method, getParameterType(0) is the this pointer -
computeParameterTypes
-
getDeclaredExceptions
- Returns:
- an array of the exception types declared by the throws clause for this method, or null if there are none
-
computeExceptionTypes
-
toString
-