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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUncached implementation ofIClass.IInvocable.getDescriptor().IClass[]Opposed to theConstructor, there is no magic "this$0" parameter.IClass[]booleanMethods inherited from class IClass.IConstructor
toStringMethods inherited from class IClass.IInvocable
argsNeedAdjust, getDeclaringIClass, getDescriptor, getParameterTypes, getThrownExceptions, isLessSpecificThan, isMoreSpecificThan, setArgsNeedAdjust
-
Field Details
-
constructor
-
-
Constructor Details
-
ReflectionIConstructor
ReflectionIConstructor(Constructor<?> constructor)
-
-
Method Details
-
getAccess
- Returns:
- One of
Access.PRIVATE,Access.PROTECTED,Access.DEFAULTandAccess.PUBLIC.
-
getAnnotations
- Returns:
- Modifiers and/or annotations of this member
-
isVarargs
public boolean isVarargs()- Specified by:
isVarargsin classIClass.IInvocable- Returns:
- Whether this invocable is 'variable arity', i.e. its last parameter has an ellipsis ('...') after the type
-
getParameterTypes2
Description copied from class:IClass.IInvocableOpposed to theConstructor, there is no magic "this$0" parameter.Opposed to the
Constructor,enums have no magic parameters "String name" and "int ordinal".However, the "synthetic parameters" ("
val$locvar") are included.- Specified by:
getParameterTypes2in classIClass.IInvocable- Throws:
CompileException
-
getDescriptor2
Description copied from class:IClass.IInvocableUncached implementation ofIClass.IInvocable.getDescriptor().- Overrides:
getDescriptor2in classIClass.IConstructor
-
getThrownExceptions2
- Specified by:
getThrownExceptions2in classIClass.IInvocable- Returns:
- The types thrown by this constructor or method
-