Package org.codehaus.janino
Interface Java.ElementValue
-
- All Superinterfaces:
Java.Locatable
- All Known Subinterfaces:
Java.Annotation
- All Known Implementing Classes:
Java.AbstractAnnotation,Java.AmbiguousName,Java.ArrayAccessExpression,Java.ArrayCreationReference,Java.ArrayLength,Java.Assignment,Java.BinaryOperation,Java.BooleanLiteral,Java.BooleanRvalue,Java.Cast,Java.CharacterLiteral,Java.ClassInstanceCreationReference,Java.ClassLiteral,Java.ConditionalExpression,Java.Crement,Java.ElementValueArrayInitializer,Java.FieldAccess,Java.FieldAccessExpression,Java.FloatingPointLiteral,Java.Instanceof,Java.IntegerLiteral,Java.Invocation,Java.LambdaExpression,Java.Literal,Java.LocalVariableAccess,Java.Lvalue,Java.MarkerAnnotation,Java.MethodInvocation,Java.MethodReference,Java.NewAnonymousClassInstance,Java.NewArray,Java.NewClassInstance,Java.NewInitializedArray,Java.NormalAnnotation,Java.NullLiteral,Java.ParameterAccess,Java.ParenthesizedExpression,Java.QualifiedThisReference,Java.Rvalue,Java.SimpleConstant,Java.SingleElementAnnotation,Java.StringLiteral,Java.SuperclassFieldAccessExpression,Java.SuperclassMethodInvocation,Java.ThisReference,Java.UnaryOperation
- Enclosing class:
- Java
public static interface Java.ElementValue extends Java.Locatable
Base of the possible element values in aJava.NormalAnnotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.ElementValueVisitor<R,EX> visitor)Invokes the "visit...()" method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.voidsetEnclosingScope(Java.Scope scope)In most cases, the scope is the enclosingJava.BlockStatement, except for top-level class/interface annotation class-literal element-value-pairs, where the enclosing scope is the compilation unit.-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
-
-
-
Method Detail
-
accept
@Nullable <R,EX extends java.lang.Throwable> R accept(Visitor.ElementValueVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Invokes the "visit...()" method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.- Throws:
EX extends java.lang.Throwable
-
setEnclosingScope
void setEnclosingScope(Java.Scope scope)
In most cases, the scope is the enclosingJava.BlockStatement, except for top-level class/interface annotation class-literal element-value-pairs, where the enclosing scope is the compilation unit.
-
-