Class Java.AbstractAnnotation
java.lang.Object
org.codehaus.janino.Java.AbstractAnnotation
- All Implemented Interfaces:
Java.Annotation, Java.ElementValue, Java.Locatable, Java.Modifier
- Direct Known Subclasses:
Java.MarkerAnnotation, Java.NormalAnnotation, Java.SingleElementAnnotation
- Enclosing class:
Java
Convenience class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <R, EX extends Throwable>
Raccept(Visitor.ElementValueVisitor<R, EX> visitor) Invokes the "visit...()" method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.final <R, EX extends Throwable>
Raccept(Visitor.ModifierVisitor<R, EX> visitor) voidsetEnclosingScope(Java.Scope enclosingScope) Sets the enclosing scope for this annotation.voidthrowCompileException(String message) Throws aCompileExceptionwith the given message and this object's location.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Java.Annotation
accept, getType
-
Field Details
-
type
The type of this annotation.
-
-
Constructor Details
-
AbstractAnnotation
-
-
Method Details
-
setEnclosingScope
Description copied from interface:Java.AnnotationSets the enclosing scope for this annotation.- Specified by:
setEnclosingScopein interfaceJava.Annotation- Specified by:
setEnclosingScopein interfaceJava.ElementValue
-
getLocation
- Specified by:
getLocationin interfaceJava.Locatable- Returns:
- The location of this object
-
accept
@Nullable public final <R, EX extends Throwable> R accept(Visitor.ElementValueVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.ElementValueInvokes the "visit...()" method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.- Specified by:
acceptin interfaceJava.ElementValue- Throws:
EX
-
accept
@Nullable public final <R, EX extends Throwable> R accept(Visitor.ModifierVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.Modifier- Specified by:
acceptin interfaceJava.Modifier- Throws:
EX
-
throwCompileException
Description copied from interface:Java.LocatableThrows aCompileExceptionwith the given message and this object's location.- Specified by:
throwCompileExceptionin interfaceJava.Locatable- Parameters:
message- The message to report- Throws:
CompileException
-