cryptix.asn1.lang

Class Parser

Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class Parser
extends java.lang.Object
implements ParserTreeConstants, ParserConstants

Nested Class Summary

(package private) static class
Parser.JJCalls

Field Summary

(package private) static boolean
DEFAULT_TAG_TYPE
(package private) boolean
isTagExplicit
(package private) ASCII_CharStream
jj_input_stream
Token
jj_nt
protected JJTParserState
jjtree
boolean
lookingAhead
(package private) static Hashtable
sTable
(package private) static Object[]
stack
Stack for runtime interpretation of OID values.
Token
token
ParserTokenManager
token_source
(package private) static int
top

Fields inherited from interface cryptix.asn1.lang.ParserConstants

ANY, APPLICATION, BIT, BOOLEAN, BY, B_STRING, COMMENT, C_STRING, DEFAULT, DEFAULT_TYPE, DEFINED, DIGIT, EOF, EXPLICIT, FALSE, GENERALIZED_TIME, GENERAL_STRING, GRAPHIC_STRING, H_STRING, IA5_STRING, IDENTIFIER, IMPLICIT, INTEGER, ISO646_STRING, LETTER, LOWER, NULL, NUMBER, NUMERIC_STRING, OBJECT, OCTET, OF, OPTIONAL, PRINTABLE_STRING, PRIVATE, SEQUENCE, SET, STRING, T61_STRING, TELETEX_STRING, TRUE, UNIVERSAL, UPPER, UTC_TIME, VIDEOTEX_STRING, VISIBLE_STRING, tokenImage

Fields inherited from interface cryptix.asn1.lang.ParserTreeConstants

JJTANY, JJTBITSTRING, JJTBOOLEAN, JJTINTEGER, JJTNULL, JJTOBJECTIDENTIFIER, JJTOCTETSTRING, JJTPRINTABLESTRING, JJTSEQUENCE, JJTSEQUENCEOF, JJTSET, JJTSETOF, JJTSPECIFICATION, JJTTAGGEDTYPE, JJTTIME, JJTTYPE, JJTTYPEALIAS, JJTVOID, jjtNodeName

Constructor Summary

Parser(ParserTokenManager tm)
Parser(java.io.InputStream stream)
Parser(java.io.Reader stream)

Method Summary

ASNAny
AnyType(String name, boolean topLevel)
void
Assignment()
ASNBitString
BitStringType(String name, boolean topLevel)
boolean
Boolean()
ASNBoolean
BooleanType(String name, boolean topLevel)
void
BuiltInType(String name, boolean topLevel)
Object
BuiltInValue()
String
CharacterString()
void
CharacterStringType(String name, boolean topLevel)
int
ClassNumber()
int
Clazz()
Object
DefinedValue()
void
ElementType(String structure)
void
ElementTypeList(String structure)
void
ElementValueList(Vector sequence)
String
Identifier()
BigInteger
Integer()
ASNInteger
IntegerType(String name, boolean topLevel)
void
NamedNumber()
void
NamedNumberList()
void
NamedValue(Vector container)
void
Null()
ASNNull
NullType(String name, boolean topLevel)
void
NumberForm()
void
OIDAssignment()
void
ObjIdComponent()
String
ObjectIdentifier()
ASNObjectIdentifier
ObjectIdentifierType(String name, boolean topLevel)
byte[]
OctetString()
ASNOctetString
OctetStringType(String name, boolean topLevel)
void
ReInit(ParserTokenManager tm)
void
ReInit(java.io.InputStream stream)
void
ReInit(java.io.Reader stream)
Vector
Sequence()
ASNSequenceOf
SequenceOfType(String name, boolean topLevel)
ASNSequence
SequenceType(String name, boolean topLevel)
ASNSetOf
SetOfType(String name, boolean topLevel)
ASNSet
SetType(String name, boolean topLevel)
BigInteger
SignedNumber()
ASNSpecification
Specification(boolean tracing)
ASNTaggedType
TaggedType(String name, boolean topLevel)
boolean
Tagging()
ASNType
Type(String name, boolean topLevel)
void
TypeAssignment()
String
TypeReference()
ASNTime
UTCTime(String name, boolean topLevel)
void
UsefulType(String name, boolean topLevel)
Object
Value()
String
ValueReference()
static int
countUnresolvedReferences()
void
disable_tracing()
static void
dumpSymbolTable()
Dump symbol table.
void
enable_tracing()
ParseException
generateParseException()
Token
getNextToken()
Token
getToken(int index)
static Object
resolve(String aName)

Field Details

DEFAULT_TAG_TYPE

(package private) static final boolean DEFAULT_TAG_TYPE
Field Value:
false

isTagExplicit

(package private)  boolean isTagExplicit

jj_input_stream

