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.AlternateConstructorInvocationorJava.SuperConstructorInvocation, if any.Fields inherited from class org.codehaus.janino.Java.FunctionDeclarator
formalParameters, localVariables, name, statements, thrownExceptions, typeFields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
modifiersFields 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.FunctionDeclaratorVisitorfor the concreteJava.FunctionDeclaratortype.toString()Methods inherited from class org.codehaus.janino.Java.FunctionDeclarator
accept, getAccess, getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTag, isStrictfp, setDeclaringType, setEnclosingScopeMethods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, getModifiersMethods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Field Details
-
constructorInvocation
TheJava.AlternateConstructorInvocationorJava.SuperConstructorInvocation, if any.
-
-
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.AbstractClassDeclarationwhere thisJava.ConstructorDeclaratorappears
-
toString
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.FunctionDeclaratorVisitor<R, EX> visitor) throws EXDescription copied from class:Java.FunctionDeclaratorInvokes the "visit...()" method ofVisitor.FunctionDeclaratorVisitorfor the concreteJava.FunctionDeclaratortype.- Specified by:
acceptin classJava.FunctionDeclarator- Throws:
EX
-