public interface

IJavaMethod

implements INonStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaMethod

Class Overview

Java AST interface to represent Java methods.

Summary

Public Methods
abstract List<String> getAnonymousClassSignatures()
abstract List<? extends IJavaClass> getAnonymousClasses()
abstract IJavaBlock getBody()
Get the body of the method.
abstract IJavaType getClassType()
Get the type of the entity containing this method.
abstract IJavaIdentifierManager getIdentifierManager()
abstract int getIndexOfFirstVisibleParameter()
abstract List<String> getInnerClassSignatures()
abstract List<? extends IJavaClass> getInnerClasses()
abstract List<? extends IJavaAnnotation> getMethodAnnotations()
abstract String getName()
Get the original method name.
abstract IJavaDefinition getParameter(int index)
abstract List<? extends IJavaAnnotation> getParameterAnnotations(int index)
abstract int getParameterCount()
abstract List<? extends IJavaDefinition> getParameters()
Get the parameters of the method.
abstract IJavaType getReturnType()
Get the return type of the method.
abstract String getSignature()
Get the original method signature.
abstract int getVisibleParameterCount()
abstract boolean isStatic()
Determine whether this method is a static method.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract List<String> getAnonymousClassSignatures ()

public abstract List<? extends IJavaClass> getAnonymousClasses ()

public abstract IJavaBlock getBody ()

Get the body of the method.

Returns
  • the body, null if none

public abstract IJavaType getClassType ()

Get the type of the entity containing this method.

public abstract IJavaIdentifierManager getIdentifierManager ()

public abstract int getIndexOfFirstVisibleParameter ()

public abstract List<String> getInnerClassSignatures ()

public abstract List<? extends IJavaClass> getInnerClasses ()

public abstract List<? extends IJavaAnnotation> getMethodAnnotations ()

public abstract String getName ()

Get the original method name. The returned name is a simple name, without parameter, return, or type information.

Returns
  • the method name

public abstract IJavaDefinition getParameter (int index)

public abstract List<? extends IJavaAnnotation> getParameterAnnotations (int index)

public abstract int getParameterCount ()

public abstract List<? extends IJavaDefinition> getParameters ()

Get the parameters of the method.

Note: If the method is non-static, the first parameter in the list would be `this`.

Returns
  • the list of parameters

public abstract IJavaType getReturnType ()

Get the return type of the method.

Returns
  • the return type

public abstract String getSignature ()

Get the original method signature.

Returns
  • the method signature

public abstract int getVisibleParameterCount ()

public abstract boolean isStatic ()

Determine whether this method is a static method.

Returns
  • true if the method is static, false otherwise (virtual method)