Class Java.ConstructorInvocation
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.ConstructorInvocation
- All Implemented Interfaces:
Java.BlockStatement, Java.Locatable, Java.Scope
- Direct Known Subclasses:
Java.AlternateConstructorInvocation, Java.SuperConstructorInvocation
- Enclosing class:
Java
public abstract static class Java.ConstructorInvocation
extends Java.Atom
implements Java.BlockStatement
Abstract bas class for
Java.SuperConstructorInvocation and Java.AlternateConstructorInvocation.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.Rvalue[]The arguments to pass to the constructor.private Java.ScopeThe local variables that are accessible during the compilation of the constructor invocation.Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructorInvocation(Location location, Java.Rvalue[] arguments) -
Method Summary
Modifier and TypeMethodDescriptionfinal <R, EX extends Throwable>
Raccept(Visitor.AtomVisitor<R, EX> visitor) abstract <R, EX extends Throwable>
Raccept(Visitor.ConstructorInvocationVisitor<R, EX> visitor) Invokes the "visit...()" method ofVisitor.ConstructorInvocationVisitorfor the concreteJava.ConstructorInvocation.findLocalVariable(String name) voidsetEnclosingScope(Java.Scope enclosingScope) Sets the enclosing scope of thisJava.BlockStatement.Methods inherited from class Java.Atom
toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toString, toType, toTypeOrCompileExceptionMethods inherited from class Java.Located
getLocation, throwCompileExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Java.BlockStatement
acceptMethods inherited from interface Java.Locatable
getLocation, throwCompileException
-
Field Details
-
arguments
The arguments to pass to the constructor. -
enclosingScope
-
localVariables
The local variables that are accessible during the compilation of the constructor invocation.
-
-
Constructor Details
-
ConstructorInvocation
-
-
Method Details
-
setEnclosingScope
Description copied from interface:Java.BlockStatementSets the enclosing scope of thisJava.BlockStatement.- Specified by:
setEnclosingScopein interfaceJava.BlockStatement
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfaceJava.BlockStatement- Specified by:
getEnclosingScopein interfaceJava.Scope- Returns:
- The scope that encloses this scope, or
null
-
findLocalVariable
- Specified by:
findLocalVariablein interfaceJava.BlockStatement- Returns:
- The local variable with the given name
-
accept
@Nullable public final <R, EX extends Throwable> R accept(Visitor.AtomVisitor<R, EX> visitor) throws EXDescription copied from class:Java.Atom -
accept
@Nullable public abstract <R, EX extends Throwable> R accept(Visitor.ConstructorInvocationVisitor<R, EX> visitor) throws EXInvokes the "visit...()" method ofVisitor.ConstructorInvocationVisitorfor the concreteJava.ConstructorInvocation.- Throws:
EX
-