org.javaruntype.typedef
Class BoundedTypeDefVariable

Object
  extended by org.javaruntype.typedef.BoundedTypeDefVariable
All Implemented Interfaces:
Serializable, TypeDefVariable

public final class BoundedTypeDefVariable
extends Object
implements TypeDefVariable

Represents a type definition variable which, besides a name, specifies a series of bounds with an extends expression.

A variable can specify several bounds with "&": X extends [bound]&[bound]&[bound]....

Bounds for a bounded type definition variable are represented by objects of type InnerTypeDefVariable returned by getBounds().

Since:
1.0
Author:
Daniel Fernández
See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
           
 InnerTypeDefVariable[] getBounds()
           Returns the bounds specified for the type definition variable.
 String getVariableName()
          Returns the variable name.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getVariableName

public String getVariableName()
Description copied from interface: TypeDefVariable
Returns the variable name.

Specified by:
getVariableName in interface TypeDefVariable
Returns:
the variable name.

getBounds

public InnerTypeDefVariable[] getBounds()

Returns the bounds specified for the type definition variable.

Returns:
the bounds.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The JAVARUNTYPE team. All Rights Reserved.