edu.rice.cs.dynamicjava.symbol.type
Class UnionType

java.lang.Object
  extended by edu.rice.cs.dynamicjava.symbol.type.Type
      extended by edu.rice.cs.dynamicjava.symbol.type.ValidType
          extended by edu.rice.cs.dynamicjava.symbol.type.BoundType
              extended by edu.rice.cs.dynamicjava.symbol.type.UnionType

public class UnionType
extends BoundType

Class UnionType, a component of the ASTGen-generated composite hierarchy. Note: null is not allowed as a value for any field.

Version:
Generated automatically by ASTGen at Sat May 26 04:01:27 CDT 2012

Constructor Summary
UnionType(Iterable<? extends Type> in_ofTypes)
          Constructs a UnionType.
 
Method Summary
 void apply(TypeVisitor_void visitor)
           
<RetType> RetType
apply(TypeVisitor<RetType> visitor)
           
 boolean equals(Object obj)
          Implementation of equals that is based on the values of the fields of the object.
 int generateHashCode()
          Implementation of hashCode that is consistent with equals.
 void output(Writer writer)
          Prints this object out as a nicely tabbed tree.
 String toString()
          Implementation of toString that uses output(java.io.Writer) to generate a nicely tabbed tree.
 void walk(TreeWalker w)
           
 
Methods inherited from class edu.rice.cs.dynamicjava.symbol.type.BoundType
ofTypes
 
Methods inherited from class edu.rice.cs.dynamicjava.symbol.type.Type
hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnionType

public UnionType(Iterable<? extends Type> in_ofTypes)
Constructs a UnionType.

Throws:
IllegalArgumentException - If any parameter to the constructor is null.
Method Detail

apply

public <RetType> RetType apply(TypeVisitor<RetType> visitor)
Specified by:
apply in class Type

apply

public void apply(TypeVisitor_void visitor)
Specified by:
apply in class Type

toString

public String toString()
Implementation of toString that uses output(java.io.Writer) to generate a nicely tabbed tree.

Overrides:
toString in class Object

output

public void output(Writer writer)
Prints this object out as a nicely tabbed tree.

Specified by:
output in class Type

equals

public boolean equals(Object obj)
Implementation of equals that is based on the values of the fields of the object. Thus, two objects created with identical parameters will be equal.

Overrides:
equals in class Object

generateHashCode

public int generateHashCode()
Implementation of hashCode that is consistent with equals. The value of the hashCode is formed by XORing the hashcode of the class object with the hashcodes of all the fields of the object.

Specified by:
generateHashCode in class BoundType

walk

public void walk(TreeWalker w)
Specified by:
walk in class Type