com.android.dx.gen
Class Type<T>

java.lang.Object
  extended by com.android.dx.gen.Type<T>

public final class Type<T>
extends Object

A primitive type, interface or class.


Field Summary
static Type<Boolean> BOOLEAN
          The boolean primitive type.
static Type<Byte> BYTE
          The byte primitive type.
static Type<Character> CHAR
          The char primitive type.
static Type<Double> DOUBLE
          The double primitive type.
static Type<Float> FLOAT
          The float primitive type.
static Type<Integer> INT
          The int primitive type.
static Type<Long> LONG
          The long primitive type.
static Type<Object> OBJECT
          The Object type.
static Type<Short> SHORT
          The short primitive type.
static Type<String> STRING
          The String type.
static Type<Void> VOID
          The void primitive type.
 
Method Summary
 boolean equals(Object o)
           
static
<T> Type<T>
get(Class<T> type)
           
static
<T> Type<T>
get(String name)
           
 MethodId<T,Void> getConstructor(Type<?>... parameters)
           
<V> FieldId<T,V>
getField(Type<V> type, String name)
           
<R> MethodId<T,R>
getMethod(Type<R> returnType, String name, Type<?>... parameters)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOLEAN

public static final Type<Boolean> BOOLEAN
The boolean primitive type.


BYTE

public static final Type<Byte> BYTE
The byte primitive type.


CHAR

public static final Type<Character> CHAR
The char primitive type.


DOUBLE

public static final Type<Double> DOUBLE
The double primitive type.


FLOAT

public static final Type<Float> FLOAT
The float primitive type.


INT

public static final Type<Integer> INT
The int primitive type.


LONG

public static final Type<Long> LONG
The long primitive type.


SHORT

public static final Type<Short> SHORT
The short primitive type.


VOID

public static final Type<Void> VOID
The void primitive type. Only used as a return type.


OBJECT

public static final Type<Object> OBJECT
The Object type.


STRING

public static final Type<String> STRING
The String type.

Method Detail

get

public static <T> Type<T> get(String name)
Parameters:
name - a descriptor like "Ljava/lang/Class;".

get

public static <T> Type<T> get(Class<T> type)

getField

public <V> FieldId<T,V> getField(Type<V> type,
                                 String name)

getConstructor

public MethodId<T,Void> getConstructor(Type<?>... parameters)

getMethod

public <R> MethodId<T,R> getMethod(Type<R> returnType,
                                   String name,
                                   Type<?>... parameters)

getName

public String getName()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.