Package org.codehaus.janino
Class Java.MarkerAnnotation
- java.lang.Object
-
- org.codehaus.janino.Java.MarkerAnnotation
-
- All Implemented Interfaces:
Java.Annotation,Java.ElementValue
- Enclosing class:
- Java
public static final class Java.MarkerAnnotation extends Object implements Java.Annotation
Repreentation of a 'marker annotation', i.e. an annotation without any elements in parentheses.
-
-
Constructor Summary
Constructors Constructor Description MarkerAnnotation(Java.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor.AnnotationVisitor visitor)voidaccept(Visitor.ElementValueVisitor visitor)Invokes the 'visit...()' method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.Java.TypegetType()voidsetEnclosingScope(Java.Scope enclosingScope)Sets the enclosing scope for this annotation.StringtoString()
-
-
-
Field Detail
-
type
public final Java.Type type
The type of this marker annotation.
-
-
Constructor Detail
-
MarkerAnnotation
public MarkerAnnotation(Java.Type type)
-
-
Method Detail
-
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from interface:Java.AnnotationSets the enclosing scope for this annotation.- Specified by:
setEnclosingScopein interfaceJava.Annotation
-
getType
public Java.Type getType()
- Specified by:
getTypein interfaceJava.Annotation- Returns:
- The type of this annotation
-
accept
public void accept(Visitor.AnnotationVisitor visitor)
Description copied from interface:Java.Annotation- Specified by:
acceptin interfaceJava.Annotation
-
accept
public void accept(Visitor.ElementValueVisitor visitor)
Description copied from interface:Java.ElementValueInvokes the 'visit...()' method ofVisitor.ElementValueVisitorfor the concreteJava.ElementValuetype.- Specified by:
acceptin interfaceJava.ElementValue
-
-