com.caucho.config.reflect
Class WildcardTypeImpl

java.lang.Object
  extended by com.caucho.config.reflect.BaseType
      extended by com.caucho.config.reflect.WildcardTypeImpl
All Implemented Interfaces:
java.lang.reflect.Type, java.lang.reflect.WildcardType

@Module
public class WildcardTypeImpl
extends BaseType
implements java.lang.reflect.WildcardType

class type matching


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.config.reflect.BaseType
BaseType.ClassFill
 
Constructor Summary
WildcardTypeImpl(BaseType[] lowerBounds, BaseType[] upperBounds)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.reflect.Type getGenericComponentType()
           
 java.lang.reflect.Type[] getLowerBounds()
           
 java.lang.Class<?> getRawClass()
           
 java.lang.reflect.Type[] getUpperBounds()
           
protected  BaseType[] getWildcardBounds()
           
 int hashCode()
           
 boolean isAssignableFrom(BaseType type)
           
 boolean isGeneric()
          Returns true for a generic type like MyBean or MyBean
 boolean isParamAssignableFrom(BaseType type)
          Assignable as a parameter.
 boolean isWildcard()
           
 java.lang.String toString()
           
 java.lang.reflect.Type toType()
           
 
Methods inherited from class com.caucho.config.reflect.BaseType
create, create, createClass, createForSource, createForTarget, createGenericClass, fill, fillSyntheticTypes, fillTypeClosure, getBaseTypeClosure, getParameters, getParamMap, getSimpleName, getTypeClosure, isGenericRaw, isGenericVariable, isObject, isPrimitive, isVariable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildcardTypeImpl

public WildcardTypeImpl(BaseType[] lowerBounds,
                        BaseType[] upperBounds)
Method Detail

getLowerBounds

public java.lang.reflect.Type[] getLowerBounds()
Specified by:
getLowerBounds in interface java.lang.reflect.WildcardType

getUpperBounds

public java.lang.reflect.Type[] getUpperBounds()
Specified by:
getUpperBounds in interface java.lang.reflect.WildcardType

isWildcard

public boolean isWildcard()
Overrides:
isWildcard in class BaseType

isGeneric

public boolean isGeneric()
Description copied from class: BaseType
Returns true for a generic type like MyBean or MyBean

Overrides:
isGeneric in class BaseType

getWildcardBounds

protected BaseType[] getWildcardBounds()
Overrides:
getWildcardBounds in class BaseType

getRawClass

public java.lang.Class<?> getRawClass()
Specified by:
getRawClass in class BaseType

getGenericComponentType

public java.lang.reflect.Type getGenericComponentType()

toType

public java.lang.reflect.Type toType()
Overrides:
toType in class BaseType

isAssignableFrom

public boolean isAssignableFrom(BaseType type)
Overrides:
isAssignableFrom in class BaseType

isParamAssignableFrom

public boolean isParamAssignableFrom(BaseType type)
Description copied from class: BaseType
Assignable as a parameter.

Overrides:
isParamAssignableFrom in class BaseType

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class BaseType