aspoev.interpreter.base
Class CompoundTypeReferenceElement

java.lang.Object
  extended byaspoev.interpreter.base.Element
      extended byaspoev.interpreter.base.StatementElement
          extended byaspoev.interpreter.base.RValuedElement
              extended byaspoev.interpreter.base.TypeReferenceElement
                  extended byaspoev.interpreter.base.CompoundTypeReferenceElement
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, aspoev.Executable, pJ.jasmine.PRI, java.io.Serializable

public class CompoundTypeReferenceElement
extends TypeReferenceElement
implements pJ.jasmine.PRI

See Also:
Serialized Form

Field Summary
protected  TypeReferenceElement typeOne
           
protected  TypeReferenceElement typeTwo
           
 
Fields inherited from class aspoev.interpreter.base.TypeReferenceElement
BINDING, BOOLEAN, DOUBLE, JAVA_OBJECT, LIST, MAP, nameSpace, SET, STRING, typeName, version, VOID
 
Fields inherited from class aspoev.interpreter.base.Element
parent
 
Fields inherited from interface pJ.jasmine.PRI
DELETECHANGE, MODIFYCHANGE, NOCHANGE
 
Constructor Summary
CompoundTypeReferenceElement(TypeReferenceElement one, TypeReferenceElement two)
           
 
Method Summary
 boolean assignableFrom(TypeReferenceElement otherType)
          This is an aspect binding point.
 java.lang.Object clone()
           
 int compareTo(java.lang.Object other)
          Returns -1 if 'this' type is a lower version than 'other', 0 if the two types are equal, and 1 if 'this' tye is a higher version than 'other'.
 boolean equals(CompoundTypeReferenceElement other)
           
 java.util.Collection getChildrenByType(java.lang.Class childClass)
           
 java.lang.String getCodeString()
           
 java.lang.String toString()
           
 
Methods inherited from class aspoev.interpreter.base.TypeReferenceElement
create, create, create, create, equals, equals, getClassDeclaration, getSubclasses, hasCommonBaseType, hashCode, isJavaType, isPrimitive, newVersion, newVersion, typeObject
 
Methods inherited from class aspoev.interpreter.base.StatementElement
executeElement
 
Methods inherited from class aspoev.interpreter.base.Element
execute, getRValue, persist
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

typeOne

protected TypeReferenceElement typeOne

typeTwo

protected TypeReferenceElement typeTwo
Constructor Detail

CompoundTypeReferenceElement

public CompoundTypeReferenceElement(TypeReferenceElement one,
                                    TypeReferenceElement two)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class TypeReferenceElement

assignableFrom

public boolean assignableFrom(TypeReferenceElement otherType)
Description copied from class: TypeReferenceElement
This is an aspect binding point. While some schema managers will allow different versions of the same type to be assigned to each other, some may not. Default implementation simply looks for the argument type in this type's super types.

Overrides:
assignableFrom in class TypeReferenceElement

compareTo

public int compareTo(java.lang.Object other)
Description copied from class: TypeReferenceElement
Returns -1 if 'this' type is a lower version than 'other', 0 if the two types are equal, and 1 if 'this' tye is a higher version than 'other'.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class TypeReferenceElement

equals

public boolean equals(CompoundTypeReferenceElement other)

getChildrenByType

public java.util.Collection getChildrenByType(java.lang.Class childClass)
Overrides:
getChildrenByType in class TypeReferenceElement

getCodeString

public java.lang.String getCodeString()
Overrides:
getCodeString in class TypeReferenceElement

toString

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