Class GeneratedClassAnnotation
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.model.annotations.GeneratedClassAnnotation
-
- All Implemented Interfaces:
IClassAnnotation
public class GeneratedClassAnnotation extends java.lang.Object implements IClassAnnotation
A class annotation configuration for the@Generated
annotation.
-
-
Constructor Summary
Constructors Constructor Description GeneratedClassAnnotation()
-
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.java.lang.String
getComment()
protected java.lang.String
getGeneratorName()
int
hashCode()
boolean
isIncludeDate()
void
setComment(java.lang.String comment)
void
setIncludeDate(boolean includeDate)
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
-
getGeneratorName
protected java.lang.String getGeneratorName()
-
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
-
isIncludeDate
public boolean isIncludeDate()
-
setIncludeDate
public void setIncludeDate(boolean includeDate)
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String comment)
-
-