public class Types extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Types.HtmlDocText
Delivers text to explain compound UMod types, with UMod source level type constructors,
javadoc-style links to the generated classes, and additional strictness comments.
|
static class |
Types.JavaMapper
Central class for relating umod type definitions to Java type constructs.
|
Constructor and Description |
---|
Types() |
Modifier and Type | Method and Description |
---|---|
static MetaType |
declaredMapEntryType(UMod.T_2 t) |
static boolean |
defaultIsEmptyCollection(UMod.Type t)
Indicates if type is a collection (set, seq or map).
|
static UMod.ClassDef |
getUmodClassDef(UMod.Forest f,
UMod.Type t)
NEU 20150419, MUSS ES irrngxwo schon geben !?!?!? FIXME
|
static boolean |
hasCanonicalOrder(UMod.Type t,
UMod.Forest f,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
For basic types a canonical order is always defined;
for internal defs depends on generated code;
for external types ask the environment.
|
static boolean |
hasVariableLength(UMod.Type t)
Indicates if type is a map, multimap, list or a set
|
static Format |
implementationFlagFormat(UMod.Type t,
UMod.Forest f,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
selects between tree and hash implementations for maps and sets
|
static boolean |
isBasic(UMod.Type t)
Indicates if type is a basic type (umod int, float, string, char or bool).
|
static boolean |
isEnumSetType(UMod.Type t) |
static boolean |
isExternal(UMod.T_reference t)
AFTER JavaMapper HAS MATCHED:
indicates whether type is an imported, external class reference
|
static boolean |
isExternalReferenceType(UMod.Type t)
AFTER JavaMapper HAS MATCHED:
indicates whether type is an imported, external class reference
|
static boolean |
isListoid(UMod.Type t)
Indicates if type is a list or a set
|
static boolean |
isMapoid(UMod.Type t)
Indicates if type is a map or a multi-map
|
static boolean |
isOpt(UMod.Type t)
Indicates if there is a top-level "OPT" operator.
|
static boolean |
isPrimitive(UMod.Type t)
AFTER JavaMapper HAS MATCHED:
indicates whether type is a primitive scalar java type.
|
static boolean |
isTypedefReferenceType(UMod.Type t)
AFTER JavaMapper HAS MATCHED:
indicates whether type is a typedef reference
|
static UMod.Type |
nonOpt(UMod.Type t)
Strips off all top-level "OPT" operators, delivering the highest non-opt
part of type expression.
|
protected static final MetaClass WRAPPEDCLASS_void
public static final EnvironmentClass WRAPPEDCLASS_Object
protected static final MetaClass WRAPPEDCLASS_Class
public static final EnvironmentClass WRAPPEDCLASS_int
public static final EnvironmentClass WRAPPEDCLASS_Integer
public static final EnvironmentClass WRAPPEDCLASS_double
public static final EnvironmentClass WRAPPEDCLASS_Double
public static final EnvironmentClass WRAPPEDCLASS_float
public static final EnvironmentClass WRAPPEDCLASS_Float
public static final EnvironmentClass WRAPPEDCLASS_char
public static final EnvironmentClass WRAPPEDCLASS_Character
public static final EnvironmentClass WRAPPEDCLASS_String
public static final EnvironmentClass WRAPPEDCLASS_boolean
public static final EnvironmentClass WRAPPEDCLASS_Boolean
public static final EnvironmentClass WRAPPEDCLASS_List
public static final EnvironmentClass WRAPPEDCLASS_LinkedList
public static final EnvironmentClass WRAPPEDCLASS_ArrayList
protected static final MetaClass WRAPPEDCLASS_Format
protected static final MetaClass WRAPPEDCLASS_Pattern
protected static final MetaClass WRAPPEDCLASS_FunctionPatterns
protected static final MetaClass WRAPPEDCLASS_ReflectionPatterns
public static final EnvironmentClass WRAPPEDCLASS_Comparable
public static final EnvironmentClass WRAPPEDCLASS_EnumSet
public static final EnvironmentClass WRAPPEDCLASS_EnumMap
public static final EnvironmentClass WRAPPEDCLASS_CheckedEnumMap
public static final EnvironmentClass WRAPPEDCLASS_CheckedList
public static final EnvironmentClass WRAPPEDCLASS_Set
public static final EnvironmentClass WRAPPEDCLASS_HashSet
public static final EnvironmentClass WRAPPEDCLASS_TreeSet
public static final EnvironmentClass WRAPPEDCLASS_CheckedSet
public static final EnvironmentClass WRAPPEDCLASS_Map
protected static final MetaClass WRAPPEDCLASS_MapEntry
public static final EnvironmentClass WRAPPEDCLASS_Collection
public static final EnvironmentClass WRAPPEDCLASS_HashMap
public static final EnvironmentClass WRAPPEDCLASS_TreeMap
public static final EnvironmentClass WRAPPEDCLASS_Map_checkedLeft
public static final EnvironmentClass WRAPPEDCLASS_Map_checkedRight
public static final EnvironmentClass WRAPPEDCLASS_CheckedMap_R
public static final EnvironmentClass WRAPPEDCLASS_CheckedMap_D
public static final EnvironmentClass WRAPPEDCLASS_CheckedMap_RD
public static final MetaClass WRAPPEDCLASS_MapProxy_implementations
public static final MetaClass WRAPPEDCLASS_SetProxy_implementations
public static final EnvironmentClass WRAPPEDCLASS_Multimap
public static final EnvironmentClass WRAPPEDCLASS_HashMultimap
public static final EnvironmentClass WRAPPEDCLASS_Multimaps
public static final EnvironmentClass WRAPPEDCLASS_CheckedMultimap_D
public static final EnvironmentClass WRAPPEDCLASS_CheckedMultimap_R
public static final EnvironmentClass WRAPPEDCLASS_CheckedMultimap_RD
public static final EnvironmentClass WRAPPEDCLASS_Pair
public static final EnvironmentClass WRAPPEDCLASS_Pair_checkedLeft
public static final EnvironmentClass WRAPPEDCLASS_Pair_checkedRight
public static final EnvironmentClass WRAPPEDCLASS_UncheckedPair
public static final EnvironmentClass WRAPPEDCLASS_CheckedPair_L
public static final EnvironmentClass WRAPPEDCLASS_CheckedPair_R
public static final EnvironmentClass WRAPPEDCLASS_CheckedPair_LR
public static final EnvironmentClass WRAPPEDCLASS_CoPair
public static final EnvironmentClass WRAPPEDCLASS_CoPair_checkedLeft
public static final EnvironmentClass WRAPPEDCLASS_CoPair_checkedRight
public static final EnvironmentClass WRAPPEDCLASS_UncheckedCoPair
public static final EnvironmentClass WRAPPEDCLASS_CheckedCoPair_L
public static final EnvironmentClass WRAPPEDCLASS_CheckedCoPair_R
public static final EnvironmentClass WRAPPEDCLASS_CheckedCoPair_LR
protected static final MetaClass WRAPPEDCLASS_ops_Function
protected static final MetaClass WRAPPEDCLASS_ops_Consumer
protected static final MetaClass WRAPPEDCLASS_StrictnessException
protected static final MetaClass WRAPPEDCLASS_OptimizingVisitor
protected static final MetaClass WRAPPEDCLASS_Rewriter
protected static final MetaClass WRAPPEDCLASS_IllegalStateException
public static UMod.Type nonOpt(UMod.Type t)
public static boolean isOpt(UMod.Type t)
public static boolean isPrimitive(UMod.Type t)
public static boolean isExternalReferenceType(UMod.Type t)
public static boolean isExternal(UMod.T_reference t)
public static boolean isTypedefReferenceType(UMod.Type t)
public static boolean isEnumSetType(UMod.Type t)
public static UMod.ClassDef getUmodClassDef(UMod.Forest f, UMod.Type t)
public static boolean defaultIsEmptyCollection(UMod.Type t)
public static boolean isBasic(UMod.Type t)
public static boolean hasCanonicalOrder(UMod.Type t, UMod.Forest f, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
public static boolean isMapoid(UMod.Type t)
public static boolean isListoid(UMod.Type t)
public static boolean hasVariableLength(UMod.Type t)
public static Format implementationFlagFormat(UMod.Type t, UMod.Forest f, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
see also the complete user documentation .