org.quattor.pan.type
Class CompositeType

java.lang.Object
  extended by org.quattor.pan.type.Type
      extended by org.quattor.pan.type.BaseType
          extended by org.quattor.pan.type.CompositeType
Direct Known Subclasses:
HashType, LinkType, ListType

public abstract class CompositeType
extends BaseType

Common abstract class for all pan language composite types. These types include collections and links.

Author:
loomis

Field Summary
protected  BaseType baseType
           
protected  Range range
           
 
Fields inherited from class org.quattor.pan.type.Type
source, sourceRange
 
Constructor Summary
CompositeType(java.lang.String source, SourceRange sourceRange, BaseType baseType, Range range)
           
 
Method Summary
 void verifySubtypesDefined(TypeMap types)
          This method verifies that all of the types referenced from this type are already defined within the given context.
 
Methods inherited from class org.quattor.pan.type.BaseType
getBuiltinTypes
 
Methods inherited from class org.quattor.pan.type.Type
findDefault, getSource, getSourceRange, setDefaults, toString, validate, validateAsIncludedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

baseType

protected final BaseType baseType

range

protected final Range range
Constructor Detail

CompositeType

public CompositeType(java.lang.String source,
                     SourceRange sourceRange,
                     BaseType baseType,
                     Range range)
Method Detail

verifySubtypesDefined

public void verifySubtypesDefined(TypeMap types)
Description copied from class: Type
This method verifies that all of the types referenced from this type are already defined within the given context. If not, an EvaluationException will be thrown.

Specified by:
verifySubtypesDefined in class Type
Parameters:
types - TypeMap to use for looking up referenced types


Copyright © 2011 Quattor. All Rights Reserved.