Package org.codehaus.janino
Class Java.MarkerAnnotation
- java.lang.Object
-
- org.codehaus.janino.Java.AbstractAnnotation
-
- org.codehaus.janino.Java.MarkerAnnotation
-
- All Implemented Interfaces:
Java.Annotation
,Java.ElementValue
,Java.Locatable
,Java.Modifier
- Enclosing class:
- Java
public static final class Java.MarkerAnnotation extends Java.AbstractAnnotation
Representation of a "marker annotation", i.e. an annotation without any elements in parentheses.
-
-
Field Summary
-
Fields inherited from class org.codehaus.janino.Java.AbstractAnnotation
type
-
-
Constructor Summary
Constructors Constructor Description MarkerAnnotation(Java.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.AnnotationVisitor<R,EX> visitor)
Java.Type
getType()
java.lang.String
toString()
-
Methods inherited from class org.codehaus.janino.Java.AbstractAnnotation
accept, accept, getLocation, setEnclosingScope, throwCompileException
-
-
-
-
Constructor Detail
-
MarkerAnnotation
public MarkerAnnotation(Java.Type type)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public Java.Type getType()
- Returns:
- The type of this annotation
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.AnnotationVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description copied from interface:Java.Annotation
- Throws:
EX extends java.lang.Throwable
-
-