com.sun.tools.xjc.api.impl.s2j
Class TypeAndAnnotationImpl

java.lang.Object
  extended by com.sun.tools.xjc.api.impl.s2j.TypeAndAnnotationImpl
All Implemented Interfaces:
TypeAndAnnotation

final class TypeAndAnnotationImpl
extends Object
implements TypeAndAnnotation

TypeAndAnnotation implementation.


Constructor Summary
TypeAndAnnotationImpl(Outline outline, TypeUse typeUse)
           
 
Method Summary
 void annotate(com.sun.codemodel.JAnnotatable programElement)
          Annotates the given program element by additional JAXB annotations that need to be there at the point of reference.
 boolean equals(Object o)
          Two TypeAndAnnotation are equal if they has the same type and annotations.
 com.sun.codemodel.JType getTypeClass()
          Returns the Java type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeAndAnnotationImpl

public TypeAndAnnotationImpl(Outline outline,
                             TypeUse typeUse)
Method Detail

getTypeClass

public com.sun.codemodel.JType getTypeClass()
Description copied from interface: TypeAndAnnotation
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().

Specified by:
getTypeClass in interface TypeAndAnnotation
Returns:
never be null.

annotate

public void annotate(com.sun.codemodel.JAnnotatable programElement)
Description copied from interface: TypeAndAnnotation
Annotates the given program element by additional JAXB annotations that need to be there at the point of reference.

Specified by:
annotate in interface TypeAndAnnotation

toString

public String toString()
Overrides:
toString in class Object

equals

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

Specified by:
equals in interface TypeAndAnnotation
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object