Package com.sun.tools.xjc.api
Interface TypeAndAnnotation
-
public interface TypeAndAnnotationJava type and associated JAXB annotations.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidannotate(JAnnotatable programElement)Annotates the given program element by additional JAXB annotations that need to be there at the point of reference.booleanequals(Object o)TwoTypeAndAnnotationare equal if they has the same type and annotations.JTypegetTypeClass()Returns the Java type.
-
-
-
Method Detail
-
getTypeClass
JType getTypeClass()
Returns the Java type.JTypeis a representation of a Java type in a codeModel. If you just need the fully-qualified class name, callJType.fullName().- Returns:
- never be null.
-
annotate
void annotate(JAnnotatable programElement)
Annotates the given program element by additional JAXB annotations that need to be there at the point of reference.
-
equals
boolean equals(Object o)
TwoTypeAndAnnotationare equal if they has the same type and annotations.
-
-