Package org.jboss.weld.util.bytecode
Class RuntimeMethodInformation
- java.lang.Object
-
- org.jboss.weld.util.bytecode.RuntimeMethodInformation
-
- All Implemented Interfaces:
MethodInformation
public class RuntimeMethodInformation extends Object implements MethodInformation
Contains all the data that is needed when working with a method in bytecode- Author:
- Stuart Douglas, Ales Justin
-
-
Constructor Summary
Constructors Constructor Description RuntimeMethodInformation(Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeclaringClass()
The declaring class name in java dotted form (e.g.String
getDescriptor()
Gets the method descriptorMethod
getMethod()
This may return null if Method is not available yetint
getModifiers()
The method modifiersString
getName()
the method nameString[]
getParameterTypes()
returns string representations of the parameter typesString
getReturnType()
Gets the method return type, in descriptor format (e.g.
-
-
-
Constructor Detail
-
RuntimeMethodInformation
public RuntimeMethodInformation(Method method)
-
-
Method Detail
-
getDeclaringClass
public String getDeclaringClass()
Description copied from interface:MethodInformation
The declaring class name in java dotted form (e.g. java.lang.String)- Specified by:
getDeclaringClass
in interfaceMethodInformation
-
getMethod
public Method getMethod()
Description copied from interface:MethodInformation
This may return null if Method is not available yet- Specified by:
getMethod
in interfaceMethodInformation
-
getDescriptor
public String getDescriptor()
Description copied from interface:MethodInformation
Gets the method descriptor- Specified by:
getDescriptor
in interfaceMethodInformation
-
getParameterTypes
public String[] getParameterTypes()
Description copied from interface:MethodInformation
returns string representations of the parameter types- Specified by:
getParameterTypes
in interfaceMethodInformation
-
getReturnType
public String getReturnType()
Description copied from interface:MethodInformation
Gets the method return type, in descriptor format (e.g. Ljava/lang/String; )- Specified by:
getReturnType
in interfaceMethodInformation
-
getName
public String getName()
Description copied from interface:MethodInformation
the method name- Specified by:
getName
in interfaceMethodInformation
-
getModifiers
public int getModifiers()
Description copied from interface:MethodInformation
The method modifiers- Specified by:
getModifiers
in interfaceMethodInformation
- Returns:
- The modifiers
-
-