org.freehep.jaco.rtti.cpp
Class CPPParser3rd
java.lang.Object
org.freehep.jaco.rtti.cpp.CPPParser3rd
- All Implemented Interfaces:
- CPPParser3rdConstants
- public final class CPPParser3rd
- extends Object
- implements CPPParser3rdConstants
- Source Code:
- CPPParser3rd.java
Fields inherited from interface org.freehep.jaco.rtti.cpp.CPPParser3rdConstants |
_DEFAULT, AFTER_LINE_DIRECTIVE, AMPERSAND, AND, AND_EQ, ARROWSTAR, ASM, ASSIGNEQUAL, AUTO, BITAND, BITOR, BITWISEANDEQUAL, BITWISEOR, BITWISEOREQUAL, BITWISEXOR, BITWISEXOREQUAL, BOOL, BREAK, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, COMPL, CONST, CONST_CAST, CONTINUE, DECIMAL, DEFAULT, DELETE, DIVIDE, DIVIDEEQUAL, DO, DOT, DOTSTAR, DOUBLE, DYNAMIC_CAST, ELLIPSIS, ELSE, ENUM, EOF, EQUAL, EXPLICIT, EXPORT, EXTERN, FALSETOK, FLOAT, FLOATONE, FLOATTWO, FOR, FORMAL_COMMENT, FRIEND, GOTO, GREATERTHAN, GREATERTHANOREQUALTO, HEXADECIMAL, IDENTIFIER, IF, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INLINE, INT, LCURLYBRACE, LESSTHAN, LESSTHANOREQUALTO, LINE_DIRECTIVE, LINE_NUMBER, LOGICALAND, LOGICALNOT, LOGICALOR, LONG, LPARENTHESIS, LSQUAREBRACKET, MINUS, MINUSEQUAL, MINUSMINUS, MOD, MODEQUAL, MULTI_LINE_COMMENT, MUTABLE, NAMESPACE, NEW, NOT, NOT_EQ, NOTEQUAL, OCTAL, OPERATOR, OR, OR_EQ, PLUS, PLUSEQUAL, PLUSPLUS, POINTERTO, PREPROCESSOR_OUTPUT, PRIVATE, PROTECTED, PUBLIC, QUESTIONMARK, RCURLYBRACE, REGISTER, REINTERPRET_CAST, RETURN, RPARENTHESIS, RSQUAREBRACKET, SCOPE, SEMICOLON, SHIFTLEFT, SHIFTLEFTEQUAL, SHIFTRIGHT, SHIFTRIGHTEQUAL, SHORT, SIGNED, SINGLE_LINE_COMMENT, SIZEOF, STAR, STATIC, STATIC_CAST, STRING_LITERAL, STRUCT, SWITCH, TEMPLATE, THIS, THROW, TILDE, TIMESEQUAL, tokenImage, TRUETOK, TRY, TYPEDEF, TYPEID, TYPENAME, UNION, UNSIGNED, USING, VIRTUAL, VOID, VOLATILE, WCHAR_T, WHILE, XOR, XOR_EQ |
Method Summary |
org.freehep.jaco.rtti.cpp.Declarator |
abstract_declarator()
|
String |
access_specifier()
|
void |
additive_expression()
|
void |
and_expression()
|
void |
asm_definition()
|
void |
assignment_expression()
|
void |
assignment_operator()
|
void |
base_clause(Vector superclasses)
|
void |
base_specifier_list(Vector superclasses)
|
String |
base_specifier()
|
void |
block_declaration()
|
void |
cast_expression()
|
String |
class_head(Vector superclasses)
|
void |
class_key()
|
String |
class_name()
|
String |
class_or_namespace_name()
|
void |
class_specifier()
|
void |
compound_statement()
|
void |
conditional_expression()
|
void |
constant_expression()
|
void |
constant_initializer()
|
void |
conversion_declarator()
|
void |
conversion_function_id()
|
void |
conversion_type_id()
|
void |
ctor_initializer()
|
void |
cv_qualifier_seq()
|
void |
cv_qualifier()
|
org.freehep.jaco.rtti.cpp.Modifiers |
decl_specifier_seq(org.freehep.jaco.rtti.cpp.Modifiers modifiers)
|
void |
decl_specifier(org.freehep.jaco.rtti.cpp.Modifiers modifiers)
|
void |
declaration_seq()
|
void |
declaration()
|
String |
declarator_id()
|
org.freehep.jaco.rtti.cpp.Declarator |
declarator()
|
void |
delete_expression()
|
org.freehep.jaco.rtti.cpp.Declarator |
direct_abstract_declarator_prefix()
|
org.freehep.jaco.rtti.cpp.Declarator |
direct_abstract_declarator()
|
org.freehep.jaco.rtti.cpp.Declarator |
direct_declarator()
|
void |
direct_new_declarator()
|
void |
disable_tracing()
|
void |
elaborated_type_specifier()
|
void |
enable_tracing()
|
void |
enum_name()
|
void |
enum_specifier()
|
void |
enumerator_definition()
|
void |
enumerator_list()
|
void |
enumerator()
|
void |
equality_expression()
|
void |
exception_declaration()
|
void |
exception_specification()
|
void |
exclusive_or_expression()
|
void |
explicit_instantiation()
|
void |
explicit_specialization()
|
void |
expression_list()
|
void |
expression()
|
void |
function_body()
|
void |
function_definition(String name,
Vector constructors,
Vector destructors,
Vector methods,
boolean isPublic)
|
void |
function_specifier()
|
void |
function_try_block()
|
ParseException |
generateParseException()
|
Token |
getNextToken()
|
Token |
getToken(int index)
|
void |
handler_seq()
|
void |
handler()
|
String |
id_expression()
|
String |
identifier()
|
void |
inclusive_or_expression()
|
org.freehep.jaco.rtti.cpp.Declarator |
init_declarator_list()
|
org.freehep.jaco.rtti.cpp.Declarator |
init_declarator(boolean isTypedef)
|
void |
initializer_clause()
|
void |
initializer_list()
|
void |
initializer()
|
void |
linkage_specification()
|
void |
literal()
|
void |
logical_and_expression()
|
void |
logical_or_expression()
|
static void |
main(String[] args)
|
void |
mem_initializer_id()
|
void |
mem_initializer_list()
|
void |
mem_initializer()
|
void |
member_declaration(String name,
Vector constructors,
Vector destructors,
Vector methods,
boolean isPublic)
|
org.freehep.jaco.rtti.cpp.Declarator |
member_declarator_list()
|
org.freehep.jaco.rtti.cpp.Declarator |
member_declarator()
|
void |
member_specification(String name,
Vector constructors,
Vector destructors,
Vector methods)
|
void |
multiplicative_expression()
|
void |
named_namespace_definition()
|
void |
namespace_alias_definition()
|
void |
namespace_body()
|
void |
namespace_definition()
|
String |
namespace_name()
|
String |
nested_name_specifier()
|
void |
new_declarator()
|
void |
new_expression()
|
void |
new_initializer()
|
void |
new_placement()
|
void |
new_type_id()
|
String |
operator_function_id()
|
String |
operator()
|
void |
parameter_declaration_clause(org.freehep.jaco.rtti.cpp.Declarator declarator)
|
void |
parameter_declaration_list(org.freehep.jaco.rtti.cpp.Declarator declarator)
|
INamedType |
parameter_declaration()
|
void |
pm_expression()
|
void |
postfix_expression()
|
void |
primary_expression()
|
void |
pseudo_destructor_name()
|
void |
ptr_operator(org.freehep.jaco.rtti.cpp.Declaration dec)
|
void |
pure_specifier()
|
String |
qualified_id()
|
void |
qualified_namespace_specifier()
|
void |
ReInit(CPPParser3rdTokenManager tm)
|
void |
ReInit(InputStream stream)
|
void |
ReInit(Reader stream)
|
void |
relational_expression()
|
void |
shift_expression()
|
void |
simple_declaration()
|
org.freehep.jaco.rtti.cpp.Type |
simple_type_specifier()
|
boolean |
storage_class_specifier()
|
static void |
storeComment(Token token)
|
void |
ta_expression()
|
void |
ta_operator()
|
void |
ta_term()
|
void |
template_arguments()
|
void |
template_declaration()
|
String |
template_id()
|
String |
template_name()
|
void |
template_parameter_list()
|
void |
template_parameter()
|
void |
throw_expression()
|
void |
translation_unit()
|
void |
try_block()
|
void |
type_id_list()
|
void |
type_id()
|
String |
type_name()
|
void |
type_parameter()
|
void |
type_specifier_seq()
|
org.freehep.jaco.rtti.cpp.Type |
type_specifier()
|
void |
typedef_name()
|
void |
unary_expression()
|
void |
unary_operator()
|
void |
unnamed_namespace_definition()
|
String |
unqualified_id()
|
void |
using_declaration()
|
void |
using_directive()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public CPPParser3rdTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
CPPParser3rd
public CPPParser3rd(InputStream stream)
CPPParser3rd
public CPPParser3rd(Reader stream)
CPPParser3rd
public CPPParser3rd(CPPParser3rdTokenManager tm)
storeComment
public static void storeComment(Token token)
main
public static void main(String[] args)
literal
public final void literal()
throws ParseException
- Throws:
ParseException
identifier
public final String identifier()
throws ParseException
- Throws:
ParseException
translation_unit
public final void translation_unit()
throws ParseException
- Throws:
ParseException
primary_expression
public final void primary_expression()
throws ParseException
- Throws:
ParseException
id_expression
public final String id_expression()
throws ParseException
- Throws:
ParseException
unqualified_id
public final String unqualified_id()
throws ParseException
- Throws:
ParseException
qualified_id
public final String qualified_id()
throws ParseException
- Throws:
ParseException
nested_name_specifier
public final String nested_name_specifier()
throws ParseException
- Throws:
ParseException
class_or_namespace_name
public final String class_or_namespace_name()
throws ParseException
- Throws:
ParseException
postfix_expression
public final void postfix_expression()
throws ParseException
- Throws:
ParseException
expression_list
public final void expression_list()
throws ParseException
- Throws:
ParseException
pseudo_destructor_name
public final void pseudo_destructor_name()
throws ParseException
- Throws:
ParseException
unary_expression
public final void unary_expression()
throws ParseException
- Throws:
ParseException
unary_operator
public final void unary_operator()
throws ParseException
- Throws:
ParseException
new_expression
public final void new_expression()
throws ParseException
- Throws:
ParseException
new_placement
public final void new_placement()
throws ParseException
- Throws:
ParseException
new_type_id
public final void new_type_id()
throws ParseException
- Throws:
ParseException
new_declarator
public final void new_declarator()
throws ParseException
- Throws:
ParseException
direct_new_declarator
public final void direct_new_declarator()
throws ParseException
- Throws:
ParseException
new_initializer
public final void new_initializer()
throws ParseException
- Throws:
ParseException
delete_expression
public final void delete_expression()
throws ParseException
- Throws:
ParseException
cast_expression
public final void cast_expression()
throws ParseException
- Throws:
ParseException
pm_expression
public final void pm_expression()
throws ParseException
- Throws:
ParseException
multiplicative_expression
public final void multiplicative_expression()
throws ParseException
- Throws:
ParseException
additive_expression
public final void additive_expression()
throws ParseException
- Throws:
ParseException
shift_expression
public final void shift_expression()
throws ParseException
- Throws:
ParseException
relational_expression
public final void relational_expression()
throws ParseException
- Throws:
ParseException
equality_expression
public final void equality_expression()
throws ParseException
- Throws:
ParseException
and_expression
public final void and_expression()
throws ParseException
- Throws:
ParseException
exclusive_or_expression
public final void exclusive_or_expression()
throws ParseException
- Throws:
ParseException
inclusive_or_expression
public final void inclusive_or_expression()
throws ParseException
- Throws:
ParseException
logical_and_expression
public final void logical_and_expression()
throws ParseException
- Throws:
ParseException
logical_or_expression
public final void logical_or_expression()
throws ParseException
- Throws:
ParseException
conditional_expression
public final void conditional_expression()
throws ParseException
- Throws:
ParseException
assignment_expression
public final void assignment_expression()
throws ParseException
- Throws:
ParseException
assignment_operator
public final void assignment_operator()
throws ParseException
- Throws:
ParseException
expression
public final void expression()
throws ParseException
- Throws:
ParseException
constant_expression
public final void constant_expression()
throws ParseException
- Throws:
ParseException
compound_statement
public final void compound_statement()
throws ParseException
- Throws:
ParseException
declaration_seq
public final void declaration_seq()
throws ParseException
- Throws:
ParseException
declaration
public final void declaration()
throws ParseException
- Throws:
ParseException
block_declaration
public final void block_declaration()
throws ParseException
- Throws:
ParseException
simple_declaration
public final void simple_declaration()
throws ParseException
- Throws:
ParseException
decl_specifier
public final void decl_specifier(org.freehep.jaco.rtti.cpp.Modifiers modifiers)
throws ParseException
- Throws:
ParseException
decl_specifier_seq
public final org.freehep.jaco.rtti.cpp.Modifiers decl_specifier_seq(org.freehep.jaco.rtti.cpp.Modifiers modifiers)
throws ParseException
- Throws:
ParseException
storage_class_specifier
public final boolean storage_class_specifier()
throws ParseException
- Throws:
ParseException
function_specifier
public final void function_specifier()
throws ParseException
- Throws:
ParseException
typedef_name
public final void typedef_name()
throws ParseException
- Throws:
ParseException
type_specifier
public final org.freehep.jaco.rtti.cpp.Type type_specifier()
throws ParseException
- Throws:
ParseException
simple_type_specifier
public final org.freehep.jaco.rtti.cpp.Type simple_type_specifier()
throws ParseException
- Throws:
ParseException
type_name
public final String type_name()
throws ParseException
- Throws:
ParseException
elaborated_type_specifier
public final void elaborated_type_specifier()
throws ParseException
- Throws:
ParseException
enum_name
public final void enum_name()
throws ParseException
- Throws:
ParseException
enum_specifier
public final void enum_specifier()
throws ParseException
- Throws:
ParseException
enumerator_list
public final void enumerator_list()
throws ParseException
- Throws:
ParseException
enumerator_definition
public final void enumerator_definition()
throws ParseException
- Throws:
ParseException
enumerator
public final void enumerator()
throws ParseException
- Throws:
ParseException
namespace_name
public final String namespace_name()
throws ParseException
- Throws:
ParseException
namespace_definition
public final void namespace_definition()
throws ParseException
- Throws:
ParseException
named_namespace_definition
public final void named_namespace_definition()
throws ParseException
- Throws:
ParseException
unnamed_namespace_definition
public final void unnamed_namespace_definition()
throws ParseException
- Throws:
ParseException
namespace_body
public final void namespace_body()
throws ParseException
- Throws:
ParseException
namespace_alias_definition
public final void namespace_alias_definition()
throws ParseException
- Throws:
ParseException
qualified_namespace_specifier
public final void qualified_namespace_specifier()
throws ParseException
- Throws:
ParseException
using_declaration
public final void using_declaration()
throws ParseException
- Throws:
ParseException
using_directive
public final void using_directive()
throws ParseException
- Throws:
ParseException
asm_definition
public final void asm_definition()
throws ParseException
- Throws:
ParseException
linkage_specification
public final void linkage_specification()
throws ParseException
- Throws:
ParseException
init_declarator_list
public final org.freehep.jaco.rtti.cpp.Declarator init_declarator_list()
throws ParseException
- Throws:
ParseException
init_declarator
public final org.freehep.jaco.rtti.cpp.Declarator init_declarator(boolean isTypedef)
throws ParseException
- Throws:
ParseException
declarator
public final org.freehep.jaco.rtti.cpp.Declarator declarator()
throws ParseException
- Throws:
ParseException
direct_declarator
public final org.freehep.jaco.rtti.cpp.Declarator direct_declarator()
throws ParseException
- Throws:
ParseException
ptr_operator
public final void ptr_operator(org.freehep.jaco.rtti.cpp.Declaration dec)
throws ParseException
- Throws:
ParseException
cv_qualifier_seq
public final void cv_qualifier_seq()
throws ParseException
- Throws:
ParseException
cv_qualifier
public final void cv_qualifier()
throws ParseException
- Throws:
ParseException
declarator_id
public final String declarator_id()
throws ParseException
- Throws:
ParseException
type_id
public final void type_id()
throws ParseException
- Throws:
ParseException
type_specifier_seq
public final void type_specifier_seq()
throws ParseException
- Throws:
ParseException
abstract_declarator
public final org.freehep.jaco.rtti.cpp.Declarator abstract_declarator()
throws ParseException
- Throws:
ParseException
direct_abstract_declarator
public final org.freehep.jaco.rtti.cpp.Declarator direct_abstract_declarator()
throws ParseException
- Throws:
ParseException
direct_abstract_declarator_prefix
public final org.freehep.jaco.rtti.cpp.Declarator direct_abstract_declarator_prefix()
throws ParseException
- Throws:
ParseException
parameter_declaration_clause
public final void parameter_declaration_clause(org.freehep.jaco.rtti.cpp.Declarator declarator)
throws ParseException
- Throws:
ParseException
parameter_declaration_list
public final void parameter_declaration_list(org.freehep.jaco.rtti.cpp.Declarator declarator)
throws ParseException
- Throws:
ParseException
parameter_declaration
public final INamedType parameter_declaration()
throws ParseException
- Throws:
ParseException
function_definition
public final void function_definition(String name,
Vector constructors,
Vector destructors,
Vector methods,
boolean isPublic)
throws ParseException
- Throws:
ParseException
function_body
public final void function_body()
throws ParseException
- Throws:
ParseException
initializer
public final void initializer()
throws ParseException
- Throws:
ParseException
initializer_clause
public final void initializer_clause()
throws ParseException
- Throws:
ParseException
initializer_list
public final void initializer_list()
throws ParseException
- Throws:
ParseException
class_name
public final String class_name()
throws ParseException
- Throws:
ParseException
class_specifier
public final void class_specifier()
throws ParseException
- Throws:
ParseException
class_head
public final String class_head(Vector superclasses)
throws ParseException
- Throws:
ParseException
class_key
public final void class_key()
throws ParseException
- Throws:
ParseException
member_specification
public final void member_specification(String name,
Vector constructors,
Vector destructors,
Vector methods)
throws ParseException
- Throws:
ParseException
member_declaration
public final void member_declaration(String name,
Vector constructors,
Vector destructors,
Vector methods,
boolean isPublic)
throws ParseException
- Throws:
ParseException
member_declarator_list
public final org.freehep.jaco.rtti.cpp.Declarator member_declarator_list()
throws ParseException
- Throws:
ParseException
member_declarator
public final org.freehep.jaco.rtti.cpp.Declarator member_declarator()
throws ParseException
- Throws:
ParseException
pure_specifier
public final void pure_specifier()
throws ParseException
- Throws:
ParseException
constant_initializer
public final void constant_initializer()
throws ParseException
- Throws:
ParseException
base_clause
public final void base_clause(Vector superclasses)
throws ParseException
- Throws:
ParseException
base_specifier_list
public final void base_specifier_list(Vector superclasses)
throws ParseException
- Throws:
ParseException
base_specifier
public final String base_specifier()
throws ParseException
- Throws:
ParseException
access_specifier
public final String access_specifier()
throws ParseException
- Throws:
ParseException
conversion_function_id
public final void conversion_function_id()
throws ParseException
- Throws:
ParseException
conversion_type_id
public final void conversion_type_id()
throws ParseException
- Throws:
ParseException
conversion_declarator
public final void conversion_declarator()
throws ParseException
- Throws:
ParseException
ctor_initializer
public final void ctor_initializer()
throws ParseException
- Throws:
ParseException
mem_initializer_list
public final void mem_initializer_list()
throws ParseException
- Throws:
ParseException
mem_initializer
public final void mem_initializer()
throws ParseException
- Throws:
ParseException
mem_initializer_id
public final void mem_initializer_id()
throws ParseException
- Throws:
ParseException
operator_function_id
public final String operator_function_id()
throws ParseException
- Throws:
ParseException
operator
public final String operator()
throws ParseException
- Throws:
ParseException
template_declaration
public final void template_declaration()
throws ParseException
- Throws:
ParseException
template_parameter_list
public final void template_parameter_list()
throws ParseException
- Throws:
ParseException
template_parameter
public final void template_parameter()
throws ParseException
- Throws:
ParseException
type_parameter
public final void type_parameter()
throws ParseException
- Throws:
ParseException
template_id
public final String template_id()
throws ParseException
- Throws:
ParseException
template_name
public final String template_name()
throws ParseException
- Throws:
ParseException
template_arguments
public final void template_arguments()
throws ParseException
- Throws:
ParseException
ta_expression
public final void ta_expression()
throws ParseException
- Throws:
ParseException
ta_term
public final void ta_term()
throws ParseException
- Throws:
ParseException
ta_operator
public final void ta_operator()
throws ParseException
- Throws:
ParseException
explicit_instantiation
public final void explicit_instantiation()
throws ParseException
- Throws:
ParseException
explicit_specialization
public final void explicit_specialization()
throws ParseException
- Throws:
ParseException
try_block
public final void try_block()
throws ParseException
- Throws:
ParseException
function_try_block
public final void function_try_block()
throws ParseException
- Throws:
ParseException
handler_seq
public final void handler_seq()
throws ParseException
- Throws:
ParseException
handler
public final void handler()
throws ParseException
- Throws:
ParseException
exception_declaration
public final void exception_declaration()
throws ParseException
- Throws:
ParseException
throw_expression
public final void throw_expression()
throws ParseException
- Throws:
ParseException
exception_specification
public final void exception_specification()
throws ParseException
- Throws:
ParseException
type_id_list
public final void type_id_list()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(CPPParser3rdTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2000-2004 FreeHEP, All Rights Reserved.