Class SingletonClassAnnotation
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.model.annotations.SingletonClassAnnotation
-
- All Implemented Interfaces:
IClassAnnotation
public class SingletonClassAnnotation extends java.lang.Object implements IClassAnnotation
A class annotation configuration for the@Singleton
annotation.
-
-
Constructor Summary
Constructors Constructor Description SingletonClassAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesTo(JavaFileAccess javaFile)
Determine whether this annotation should be applied to the given Java file.boolean
equals(java.lang.Object obj)
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, ornull
if no import is required.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
generate
public java.lang.CharSequence generate()
Description copied from interface:IClassAnnotation
Convert the class annotation to a string suitable for use in Java code generation.- Specified by:
generate
in interfaceIClassAnnotation
-
appliesTo
public boolean appliesTo(JavaFileAccess javaFile)
Description copied from interface:IClassAnnotation
Determine whether this annotation should be applied to the given Java file.- Specified by:
appliesTo
in interfaceIClassAnnotation
-
getAnnotationImport
public TypeReference getAnnotationImport()
Description copied from interface:IClassAnnotation
Return the qualified name of the annotation interface for use in import declarations, ornull
if no import is required.- Specified by:
getAnnotationImport
in interfaceIClassAnnotation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-