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.TextBlock, 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.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 Java.Locatable
getLocation, throwCompileException
-
Method Details
-
accept
Invokes the "visit...()" method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.- 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.
-