net.cscott.sinjdoc

Interface Type

public interface Type

The Type interface represents a java type. A Type can be a (possibly-parameterized) class type, a primitive data type like int and char, or a type variable declared in a generic class or method.

Version: $Id: Type.java,v 1.9 2003/05/08 03:54:25 cananian Exp $

Author: C. Scott Ananian (cscott@cscott.net)

See Also: com.sun.javadoc.Type java.lang.reflect.Type

Method Summary
<T> Taccept(TypeVisitor<T> visitor)
Accept a visitor.
Stringsignature()
Return the canonical name of the erasure of this type.

Method Detail

accept

public <T> T accept(TypeVisitor<T> visitor)
Accept a visitor.

signature

public String signature()
Return the canonical name of the erasure of this type. (Anonymous types and types contained within anonymous types do not have canonical names, but are unrepresented here in any case). See section 6.7 of the JLS for the definition of canonical names; using the erasure of the type allows this definition to extend to parameterized types and type variables.

See Also: signature

Copyright © 2003 C. Scott Ananian