Package gnu.jel
Class LocalMethod
java.lang.Object
gnu.jel.LocalField
gnu.jel.LocalMethod
- All Implemented Interfaces:
Member
Represents a method local to the class being compiled.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLocalMethod
(int modifiers, Class<?> type, String name, Class<?>[] paramTypes, Class<?>[] exceptions) Constructs a new local method. -
Method Summary
Methods inherited from class gnu.jel.LocalField
getConstValue, getDeclaringClass, getModifiers, getName, getType, isSynthetic
-
Constructor Details
-
LocalMethod
public LocalMethod(int modifiers, Class<?> type, String name, Class<?>[] paramTypes, Class<?>[] exceptions) Constructs a new local method.- Parameters:
modifiers
- sum of one or more of PUBLIC, PRIVATE, PROTECTED,STATIC, FINAL, SYNCHRONIZED, NATIVE, ABSTRACT constants of java.lang.reflect.Modifier .type
- type of the return value.name
- name of the methodparamTypes
- array of types of formal parameters excluding "this" (null means no parameters).exceptions
- checked exceptions thrown
-
-
Method Details
-
getParameterTypes
Used to obtain types of formal parameters of this method.- Returns:
- array of classes representing formal parameters of the method except "this"
-
getExceptionTypes
Used to get checked exceptions thrown by this method- Returns:
- array of checked exceptions
-