Package org.codehaus.janino
Class ReflectionIClass.ReflectionIMethod
- java.lang.Object
-
- org.codehaus.janino.IClass.IInvocable
-
- org.codehaus.janino.IClass.IMethod
-
- org.codehaus.janino.ReflectionIClass.ReflectionIMethod
-
- All Implemented Interfaces:
IClass.IMember
- Enclosing class:
- ReflectionIClass
public class ReflectionIClass.ReflectionIMethod extends IClass.IMethod
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Method
method
-
Constructor Summary
Constructors Constructor Description ReflectionIMethod(java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Access
getAccess()
IClass.IAnnotation[]
getAnnotations()
java.lang.String
getName()
IClass[]
getParameterTypes2()
Opposed to theConstructor
, there is no magic "this$0
" parameter.IClass
getReturnType()
IClass[]
getThrownExceptions2()
boolean
isAbstract()
boolean
isStatic()
boolean
isVarargs()
-
Methods inherited from class org.codehaus.janino.IClass.IMethod
getDescriptor2, toString
-
Methods inherited from class org.codehaus.janino.IClass.IInvocable
argsNeedAdjust, getDeclaringIClass, getDescriptor, getParameterTypes, getThrownExceptions, isLessSpecificThan, isMoreSpecificThan, setArgsNeedAdjust
-
-
-
-
Method Detail
-
getAccess
public Access getAccess()
- Returns:
- One of
Access.PRIVATE
,Access.PROTECTED
,Access.DEFAULT
andAccess.PUBLIC
.
-
getAnnotations
public IClass.IAnnotation[] getAnnotations()
- Returns:
- Modifiers and/or annotations of this member
-
getName
public java.lang.String getName()
- Specified by:
getName
in classIClass.IMethod
- Returns:
- The name of this method
-
isVarargs
public boolean isVarargs()
- Specified by:
isVarargs
in classIClass.IInvocable
- Returns:
- Whether this invocable is 'variable arity', i.e. its last parameter has an ellipsis ('...') after the type
-
getParameterTypes2
public IClass[] getParameterTypes2()
Description copied from class:IClass.IInvocable
Opposed to theConstructor
, there is no magic "this$0
" parameter.Opposed to the
Constructor
,enum
s have no magic parameters "String name
" and "int ordinal
".However, the "synthetic parameters" ("
val$
locvar") are included.- Specified by:
getParameterTypes2
in classIClass.IInvocable
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in classIClass.IMethod
- Returns:
- Whether this method is STATIC
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in classIClass.IMethod
- Returns:
- Whether this method is ABSTRACT
-
getReturnType
public IClass getReturnType()
- Specified by:
getReturnType
in classIClass.IMethod
- Returns:
- The return type of this method
-
getThrownExceptions2
public IClass[] getThrownExceptions2()
- Specified by:
getThrownExceptions2
in classIClass.IInvocable
- Returns:
- The types thrown by this constructor or method
-
-