Package net.aifusion.asn
Enum AsnProduction
- All Implemented Interfaces:
Serializable
,Comparable<AsnProduction>
,java.lang.constant.Constable
Enumeration to manage Productions known to the AstParser
- Author:
- Sharad Singhal
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetNode()
Get an AST node corresponding to this productionGet an AST node corresponding to this productionGet an AST node corresponding to this productionGet an AST node corresponding to this productionGet the name of the productionboolean
check if this production represents a built-in typestatic AsnProduction
Lookup the production corresponding to a namestatic AsnProduction
Returns the enum constant of this type with the specified name.static AsnProduction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ABSOLUTE_REFERENCE
-
ACTUAL_PARAMETER
-
ACTUAL_PARAMETER_LIST
-
ADDITIONAL_ELEMENT_SET_SPEC
-
ADDITIONAL_ENUMERATION
-
ALTERNATIVE_TYPE_LIST
-
ALTERNATIVE_TYPE_LISTS
-
ANY_TYPE
-
ASSIGNED_IDENTIFIER
-
ASSIGNMENT
-
ASSIGNMENT_LIST
-
AT_NOTATION
-
BIT_STRING_TYPE
-
BIT_STRING_VALUE
-
BMP_STRING_TYPE
-
BOOLEAN_TYPE
-
BOOLEAN_VALUE
-
BUILTIN_TYPE
-
BUILTIN_VALUE
-
CELL
-
CHAR_SYMS
-
CHARACTER_STRING_LIST
-
CHARACTER_STRING_TYPE
-
CHARACTER_STRING_VALUE
-
CHARS_DEFN
-
CHOICE_TYPE
-
CHOICE_VALUE
-
CLASS_NUMBER
-
COMPONENT_CONSTRAINT
-
COMPONENT_ID
-
COMPONENT_ID_LIST
-
COMPONENT_RELATION_CONSTRAINT
-
COMPONENT_TYPE
-
COMPONENT_TYPE_LIST
-
COMPONENT_TYPE_LISTS
-
COMPONENT_VALUE_LIST
-
CONSTRAINED_TYPE
-
CONSTRAINT
-
CONSTRAINT_SPEC
-
CONTAINED_SUBTYPE
-
CONTENTS_CONSTRAINT
-
DEFAULT_SYNTAX
-
DEFINED_BY
-
DEFINED_OBJECT
-
DEFINED_OBJECT_CLASS
-
DEFINED_OBJECT_SET
-
DEFINED_SYNTAX
-
DEFINED_SYNTAX_TOKEN
-
DEFINED_TYPE
-
DEFINED_VALUE
-
DEFINITIVE_IDENTIFIER
-
DEFINITIVE_NAME_AND_NUMBER_FORM
-
DEFINITIVE_NUMBER_FORM
-
DEFINITIVE_OBJ_ID_COMPONENT
-
DEFINITIVE_OBJ_ID_COMPONENT_LIST
-
DUMMY_GOVERNOR
-
DUMMY_REFERENCE
-
ELEMENT_SET_SPEC
-
ELEMENT_SET_SPECS
-
ELEMENTS
-
ELEMS
-
EMBEDDED_PDV_TYPE
-
EMBEDDED_PDV_VALUE
-
ENUMERATED_TYPE
-
ENUMERATED_VALUE
-
ENUMERATION
-
ENUMERATION_ITEM
-
ENUMERATIONS
-
EXCEPTION_IDENTIFICATION
-
EXCEPTION_SPEC
-
EXCLUSIONS
-
EXPORTS
-
EXTENSION
-
EXTENSION_ADDITION
-
EXTENSION_ADDITION_ALTERNATIVE
-
EXTENSION_ADDITION_ALTERNATIVES
-
EXTENSION_ADDITION_ALTERNATIVES_GROUP
-
EXTENSION_ADDITION_ALTERNATIVES_LIST
-
EXTENSION_ADDITION_GROUP
-
EXTENSION_ADDITION_LIST
-
EXTENSION_ADDITIONS
-
EXTENSION_AND_EXCEPTION
-
EXTENSION_DEFAULT
-
EXTENSION_END_MARKER
-
EXTERNAL_OBJECT_CLASS_REFERENCE
-
EXTERNAL_OBJECT_REFERENCE
-
EXTERNAL_OBJECT_SET_REFERENCE
-
EXTERNAL_TYPE
-
EXTERNAL_TYPE_REFERENCE
-
EXTERNAL_VALUE
-
EXTERNAL_VALUE_REFERENCE
-
FALSE_TYPE
-
FALSE_VALUE
-
FIELD_NAME
-
FIELD_SETTING
-
FIELD_SPEC
-
FIXED_TYPE_FIELD_VAL
-
FIXED_TYPE_VALUE_FIELD_SPEC
-
FIXED_TYPE_VALUE_SET_FIELD_SPEC
-
FULL_SPECIFICATION
-
GENERAL_CONSTRAINT
-
GENERAL_STRING_TYPE
-
GENERALIZED_TIME_TYPE
-
GLOBAL_MODULE_REFERENCE
-
GOVERNOR
-
GRAPHIC_STRING_TYPE
-
GROUP
-
I_ELEMS
-
IA5_STRING_TYPE
-
IDENTIFIER_LIST
-
IMPORTS
-
INCLUDES
-
INFORMATION_FROM_OBJECTS
-
INNER_TYPE_CONSTRAINTS
-
INSTANCE_OF_TYPE
-
INSTANCE_OF_VALUE
-
INTEGER_TYPE
-
INTEGER_VALUE
-
INTERSECTION_ELEMENTS
-
INTERSECTION_MARK
-
INTERSECTIONS
-
ISO646_STRING_TYPE
-
ITEM_ID
-
ITEM_SPEC
-
LEVEL
-
LITERAL
-
LOWER_END_VALUE
-
LOWER_ENDPOINT
-
MODULE_BODY
-
MODULE_DEFINITION
-
MODULE_IDENTIFIER
-
MULTIPLE_TYPE_CONSTRAINTS
-
NAME_AND_NUMBER_FORM
-
NAME_FORM
-
NAMED_BIT
-
NAMED_BIT_LIST
-
NAMED_CONSTRAINT
-
NAMED_NUMBER
-
NAMED_NUMBER_LIST
-
NAMED_TYPE
-
NAMED_VALUE
-
NON_PARAMETERIZED_TYPE_NAME
-
NULL_TYPE
-
NULL_VALUE
-
NUMBER_FORM
-
NUMERIC_REAL_VALUE
-
NUMERIC_STRING_TYPE
-
OBJ_ID_COMPONENTS
-
OBJ_ID_COMPONENTS_LIST
-
OBJECT
-
OBJECT_ASSIGNMENT
-
OBJECT_CLASS
-
OBJECT_CLASS_ASSIGNMENT
-
OBJECT_CLASS_DEFN
-
OBJECT_CLASS_FIELD_TYPE
-
OBJECT_CLASS_FIELD_VALUE
-
OBJECT_CLASS_REFERENCE
-
OBJECT_DEFN
-
OBJECT_DESCRIPTOR
-
OBJECT_FIELD_REFERENCE
-
OBJECT_FIELD_SPEC
-
OBJECT_FROM_OBJECT
-
OBJECT_IDENTIFIER_TYPE
-
OBJECT_IDENTIFIER_VALUE
-
OBJECT_OPTIONALITY_SPEC
-
OBJECT_REFERENCE
-
OBJECT_SET
-
OBJECT_SET_ASSIGNMENT
-
OBJECT_SET_ELEMENTS
-
OBJECT_SET_FIELD_REFERENCE
-
OBJECT_SET_FIELD_SPEC
-
OBJECT_SET_FROM_OBJECTS
-
OBJECT_SET_OPTIONALITY_SPEC
-
OBJECT_SET_REFERENCE
-
OBJECT_SET_SPEC
-
OCTET_STRING_TYPE
-
OCTET_STRING_VALUE
-
OPEN_TYPE_FIELD_VAL
-
OPTIONAL_EXTENSION_MARKER
-
OPTIONAL_GROUP
-
PARAM_GOVERNOR
-
PARAMETER
-
PARAMETER_LIST
-
PARAMETERIZED_ASSIGNMENT
-
PARAMETERIZED_OBJECT
-
PARAMETERIZED_OBJECT_ASSIGNMENT
-
PARAMETERIZED_OBJECT_CLASS
-
PARAMETERIZED_OBJECT_CLASS_ASSIGNMENT
-
PARAMETERIZED_OBJECT_SET
-
PARAMETERIZED_OBJECT_SET_ASSIGNMENT
-
PARAMETERIZED_REFERENCE
-
PARAMETERIZED_TYPE
-
PARAMETERIZED_TYPE_ASSIGNMENT
-
PARAMETERIZED_VALUE
-
PARAMETERIZED_VALUE_ASSIGNMENT
-
PARAMETERIZED_VALUE_SET_TYPE
-
PARAMETERIZED_VALUE_SET_TYPE_ASSIGNMENT
-
PARTIAL_SPECIFICATION
-
PATTERN_CONSTRAINT
-
PERMITTED_ALPHABET
-
PLANE
-
PRESENCE_CONSTRAINT
-
PRIMITIVE_FIELD_NAME
-
PRINTABLE_STRING_TYPE
-
QUADRUPLE
-
REAL_TYPE
-
REAL_VALUE
-
REFERENCE
-
REFERENCED_OBJECTS
-
REFERENCED_TYPE
-
REFERENCED_VALUE
-
RELATIVE_OID_COMPONENTS
-
RELATIVE_OID_COMPONENTS_LIST
-
RELATIVE_OID_TYPE
-
RELATIVE_OID_VALUE
-
REQUIRED_TOKEN
-
RESTRICTED_CHARACTER_STRING_TYPE
-
RESTRICTED_CHARACTER_STRING_VALUE
-
ROOT
-
ROOT_ALTERNATIVE_TYPE_LIST
-
ROOT_COMPONENT_TYPE_LIST
-
ROOT_ELEMENT_SET_SPEC
-
ROOT_ENUMERATION
-
ROW
-
SELECTION_TYPE
-
SEQUENCE_OF_TYPE
-
SEQUENCE_OF_VALUE
-
SEQUENCE_TYPE
-
SEQUENCE_VALUE
-
SET_OF_TYPE
-
SET_OF_VALUE
-
SET_TYPE
-
SET_VALUE
-
SETTING
-
SIGNED_NUMBER
-
SIMPLE_DEFINED_TYPE
-
SIMPLE_DEFINED_VALUE
-
SIMPLE_TABLE_CONSTRAINT
-
SINGLE_TYPE_CONSTRAINT
-
SINGLE_VALUE
-
SIZE_CONSTRAINT
-
SPECIAL_REAL_VALUE
-
SUBTYPE_CONSTRAINT
-
SUBTYPE_ELEMENTS
-
SYMBOL
-
SYMBOL_LIST
-
SYMBOLS_EXPORTED
-
SYMBOLS_FROM_MODULE
-
SYMBOLS_FROM_MODULE_LIST
-
SYMBOLS_IMPORTED
-
SYNTAX_LIST
-
T61_STRING_TYPE
-
TABLE_COLUMN
-
TABLE_CONSTRAINT
-
TABLE_ROW
-
TAG
-
TAG_CLASS
-
TAG_DEFAULT
-
TAGGED_TYPE
-
TAGGED_VALUE
-
TELETEX_STRING_TYPE
-
TOKEN_OR_GROUP_SPEC
-
TUPLE
-
TYPE
-
TYPE_ASSIGNMENT
-
TYPE_CONSTRAINT
-
TYPE_CONSTRAINTS
-
TYPE_FIELD_REFERENCE
-
TYPE_FIELD_SPEC
-
TYPE_FROM_OBJECT
-
TYPE_OPTIONALITY_SPEC
-
TYPE_REFERENCE
-
TYPE_WITH_CONSTRAINT
-
U_ELEMS
-
UNION_MARK
-
UNIONS
-
UNIVERSAL_STRING_TYPE
-
UNRESTRICTED_CHARACTER_STRING_TYPE
-
UNRESTRICTED_CHARACTER_STRING_VALUE
-
UPPER_END_VALUE
-
UPPER_ENDPOINT
-
USEFUL_OBJECT_CLASS_REFERENCE
-
USEFUL_TYPE
-
USER_DEFINED_CONSTRAINT
-
USER_DEFINED_CONSTRAINT_PARAMETER
-
UTC_TIME_TYPE
-
UTF8_STRING_TYPE
-
VALUE
-
VALUE_ASSIGNMENT
-
VALUE_CONSTRAINT
-
VALUE_FIELD_REFERENCE
-
VALUE_FROM_OBJECT
-
VALUE_LIST
-
VALUE_OPTIONALITY_SPEC
-
VALUE_RANGE
-
VALUE_REFERENCE
-
VALUE_SET
-
VALUE_SET_FROM_OBJECTS
-
VALUE_SET_OPTIONALITY_SPEC
-
VALUE_SET_TYPE_ASSIGNMENT
-
VARIABLE_TYPE_VALUE_FIELD_SPEC
-
VARIABLE_TYPE_VALUE_SET_FIELD_SPEC
-
VERSION_NUMBER
-
VIDEOTEX_STRING_TYPE
-
VISIBLE_STRING_TYPE
-
WITH_SYNTAX_SPEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getProduction
Get the name of the production- Returns:
- - name of the production
-
getNode
Get an AST node corresponding to this production- Returns:
- - AST node corresponding to this production
-
getNode
Get an AST node corresponding to this production- Parameters:
nameToken
- - token containing name of this production- Returns:
- - AST node corresponding to this production
-
getNode
Get an AST node corresponding to this production- Parameters:
name
- - name token associated with the productionvalue
- - value token associated with the production- Returns:
- AST node corresponding to this production
-
getNode
Get an AST node corresponding to this production- Parameters:
name
- - name of the productionisField
- - true if the production is an ObjectClass field, false otherwise- Returns:
- AST node corresponding to this production
-
isBuiltIn
public boolean isBuiltIn()check if this production represents a built-in type- Returns:
- - true if the production is a built-in type, false otherwise
-
lookup
Lookup the production corresponding to a name- Parameters:
s
- - name of the production- Returns:
- - AstProduction. Null if no such production
-