Java Annotation Indexer 1.0.0.Final-redhat-1

org.jboss.jandex
Class Type

java.lang.Object
  extended by org.jboss.jandex.Type

public final class Type
extends Object

Represents a Java type declaration that is specified on methods or fields. A type can be any class based type (interface, class, annotation), any primitive, any array, or void.

Author:
Jason T. Greene

Nested Class Summary
static class Type.Kind
          Represents a "kind" of Type.
 
Method Summary
static Type create(DotName name, Type.Kind kind)
           
 Type.Kind kind()
          Returns the kind of Type this is.
 DotName name()
          Returns the name of this type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static final Type create(DotName name,
                                Type.Kind kind)

name

public DotName name()
Returns the name of this type. Primitives and void are returned as the Java reserved word (void, boolean, byte, short, char, int, long, float, double). Arrays are returned using the internal JVM array syntax (see JVM specification). Classes are returned as a normal DotName.

Returns:

kind

public Type.Kind kind()
Returns the kind of Type this is.

Returns:
the kind

toString

public String toString()
Overrides:
toString in class Object

Java Annotation Indexer 1.0.0.Final-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.