(package private)  ASCII_CharStream jj_input_stream

jj_nt

public Token jj_nt

jjtree

protected JJTParserState jjtree

lookingAhead

public boolean lookingAhead

sTable

(package private) static Hashtable sTable

stack

(package private) static Object[] stack
Stack for runtime interpretation of OID values.

token

public Token token

token_source

public ParserTokenManager token_source

top

(package private) static int top

Constructor Details

Parser

public Parser(ParserTokenManager tm)

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Method Details

AnyType

public final ASNAny AnyType(String name,
                            boolean topLevel)
            throws ParseException

Assignment

public final void Assignment()
            throws ParseException

BitStringType

public final ASNBitString BitStringType(String name,
                                        boolean topLevel)
            throws ParseException

Boolean

public final boolean Boolean()
            throws ParseException

BooleanType

public final ASNBoolean BooleanType(String name,
                                    boolean topLevel)
            throws ParseException

BuiltInType

public final void BuiltInType(String name,
                              boolean topLevel)
            throws ParseException

BuiltInValue

public final Object BuiltInValue()
            throws ParseException

CharacterString

public final String CharacterString()
            throws ParseException

CharacterStringType

public final void CharacterStringType(String name,
                                      boolean topLevel)
            throws ParseException

ClassNumber

public final int ClassNumber()
            throws ParseException

Clazz

public final int Clazz()
            throws ParseException

DefinedValue

public final Object DefinedValue()
            throws ParseException

ElementType

public final void ElementType(String structure)
            throws ParseException

ElementTypeList

public final void ElementTypeList(String structure)
            throws ParseException

ElementValueList

public final void ElementValueList(Vector sequence)
            throws ParseException

Identifier

public final String Identifier()
            throws ParseException

Integer

public final BigInteger Integer()
            throws ParseException

IntegerType

public final ASNInteger IntegerType(String name,
                                    boolean topLevel)
            throws ParseException

NamedNumber

public final void NamedNumber()
            throws ParseException

NamedNumberList

public final void NamedNumberList()
            throws ParseException

NamedValue

public final void NamedValue(Vector container)
            throws ParseException

Null

public final void Null()
            throws ParseException

NullType

public final ASNNull NullType(String name,
                              boolean topLevel)
            throws ParseException

NumberForm

public final void NumberForm()
            throws ParseException

OIDAssignment

public final void OIDAssignment()
            throws ParseException

ObjIdComponent

public final void ObjIdComponent()
            throws ParseException

ObjectIdentifier

public final String ObjectIdentifier()
            throws ParseException

ObjectIdentifierType

public final ASNObjectIdentifier ObjectIdentifierType(String name,
                                                      boolean topLevel)
            throws ParseException

OctetString

public final byte[] OctetString()
            throws ParseException

OctetStringType

public final ASNOctetString OctetStringType(String name,
                                            boolean topLevel)
            throws ParseException

ReInit

public void ReInit(ParserTokenManager tm)

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

Sequence

public final Vector Sequence()
            throws ParseException

SequenceOfType

public final ASNSequenceOf SequenceOfType(String name,
                                          boolean topLevel)
            throws ParseException

SequenceType

public final ASNSequence SequenceType(String name,
                                      boolean topLevel)
            throws ParseException

SetOfType

public final ASNSetOf SetOfType(String name,
                                boolean topLevel)
            throws ParseException

SetType

public final ASNSet SetType(String name,
                            boolean topLevel)
            throws ParseException

SignedNumber

public final BigInteger SignedNumber()
            throws ParseException

Specification

public final ASNSpecification Specification(boolean tracing)
            throws ParseException

TaggedType

public final ASNTaggedType TaggedType(String name,
                                      boolean topLevel)
            throws ParseException

Tagging

public final boolean Tagging()
            throws ParseException

Type

public final ASNType Type(String name,
                          boolean topLevel)
            throws ParseException

TypeAssignment

public final void TypeAssignment()
            throws ParseException

TypeReference

public final String TypeReference()
            throws ParseException

UTCTime

public final ASNTime UTCTime(String name,
                             boolean topLevel)
            throws ParseException

UsefulType

public final void UsefulType(String name,
                             boolean topLevel)
            throws ParseException

Value

public final Object Value()
            throws ParseException

ValueReference

public final String ValueReference()
            throws ParseException

countUnresolvedReferences

public static int countUnresolvedReferences()
Returns:
True iff all Types are defined.

disable_tracing

public final void disable_tracing()

dumpSymbolTable

public static void dumpSymbolTable()
Dump symbol table.

enable_tracing

public final void enable_tracing()

generateParseException

public final ParseException generateParseException()

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

resolve

public static Object resolve(String aName)
Returns:
An ASN.1 parsed object given its name.