Package org.codehaus.janino
Class ReflectionIClass.ReflectionIConstructor
- java.lang.Object
-
- org.codehaus.janino.IClass.IInvocable
-
- org.codehaus.janino.IClass.IConstructor
-
- org.codehaus.janino.ReflectionIClass.ReflectionIConstructor
-
- All Implemented Interfaces:
IClass.IMember
- Enclosing class:
- ReflectionIClass
private class ReflectionIClass.ReflectionIConstructor extends IClass.IConstructor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Constructor
constructor
-
Constructor Summary
Constructors Constructor Description ReflectionIConstructor(java.lang.reflect.Constructor constructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Access
getAccess()
Java.Annotation[]
getAnnotations()
java.lang.String
getDescriptor2()
Opposed toIClass.IInvocable.getParameterTypes()
, the method descriptor returned by this method does include the optionally leading synthetic parameters.IClass[]
getParameterTypes2()
Opposed toConstructor.getParameterTypes()
, the return value of this method does not include the optionally leading "synthetic parameters".IClass[]
getThrownExceptions2()
boolean
isVarargs()
-
Methods inherited from class org.codehaus.janino.IClass.IConstructor
toString
-
Methods inherited from class org.codehaus.janino.IClass.IInvocable
argsNeedAdjust, getDeclaringIClass, getDescriptor, getParameterTypes, getThrownExceptions, isLessSpecificThan, isMoreSpecificThan, setArgsNeedAdjust
-
-
-
-
Method Detail
-
getAccess
public Access getAccess()
- Specified by:
getAccess
in interfaceIClass.IMember
- Specified by:
getAccess
in classIClass.IInvocable
- Returns:
- One of
Access.PRIVATE
,Access.PROTECTED
,Access.DEFAULT
andAccess.PUBLIC
.
-
getAnnotations
public Java.Annotation[] getAnnotations()
- Returns:
- Modifiers and/or annotations of this member
-
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() throws CompileException
Description copied from class:IClass.IConstructor
Opposed toConstructor.getParameterTypes()
, the return value of this method does not include the optionally leading "synthetic parameters".- Specified by:
getParameterTypes2
in classIClass.IConstructor
- Returns:
- The types of the parameters of this constructor or method
- Throws:
CompileException
-
getDescriptor2
public java.lang.String getDescriptor2()
Description copied from class:IClass.IConstructor
Opposed toIClass.IInvocable.getParameterTypes()
, the method descriptor returned by this method does include the optionally leading synthetic parameters.- Overrides:
getDescriptor2
in classIClass.IConstructor
-
getThrownExceptions2
public IClass[] getThrownExceptions2()
- Specified by:
getThrownExceptions2
in classIClass.IInvocable
- Returns:
- The types thrown by this constructor or method
-
-