Class Java.ClassInstanceCreationReference
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Rvalue
org.codehaus.janino.Java.ClassInstanceCreationReference
- All Implemented Interfaces:
Java.ArrayInitializerOrRvalue, Java.ElementValue, Java.Locatable
- Enclosing class:
Java
Representation of a "method reference expression", as described in JLS9 15.13, with the form "
<var>classType</var>::new".-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.TypeThe class type that this expression instantiates.final Java.TypeArgument[]The optional type arguments for thetype.Fields inherited from class Java.Rvalue
CONSTANT_VALUE_UNKNOWN, constantValueFields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsConstructorDescriptionClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments) -
Method Summary
Modifier and TypeMethodDescription<R, EX extends Throwable>
Raccept(Visitor.RvalueVisitor<R, EX> rvv) toString()Methods inherited from class Java.Rvalue
accept, accept, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvalueMethods inherited from class Java.Atom
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, 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.Locatable
getLocation, throwCompileException
-
Field Details
-
type
The class type that this expression instantiates. -
typeArguments
The optional type arguments for thetype.
-
-
Constructor Details
-
ClassInstanceCreationReference
public ClassInstanceCreationReference(Location location, Java.Type type, @Nullable Java.TypeArgument[] typeArguments)
-
-
Method Details
-
accept
Description copied from class:Java.Rvalue- Specified by:
acceptin classJava.Rvalue- Throws:
EX
-
toString
-