com.sun.tools.xjc.api

Interface TypeAndAnnotation

public interface TypeAndAnnotation

Java type and associated JAXB annotations.
Method Summary
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)
Two TypeAndAnnotation are equal if they has the same type and annotations.
JTypegetTypeClass()
Returns the Java type.

Method Detail

annotate

public void annotate(JAnnotatable programElement)
Annotates the given program element by additional JAXB annotations that need to be there at the point of reference.

equals

public boolean equals(Object o)
Two TypeAndAnnotation are equal if they has the same type and annotations.

getTypeClass

public JType getTypeClass()
Returns the Java type.

JType is a representation of a Java type in a codeModel. If you just need the fully-qualified class name, call JType#fullName().

Returns: never be null.