|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
public class WildcardTypeImpl
Implementation of WildcardType interface for core reflection.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
equals compares this object to another object. |
Type[] |
getLowerBounds()
Returns an array of Type objects representing the lower bound(s) of this type variable. |
Type[] |
getUpperBounds()
Returns an array of Type objects representing the upper bound(s) of this type variable. |
int |
hashCode()
hashCode returns a hash code for this object. |
static WildcardTypeImpl |
make(FieldTypeSignature[] ubs,
FieldTypeSignature[] lbs,
GenericsFactory f)
Factory method. |
String |
toString()
toString creates a printable string that represents this object for debugging purposes. |
| Methods inherited from class sun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator |
|---|
getReifier |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static WildcardTypeImpl make(FieldTypeSignature[] ubs,
FieldTypeSignature[] lbs,
GenericsFactory f)
ubs - - an array of ASTs representing the upper bounds for the type
variable to be createdlbs - - an array of ASTs representing the lower bounds for the type
variable to be createdf - - a factory that can be used to manufacture reflective
objects that represent the bounds of this wildcard type
public Type[] getUpperBounds()
For each upper bound B :
#ParameterizedType for the details of the creation
process for parameterized types).
getUpperBounds in interface WildcardTypeTypeNotPresentException - if any of the
bounds refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the
bounds refer to a parameterized type that cannot be instantiated
for any reasonpublic Type[] getLowerBounds()
For each lower bound B :
#ParameterizedType for the details of the creation
process for parameterized types).
getLowerBounds in interface WildcardTypeTypeNotPresentException - if any of the
bounds refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the
bounds refer to a parameterized type that cannot be instantiated
for any reasonpublic String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in class Objectpublic boolean equals(Object o)
ObjectEquals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.
If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.
The default implementation of equals returns this==other.
equals in class Objecto - the other object.
public int hashCode()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||