Package org.codehaus.janino
Class Java.ConstructorDeclarator
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.AbstractTypeBodyDeclaration
org.codehaus.janino.Java.FunctionDeclarator
org.codehaus.janino.Java.ConstructorDeclarator
- All Implemented Interfaces:
Java.Annotatable
,Java.DocCommentable
,Java.Locatable
,Java.Scope
,Java.TypeBodyDeclaration
- Enclosing class:
- Java
Representation of a constructor declarator.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.janino.Java.FunctionDeclarator
Java.FunctionDeclarator.FormalParameter, Java.FunctionDeclarator.FormalParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionTheJava.AlternateConstructorInvocation
orJava.SuperConstructorInvocation
, if any.(package private) IClass.IConstructor
The resolvedIClass.IConstructor
.(package private) final Map<String,
Java.LocalVariable> Synthetic parameter name toJava.LocalVariable
mapping.Fields inherited from class org.codehaus.janino.Java.FunctionDeclarator
formalParameters, localVariables, name, returnType, statements, thrownExceptions, type
Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
modifiers
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorDeclarator
(Location location, String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements) -
Method Summary
Modifier and TypeMethodDescription<R,
EX extends Throwable>
Raccept
(Visitor.FunctionDeclaratorVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.toString()
Methods inherited from class org.codehaus.janino.Java.FunctionDeclarator
accept, getAccess, getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTag, isStrictfp, setDeclaringType, setEnclosingScope
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, getModifiers
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Field Details
-
iConstructor
The resolvedIClass.IConstructor
. -
constructorInvocation
TheJava.AlternateConstructorInvocation
orJava.SuperConstructorInvocation
, if any. -
syntheticParameters
Synthetic parameter name toJava.LocalVariable
mapping.
-
-
Constructor Details
-
ConstructorDeclarator
public ConstructorDeclarator(Location location, @Nullable String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, @Nullable Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements)
-
-
Method Details
-
getDeclaringClass
- Returns:
- The
Java.AbstractClassDeclaration
where thisJava.ConstructorDeclarator
appears
-
toString
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.FunctionDeclaratorVisitor<R, EX> visitor) throws EXDescription copied from class:Java.FunctionDeclarator
Invokes the "visit...()
" method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.- Specified by:
accept
in classJava.FunctionDeclarator
- Throws:
EX extends Throwable
-