public class SingletonClassAnnotation extends java.lang.Object implements IClassAnnotation
@Singleton
annotation.Constructor and Description |
---|
SingletonClassAnnotation() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(JavaFileAccess javaFile)
Determine whether this annotation should be applied to the given Java file.
|
java.lang.CharSequence |
generate()
Convert the class annotation to a string suitable for use in Java code generation.
|
TypeReference |
getAnnotationImport()
Return the qualified name of the annotation interface for use in import declarations,
or
null if no import is required. |
java.lang.String |
toString() |
public java.lang.CharSequence generate()
IClassAnnotation
generate
in interface IClassAnnotation
public boolean appliesTo(JavaFileAccess javaFile)
IClassAnnotation
appliesTo
in interface IClassAnnotation
public TypeReference getAnnotationImport()
IClassAnnotation
null
if no import is required.getAnnotationImport
in interface IClassAnnotation
public java.lang.String toString()
toString
in class java.lang.Object