janino.net

org.codehaus.janino
Class Java.ConstructorDeclarator

  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.AbstractTypeBodyDeclaration
          extended by org.codehaus.janino.Java.FunctionDeclarator
              extended by org.codehaus.janino.Java.ConstructorDeclarator
All Implemented Interfaces:
Java.DocCommentable, Java.Locatable, Java.Scope, Java.TypeBodyDeclaration
Enclosing class:
Java

public static final class Java.ConstructorDeclarator
extends Java.FunctionDeclarator

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
 Java.ConstructorInvocation optionalConstructorInvocation
          The Java.AlternateConstructorInvocation or Java.SuperConstructorInvocation, if any.
 
Fields inherited from class org.codehaus.janino.Java.FunctionDeclarator
formalParameters, localVariables, modifiers, name, optionalStatements, thrownExceptions, type
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.ConstructorDeclarator(Location location,  optionalDocComment, Java.Modifiers modifiers, Java.FunctionDeclarator.FormalParameters parameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation optionalConstructorInvocation, <Java.BlockStatement> statements)
           
 
Method Summary
 void accept(Visitor.FunctionDeclaratorVisitor visitor)
          Invokes the 'visit...()' method of Visitor.FunctionDeclaratorVisitor for the concrete Java.FunctionDeclarator type.
 void accept(Visitor.TypeBodyDeclarationVisitor visitor)
          Invokes the 'visit...()' method of Visitor.TypeBodyDeclarationVisitor for the concrete Java.TypeBodyDeclaration type.
 Java.ClassDeclaration getDeclaringClass()
           
  toString()
           
 
Methods inherited from class org.codehaus.janino.Java.FunctionDeclarator
getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTag, setDeclaringType
 
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, isStatic, setEnclosingScope
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.
, , , , , , , , ,
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
 

Field Detail

optionalConstructorInvocation

public final Java.ConstructorInvocation optionalConstructorInvocation
The Java.AlternateConstructorInvocation or Java.SuperConstructorInvocation, if any.

Constructor Detail

Java.ConstructorDeclarator

public Java.ConstructorDeclarator(Location location,
                                   optionalDocComment,
                                  Java.Modifiers modifiers,
                                  Java.FunctionDeclarator.FormalParameters parameters,
                                  Java.Type[] thrownExceptions,
                                  Java.ConstructorInvocation optionalConstructorInvocation,
                                  <Java.BlockStatement> statements)
Method Detail

getDeclaringClass

public Java.ClassDeclaration getDeclaringClass()
Returns:
The Java.ClassDeclaration where this Java.ConstructorDeclarator appears

toString

public  toString()
Overrides:
in class

accept

public void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Description copied from interface: Java.TypeBodyDeclaration
Invokes the 'visit...()' method of Visitor.TypeBodyDeclarationVisitor for the concrete Java.TypeBodyDeclaration type.


accept

public void accept(Visitor.FunctionDeclaratorVisitor visitor)
Description copied from class: Java.FunctionDeclarator
Invokes the 'visit...()' method of Visitor.FunctionDeclaratorVisitor for the concrete Java.FunctionDeclarator type.

Specified by:
accept in class Java.FunctionDeclarator

janino.net