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<? 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 List<? extends IJavaClass> getInnerClasses()
abstract List<? extends IJavaAnnotation> getMethodAnnotations()
abstract String getName()
Get the original method name.
abstract List<? extends IJavaAnnotation> getParameterAnnotations(int index)
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 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<? 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 List<? extends IJavaClass> getInnerClasses ()

public abstract List<? extends IJavaAnnotation> getMethodAnnotations ()

public abstract String getName ()

Get the original method name.

Returns
  • the method name

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

public abstract List<? extends IJavaDefinition> getParameters ()

Get the parameters of the method.

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 boolean isStatic ()

Determine whether this method is a static method.

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