org.jparsec.java
Class Types

java.lang.Object
  extended by org.jparsec.java.Types

public final class Types
extends Object

Utility class to construct Type instances reflectively.


Method Summary
static Class<?> newArrayType(Class<?> componentType)
          Returns a new array class with componentType.
static Type newArrayType(Type componentType)
          Returns a new array type with componentType.
static ParameterizedType newParameterizedType(Class<?> raw, Iterable<? extends Type> typeArgs)
          Returns a parameterized type with raw and typeArgs.
static WildcardType subtypeOf(Type bound)
          Returns a wildcard type that's subtype of bound.
static WildcardType supertypeOf(Type bound)
          Returns a wildcard type that's supertype of bound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

subtypeOf

public static WildcardType subtypeOf(Type bound)
Returns a wildcard type that's subtype of bound.


supertypeOf

public static WildcardType supertypeOf(Type bound)
Returns a wildcard type that's supertype of bound.


newParameterizedType

public static ParameterizedType newParameterizedType(Class<?> raw,
                                                     Iterable<? extends Type> typeArgs)
Returns a parameterized type with raw and typeArgs.


newArrayType

public static Type newArrayType(Type componentType)
Returns a new array type with componentType.


newArrayType

public static Class<?> newArrayType(Class<?> componentType)
Returns a new array class with componentType.



Copyright © 2014. All rights reserved.