public interface LowLevelTypeSystem
LowLevelCAS APIs.
 
 
 Use LowLevelCAS.ll_getTypeSystem() to access a low-level type system.
| Modifier and Type | Field and Description | 
|---|---|
| static int | UNKNOWN_FEATURE_CODEFeature code that is returned on unknown feature names. | 
| static int | UNKNOWN_TYPE_CODEType code that is returned on unknown type names. | 
| Modifier and Type | Method and Description | 
|---|---|
| int[] | ll_getAppropriateFeatures(int typeCode)Get an array of the feature codes for the features on this type. | 
| int | ll_getArrayType(int componentTypeCode)Get the type code for the array type with  componentTypeCodeas component type
 code. | 
| int | ll_getCodeForFeature(Feature feature)Get the code for a given feature object. | 
| int | ll_getCodeForFeatureName(String featureName)Get the feature code for a given feature name. | 
| int | ll_getCodeForType(Type type)Get the code of an existing type object. | 
| int | ll_getCodeForTypeName(String typeName)Get the type code for a given type name. | 
| int | ll_getComponentType(int arrayTypeCode)Get the component type of an array type code. | 
| int | ll_getDomainType(int featureCode)Get the domain type for a given feature. | 
| Feature | ll_getFeatureForCode(int featureCode)Get a feature object for a given code. | 
| int | ll_getParentType(int typeCode)Get the parent type for the input type. | 
| int | ll_getRangeType(int featureCode)Get the range type for a given feature. | 
| String[] | ll_getStringSet(int typeCode)Get the string set (sorted) for a string subtype. | 
| int | ll_getTypeClass(int typeCode)Determine the type class of a type. | 
| Type | ll_getTypeForCode(int typeCode)Get a type object for a given code. | 
| boolean | ll_isArrayType(int typeCode)Check if  typeCodeis the type code of an array type. | 
| boolean | ll_isPrimitiveType(int typeCode)Check if  typeCodeis the type code of a primitive type. | 
| boolean | ll_isRefType(int typeCode)Checks if the type code is that of a reference type (anything that's not a basic type,
 currently Integer, String, Float, Boolean, Byte, Short, Long, Double, and subtypes of String -
 specifying allowed-values). | 
| boolean | ll_isStringSubtype(int type)Check if type is a string subtype. | 
| boolean | ll_isValidTypeCode(int typeCode)Check the input type code. | 
| boolean | ll_subsumes(int type1,
           int type2)Check subsumption between two types. | 
static final int UNKNOWN_TYPE_CODE
static final int UNKNOWN_FEATURE_CODE
int ll_getCodeForTypeName(String typeName)
typeName - The name of the type.0 means that the a type of that
         name does not exist in the type system.int ll_getCodeForType(Type type)
type - A type object.int ll_getCodeForFeatureName(String featureName)
featureName - The name of the feature.0 means that the name does not
         represent a feature in the type system.int ll_getCodeForFeature(Feature feature)
feature - A feature object.Type ll_getTypeForCode(int typeCode)
typeCode - The code of the type.null if typeCode is not a valid type code.Feature ll_getFeatureForCode(int featureCode)
featureCode - The code of the feature.null if featureCode is not a valid
         feature code.int[] ll_getAppropriateFeatures(int typeCode)
typeCode - Input type code.typeCode.int ll_getDomainType(int featureCode)
featureCode - Input feature code.featureCode.int ll_getRangeType(int featureCode)
featureCode - Input feature code.featureCode.boolean ll_subsumes(int type1,
                    int type2)
type1 - -type2 - -true iff type1 subsumes type2.int ll_getTypeClass(int typeCode)
TYPE_CLASS_INVALID -- Not a valid type code.TYPE_CLASS_INT -- Integer type.TYPE_CLASS_FLOAT -- Float type.TYPE_CLASS_STRING -- String type.TYPE_CLASS_INTARRAY -- Integer array.TYPE_CLASS_FLOATARRAY -- Float array.TYPE_CLASS_STRINGARRAY -- String array.TYPE_CLASS_FSARRAY -- FS array.TYPE_CLASS_FS -- FS type, i.e., all other types, including all user-defined
 types.typeCode - The type code.TYPE_CLASS_INVALID if the type code
         argument does not represent a valid type code.boolean ll_isStringSubtype(int type)
type - The type to be checked.true iff type is a subtype of String.boolean ll_isRefType(int typeCode)
typeCode - The type code to check.true iff typeCode is the type code of a reference type.boolean ll_isArrayType(int typeCode)
typeCode is the type code of an array type.typeCode - The type code to check.true iff typeCode is an array type code.boolean ll_isPrimitiveType(int typeCode)
typeCode is the type code of a primitive type.typeCode - The type code to check.true iff typeCode is a primitive type code.int ll_getArrayType(int componentTypeCode)
componentTypeCode as component type
 code.componentTypeCode - The type code of the component type.UNKNOWN_TYPE_CODE if componentTypeCode is not a valid type code.boolean ll_isValidTypeCode(int typeCode)
typeCode - Type code to check.true iff typeCode is a valid type code.int ll_getComponentType(int arrayTypeCode)
arrayTypeCode - The input array type code.UNKNOWN_TYPE_CODE
         if arrayTypeCode is not valid or not an array type.int ll_getParentType(int typeCode)
typeCode - The type code we want the parent for.String[] ll_getStringSet(int typeCode)
typeCode - Input type code; should be a string subtype.null.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.