Interface ICodeMethod
- All Superinterfaces:
ICodeItem
- All Known Subinterfaces:
IDexMethod
,INativeMethodItem
Interface representing a method.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_ANONYMOUS, FLAG_ARTIFICIAL, FLAG_BRIDGE, FLAG_CONSTRUCTOR, FLAG_DECLARED_SYNCHRONIZED, FLAG_DESTRUCTOR, FLAG_ENUM, FLAG_FINAL, FLAG_INNER, FLAG_INTERFACE, FLAG_INTERNAL, FLAG_NATIVE, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STRICT, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_VARARGS, FLAG_VIRTUAL, FLAG_VOLATILE
-
Method Summary
Modifier and TypeMethodDescriptionGet the type of the class holding this method.List<? extends IInstruction>
Get the list of instructions of the method's body.Get the method's parameters list.Get the method's return type.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
getAddress, getAddress, getGenericFlags, getIndex, getItemId, getName, getName, getSignature, getSignature, getSignature, isArtificial, isInternal
-
Method Details
-
getClassType
ICodeType getClassType()Get the type of the class holding this method. This method will return null if the method is class-less (example, a native sub-routine not contained in any class).- Returns:
- the class type, null if unknown
-
getReturnType
ICodeType getReturnType()Get the method's return type.- Returns:
- the return type, null if unknown
-
getParameterTypes
Get the method's parameters list.- Returns:
- the parameter types, null if unknown
-
getInstructions
List<? extends IInstruction> getInstructions()Get the list of instructions of the method's body.- Returns:
- null if the method has no body; else, a list (possibly empty) of instructions
-