public class TypeFunctions extends Object
Constructor and Description |
---|
TypeFunctions() |
Modifier and Type | Method and Description |
---|---|
Type |
getCollectionItemType(ExecutionContext ctx,
Type collectionType)
Returns the collection item type.
|
ListHolder |
getInstantiableRecordTypes(ExecutionContext ctx,
Type type)
Returns a list of concrete, non-system record types assignable to a given type.
|
Type |
getMapIndexType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
getMapItemType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
getMapKeyType(ExecutionContext ctx,
Type mapType)
Returns the map key type.
|
Type |
getMapValueType(ExecutionContext ctx,
Type mapType)
Returns the map value type.
|
Type |
getRecordSupertype(ExecutionContext ctx,
Type recordType)
Returns the supertype of the given record type.
|
Type |
getReferencedType(ExecutionContext ctx,
Type referenceType)
Returns the referenced type.
|
Type |
toType(ExecutionContext ctx,
String string)
Parses a given string into a type object.
|
public Type getCollectionItemType(ExecutionContext ctx, Type collectionType) throws ErrorException
ctx
- collectionType
- ErrorException
public Type getMapKeyType(ExecutionContext ctx, Type mapType) throws ErrorException
ctx
- mapType
- ErrorException
public Type getMapValueType(ExecutionContext ctx, Type mapType) throws ErrorException
ctx
- mapType
- ErrorException
@Deprecated public Type getMapIndexType(ExecutionContext ctx, Type mapType) throws ErrorException
getMapKeyType(ExecutionContext, Type)
ctx
- mapType
- ErrorException
@Deprecated public Type getMapItemType(ExecutionContext ctx, Type mapType) throws ErrorException
getMapValueType(ExecutionContext, Type)
ctx
- mapType
- ErrorException
public Type getReferencedType(ExecutionContext ctx, Type referenceType) throws ErrorException
ctx
- referenceType
- ErrorException
public Type getRecordSupertype(ExecutionContext ctx, Type recordType) throws ErrorException
ctx
- recordType
- ErrorException
public ListHolder getInstantiableRecordTypes(ExecutionContext ctx, Type type) throws ErrorException
ctx
- type
- ErrorException
public Type toType(ExecutionContext ctx, String string) throws ErrorException
ctx
- string
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.