|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.idl.runtime.lr_parser
org.jacorb.idl.parser
Field Summary | |
---|---|
protected static short[][] |
_action_table
parse action table |
protected static short[][] |
_production_table
production table |
protected static short[][] |
_reduce_table
reduce_goto table |
protected org.jacorb.idl.CUP$actions |
action_obj
instance of action encapsulation class |
protected static boolean |
cldc10
|
static java.lang.String |
compiler_version
|
static java.lang.String |
currentVersion
|
static boolean |
done_parsing
used for internal checking that name conversion to mapped Java names is done only after parsing |
protected static java.lang.String |
finalString
|
protected static boolean |
forceOverwrite
|
static boolean |
generate_ami_callback
|
static boolean |
generate_ami_polling
|
static boolean |
generate_skeletons
|
static boolean |
generate_stubs
|
protected static boolean |
generateDiiStubs
|
protected static boolean |
generateIncluded
|
static boolean |
generateIR
|
static IDLTreeVisitor |
generator
|
static boolean |
include_state
compiler flags |
protected static boolean |
inhibitionState
|
protected static boolean |
localityContraint
|
static java.util.Hashtable |
pack_replace
|
static java.util.Stack |
scopes
|
static boolean |
sloppy
|
static boolean |
strict_attributes
|
static boolean |
strict_inheritance
these two are to work around buggy IDL generated by Sun's rmic in JDK 1.4 |
static boolean |
strict_names
|
protected static boolean |
useUncheckedNarrow
|
Fields inherited from class org.jacorb.idl.runtime.lr_parser |
---|
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, tos |
Constructor Summary | |
---|---|
parser()
constructor |
Method Summary | |
---|---|
short[][] |
action_table()
access to parse action table |
static int |
activeParseThreads()
|
static void |
closeScope(Scope symbol)
called from within the parser whenever parsing a scope symbol is complete |
static boolean |
compile(java.lang.String[] argv)
|
static boolean |
compile(java.lang.String[] argv,
java.io.StringWriter logWriter)
|
static boolean |
compileAndHandle(java.lang.String[] argv)
|
static ScopeData |
currentScopeData()
|
static void |
decActiveParseThreads()
|
symbol |
do_action(int act_num,
lr_parser parser,
java.util.Stack stack,
int top)
invoke a user supplied parse action |
int |
EOF_sym()
EOF symbol index |
int |
error_sym()
error symbol index |
static void |
error(java.lang.String message)
|
static void |
error(java.lang.String message,
str_token p_info)
|
static void |
fatal_error(java.lang.String message,
str_token p_info)
|
static boolean |
generateIncluded()
|
static java.lang.Object |
get_pending(java.lang.String name)
|
static java.lang.String |
getFinalString()
|
static IDLTreeVisitor |
getGenerator()
|
static boolean |
getInhibitionState()
|
static void |
incActiveParseThreads()
|
protected void |
init_actions()
action encapsulation object initializer |
protected static void |
init()
allows reinitialization if compiler is not run from a command-line |
static void |
main(java.lang.String[] argv)
|
static void |
openScope()
called from the lexer/scanner whenever a scope opening symbol is encountered |
static java.lang.String |
pack_replace(java.lang.String old)
Package replacements as requested by compiler options |
short[][] |
production_table()
access to production table |
short[][] |
reduce_table()
access to reduce_goto table |
static void |
remove_pending(java.lang.String name)
|
void |
report_error(java.lang.String message,
java.lang.Object info)
Report a non fatal error (or warning). |
void |
report_fatal_error(java.lang.String message,
java.lang.Object info)
Report a fatal error. |
token |
scan()
scan to get the next token |
static void |
set_included(boolean i)
|
static void |
set_pending(java.lang.String name)
|
static void |
setFinalString(java.lang.String finalString)
|
static void |
setGenerateFinalCode(boolean isFinal)
|
static void |
setGenerator(IDLTreeVisitor generatorObject)
|
static void |
setInhibitionState(boolean flag)
|
int |
start_production()
start production |
int |
start_state()
start state |
static void |
usage(java.lang.String[] argv,
java.lang.String msg)
|
void |
user_init()
user initialization |
Methods inherited from class org.jacorb.idl.runtime.lr_parser |
---|
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, parse_lookahead, parse, read_lookahead, restart_lookahead, shift_under_error, syntax_error, try_parse_ahead, unrecovered_syntax_error |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
protected org.jacorb.idl.CUP$actions action_obj
public static java.util.Hashtable pack_replace
public static java.util.Stack scopes
public static final java.lang.String currentVersion
public static final java.lang.String compiler_version
public static IDLTreeVisitor generator
public static boolean done_parsing
public static boolean include_state
public static boolean strict_names
public static boolean strict_inheritance
public static boolean strict_attributes
public static boolean generateIR
public static boolean generate_skeletons
public static boolean generate_stubs
public static boolean generate_ami_callback
public static boolean generate_ami_polling
protected static boolean generateIncluded
protected static boolean inhibitionState
protected static boolean localityContraint
protected static boolean useUncheckedNarrow
protected static boolean cldc10
protected static boolean forceOverwrite
protected static boolean generateDiiStubs
protected static java.lang.String finalString
public static boolean sloppy
Constructor Detail |
public parser()
Method Detail |
public short[][] production_table()
production_table
in class lr_parser
public short[][] action_table()
action_table
in class lr_parser
lr_parser.get_action(int, int)
public short[][] reduce_table()
reduce_table
in class lr_parser
lr_parser.get_reduce(int, int)
protected void init_actions()
init_actions
in class lr_parser
public symbol do_action(int act_num, lr_parser parser, java.util.Stack stack, int top) throws java.lang.Exception
do_action
in class lr_parser
act_num
- the internal index of the action to be performed.parser
- the parser object we are acting for.stack
- the parse stack of that object.top
- the index of the top element of the parse stack.
java.lang.Exception
public int start_state()
start_state
in class lr_parser
public int start_production()
start_production
in class lr_parser
public int EOF_sym()
EOF_sym
in class lr_parser
public int error_sym()
error_sym
in class lr_parser
public void user_init() throws java.lang.Exception
user_init
in class lr_parser
java.lang.Exception
public token scan() throws java.lang.Exception
scan
in class lr_parser
java.lang.Exception
protected static void init()
public static void main(java.lang.String[] argv)
public static boolean compileAndHandle(java.lang.String[] argv)
public static boolean compile(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
public static boolean compile(java.lang.String[] argv, java.io.StringWriter logWriter) throws java.lang.Exception
java.lang.Exception
public static void usage(java.lang.String[] argv, java.lang.String msg)
public void report_fatal_error(java.lang.String message, java.lang.Object info) throws ParseException
lr_parser
report_fatal_error
in class lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.
ParseException
public static void fatal_error(java.lang.String message, str_token p_info) throws ParseException
ParseException
public void report_error(java.lang.String message, java.lang.Object info)
lr_parser
report_error
in class lr_parser
message
- an error message.info
- an extra object reserved for use by specialized subclasses.public static void error(java.lang.String message, str_token p_info)
public static void error(java.lang.String message)
public static void openScope()
public static void closeScope(Scope symbol)
public static ScopeData currentScopeData()
public static void set_pending(java.lang.String name)
public static void setGenerator(IDLTreeVisitor generatorObject)
public static IDLTreeVisitor getGenerator()
public static void remove_pending(java.lang.String name)
public static java.lang.Object get_pending(java.lang.String name)
public static void decActiveParseThreads()
public static void incActiveParseThreads()
public static int activeParseThreads()
public static boolean generateIncluded()
public static boolean getInhibitionState()
public static void setInhibitionState(boolean flag)
public static void set_included(boolean i)
public static java.lang.String getFinalString()
public static void setFinalString(java.lang.String finalString)
public static void setGenerateFinalCode(boolean isFinal)
public static java.lang.String pack_replace(java.lang.String old)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |