Package org.codehaus.janino
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 forJava.SuperConstructorInvocationandJava.AlternateConstructorInvocation.
-
-
Field Summary
Fields Modifier and Type Field Description Java.Rvalue[]argumentsThe arguments to pass to the constructor.Map<String,Java.LocalVariable>localVariablesThe local variables that are accessible during the compilation of the constructor invocation.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstructorInvocation(Location location, Java.Rvalue[] arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Java.LocalVariablefindLocalVariable(String name)Java.ScopegetEnclosingScope()voidsetEnclosingScope(Java.Scope enclosingScope)Sets the enclosing scope of thisJava.BlockStatement.-
Methods inherited from class org.codehaus.janino.Java.Atom
accept, toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toString, toType, toTypeOrCompileException
-
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.BlockStatement
accept
-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
-
-
-
Field Detail
-
arguments
public final Java.Rvalue[] arguments
The arguments to pass to the constructor.
-
localVariables
public Map<String,Java.LocalVariable> localVariables
The local variables that are accessible during the compilation of the constructor invocation.
-
-
Constructor Detail
-
ConstructorInvocation
protected ConstructorInvocation(Location location, Java.Rvalue[] arguments)
-
-
Method Detail
-
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from interface:Java.BlockStatementSets the enclosing scope of thisJava.BlockStatement.- Specified by:
setEnclosingScopein interfaceJava.BlockStatement
-
getEnclosingScope
public Java.Scope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceJava.BlockStatement- Specified by:
getEnclosingScopein interfaceJava.Scope- Returns:
- The scope that encloses this scope, or
null
-
findLocalVariable
public Java.LocalVariable findLocalVariable(String name)
- Specified by:
findLocalVariablein interfaceJava.BlockStatement- Returns:
- The local variable with the given
name
-
-