public class TypeMap extends Object
| Constructor and Description |
|---|
TypeMap() |
| Modifier and Type | Method and Description |
|---|---|
FullType |
get(String name)
Return the type associated with the given name or null if it doesn't
exist.
|
void |
put(String name,
FullType fullType,
Template template,
SourceRange sourceRange)
Associate the given type with the given name within this ObjectContext.
|
public FullType get(String name)
name - name of the type to retrievepublic void put(String name, FullType fullType, Template template, SourceRange sourceRange) throws EvaluationException
name - name to associate to the typefullType - data type to use for the definitiontemplate - template where the type is defined (used for error handling)sourceRange - location in the template where the type is defined (used for
error handling)EvaluationException - if there is already a type associated with the given nameCopyright © 2014 Quattor. All Rights Reserved.