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
Base of the possible element values in a
Java.NormalAnnotation
.-
Method Summary
Modifier and TypeMethodDescription<R,
EX extends Throwable>
Raccept
(Visitor.ElementValueVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.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.Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Method Details
-
accept
Invokes the "visit...()
" method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.- Throws:
EX
-
setEnclosingScope
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.
-