C# 클래스 BACnet.SchemaParser.Parser

파일 보기 프로젝트 열기: LorenVS/bacstack 1 사용 예제들

공개 메소드들

메소드 설명
Next ( ) : NamedType

Retrieves the next named type

Parser ( Lexer lexer ) : System

Constructs a new parser instance

비공개 메소드들

메소드 설명
_at ( TokenType type ) : bool

Determines whether the next token has a certain type

_get ( TokenType type ) : string

Gets the value of the next token of a certain type

_parseBitDefinition ( ) : BitDefinition

Parses a bit definition

_parseBitString ( ) : TypeDefinition

Parses a bitstring definition

_parseChoice ( ) : TypeDefinition

Parses a choice definition

_parseDefinition ( bool eagerOptional = true ) : TypeDefinition

Parses a type definition

_parseEnumeration ( ) : TypeDefinition

Parses an enumeration definition

_parseEnumerationOption ( ) : EnumerationOptionDefinition

Parses an enumeration option definition

_parseField ( ) : FieldDefinition

Parses a field definition

_parseSequence ( ) : TypeDefinition

Parses a sequence definition

_peek ( ) : Token

Retrieves the next token without consuming it

_peekType ( ) : TokenType

Retrieves the type of the next token without consuming it

_read ( ) : Token

Retrieves the next token and consumes it

_skipLengthSpecifier ( ) : void

Skips a length specifier (SIZE(1..16)) if present

_skipRangeSpecifier ( ) : void

Skips a range specifier (1..16) if present

메소드 상세

Next() 공개 메소드

Retrieves the next named type
public Next ( ) : NamedType
리턴 NamedType

Parser() 공개 메소드

Constructs a new parser instance
public Parser ( Lexer lexer ) : System
lexer Lexer The lexer instance
리턴 System