jodd.proxetta
Interface MethodInfo

All Known Implementing Classes:
MethodSignatureVisitor

public interface MethodInfo

Method info provides various information about the method. Used in pointcut definitions.


Method Summary
 int getAccessFlags()
           
 AnnotationInfo[] getAnnotations()
          Returns annotation infos, if there is any.
 char getArgumentOpcodeType(int index)
           
 int getArgumentsCount()
          Returns number of method arguments.
 ClassInfo getClassInfo()
          Returns target class informations.
 java.lang.String getClassname()
          Returns bytecode-like class name.
 java.lang.String getDeclaration()
          Returns java-like method arguments declaration.
 java.lang.String getDeclaredClassName()
          Returns declared class name for inner methods or classname for top-level methods.
 java.lang.String getDescription()
          Returns bytecode-like method description.
 java.lang.String getExceptions()
           
 int getHierarchyLevel()
          Returns hierarchy level, starting from top class as 1.
 java.lang.String getMethodName()
          Returns method name.
 char getReturnOpcodeType()
          Returns return type opcode.
 java.lang.String getReturnType()
          Returns java-like return type.
 java.lang.String getSignature()
          Returns java-like method signature.
 boolean isTopLevelMethod()
          Returns true if method is declared in top-level class.
 

Method Detail

getDeclaration

java.lang.String getDeclaration()
Returns java-like method arguments declaration.


getReturnType

java.lang.String getReturnType()
Returns java-like return type.


getExceptions

java.lang.String getExceptions()

getSignature

java.lang.String getSignature()
Returns java-like method signature.


getMethodName

java.lang.String getMethodName()
Returns method name.


getArgumentsCount

int getArgumentsCount()
Returns number of method arguments.


getArgumentOpcodeType

char getArgumentOpcodeType(int index)

getReturnOpcodeType

char getReturnOpcodeType()
Returns return type opcode. For example, returns 'V' for void etc.


getAccessFlags

int getAccessFlags()

getClassname

java.lang.String getClassname()
Returns bytecode-like class name.


getDescription

java.lang.String getDescription()
Returns bytecode-like method description.


getAnnotations

AnnotationInfo[] getAnnotations()
Returns annotation infos, if there is any.


getDeclaredClassName

java.lang.String getDeclaredClassName()
Returns declared class name for inner methods or classname for top-level methods.


isTopLevelMethod

boolean isTopLevelMethod()
Returns true if method is declared in top-level class.


getClassInfo

ClassInfo getClassInfo()
Returns target class informations.


getHierarchyLevel

int getHierarchyLevel()
Returns hierarchy level, starting from top class as 1.



Copyright © 2003-2012 Jodd Team