org.jacorb.idl

Class parser

public class parser extends lr_parser

Field Summary
protected CUP$actionsaction_obj
instance of action encapsulation class
protected static booleanaddbackend
protected static booleancldc10
static Stringcompiler_version
static StringcurrentDate
static StringcurrentVersion
static booleandone_parsing
used for internal checking that name conversion to mapped Java names is done only after parsing
protected static StringfinalString
protected static booleanforceOverwrite
protected static booleangenerateDiiStubs
protected static booleangenerateIncluded
static booleangenerateIR
static booleangenerate_ami_callback
static booleangenerate_ami_polling
static booleangenerate_skeletons
static booleangenerate_stubs
static IDLTreeVisitorgenerator
static booleaninclude_state
compiler flags
protected static booleaninhibitionState
protected static booleanlocalityContraint
static Stringout_dir
static Hashtablepack_replace
static Stackscopes
static booleansloppy
static booleanstrict_attributes
static booleanstrict_inheritance
these two are to work around buggy IDL generated by Sun's rmic in JDK 1.4
static booleanstrict_names
protected static booleanuseUncheckedNarrow
protected static short[][]_action_table
parse action table
protected static short[][]_production_table
production table
protected static short[][]_reduce_table
reduce_goto table
Constructor Summary
parser()
constructor
Method Summary
short[][]action_table()
access to parse action table
static intactiveParseThreads()
static voidcloseScope(Scope symbol)
called from within the parser whenever parsing a scope symbol is complete
static booleancompile(String[] argv)
static booleancompile(String[] argv, StringWriter logWriter)
static booleancompileAndHandle(String[] argv)
static ScopeDatacurrentScopeData()
static voiddecActiveParseThreads()
symboldo_action(int act_num, lr_parser parser, Stack stack, int top)
invoke a user supplied parse action
static voiderror(String message, str_token p_info)
static voiderror(String message)
interror_sym()
error symbol index
intEOF_sym()
EOF symbol index
static voidfatal_error(String message, str_token p_info)
static booleangenerateIncluded()
static StringgetFinalString()
static IDLTreeVisitorgetGenerator()
static booleangetInhibitionState()
static LoggergetLogger()
convenience access to the preconfigured loger for the IDL compiler
static Objectget_pending(String name)
static voidincActiveParseThreads()
protected static voidinit()
allows reinitialization if compiler is not run from a command-line
protected voidinit_actions()
action encapsulation object initializer
static voidmain(String[] argv)
static voidopenScope()
called from the lexer/scanner whenever a scope opening symbol is encountered
static Stringpack_replace(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 voidremove_pending(String name)
voidreport_error(String message, Object info)
voidreport_fatal_error(String message, Object info)
tokenscan()
scan to get the next token
static voidsetFinalString(String finalString)
static voidsetGenerateFinalCode(boolean isFinal)
static voidsetGenerator(IDLTreeVisitor generatorObject)
static voidsetInhibitionState(boolean flag)
static voidset_included(boolean i)
static voidset_pending(String name)
intstart_production()
start production
intstart_state()
start state
static voidusage(String[] argv, String msg)
voiduser_init()
user initialization

Field Detail

action_obj

protected CUP$actions action_obj
instance of action encapsulation class

addbackend

protected static boolean addbackend

cldc10

protected static boolean cldc10

compiler_version

public static final String compiler_version

currentDate

public static String currentDate

currentVersion

public static final String currentVersion

done_parsing

public static boolean done_parsing
used for internal checking that name conversion to mapped Java names is done only after parsing

finalString

protected static String finalString

forceOverwrite

protected static boolean forceOverwrite

generateDiiStubs

protected static boolean generateDiiStubs

generateIncluded

protected static boolean generateIncluded

generateIR

public static boolean generateIR

generate_ami_callback

public static boolean generate_ami_callback

generate_ami_polling

public static boolean generate_ami_polling

generate_skeletons

public static boolean generate_skeletons

generate_stubs

public static boolean generate_stubs

generator

public static IDLTreeVisitor generator

include_state

public static boolean include_state
compiler flags

inhibitionState

protected static boolean inhibitionState

localityContraint

protected static boolean localityContraint

out_dir

public static String out_dir

pack_replace

public static Hashtable pack_replace

scopes

public static Stack scopes

sloppy

public static boolean sloppy

strict_attributes

public static boolean strict_attributes

strict_inheritance

public static boolean strict_inheritance
these two are to work around buggy IDL generated by Sun's rmic in JDK 1.4

strict_names

public static boolean strict_names

useUncheckedNarrow

protected static boolean useUncheckedNarrow

_action_table

protected static final short[][] _action_table
parse action table

_production_table

protected static final short[][] _production_table
production table

_reduce_table

protected static final short[][] _reduce_table
reduce_goto table

Constructor Detail

parser

public parser()
constructor

Method Detail

action_table

public short[][] action_table()
access to parse action table

activeParseThreads

public static int activeParseThreads()

closeScope

public static void closeScope(Scope symbol)
called from within the parser whenever parsing a scope symbol is complete

compile

public static boolean compile(String[] argv)

compile

public static boolean compile(String[] argv, StringWriter logWriter)

compileAndHandle

public static boolean compileAndHandle(String[] argv)

currentScopeData

public static ScopeData currentScopeData()

decActiveParseThreads

public static void decActiveParseThreads()

do_action

public symbol do_action(int act_num, lr_parser parser, Stack stack, int top)
invoke a user supplied parse action

error

public static void error(String message, str_token p_info)

error

public static void error(String message)

error_sym

public int error_sym()
error symbol index

EOF_sym

public int EOF_sym()
EOF symbol index

fatal_error

public static void fatal_error(String message, str_token p_info)

generateIncluded

public static boolean generateIncluded()

getFinalString

public static String getFinalString()

getGenerator

public static IDLTreeVisitor getGenerator()

getInhibitionState

public static boolean getInhibitionState()

getLogger

public static final Logger getLogger()
convenience access to the preconfigured loger for the IDL compiler

get_pending

public static Object get_pending(String name)

incActiveParseThreads

public static void incActiveParseThreads()

init

protected static void init()
allows reinitialization if compiler is not run from a command-line

init_actions

protected void init_actions()
action encapsulation object initializer

main

public static void main(String[] argv)

openScope

public static void openScope()
called from the lexer/scanner whenever a scope opening symbol is encountered

pack_replace

public static String pack_replace(String old)
Package replacements as requested by compiler options

production_table

public short[][] production_table()
access to production table

reduce_table

public short[][] reduce_table()
access to reduce_goto table

remove_pending

public static void remove_pending(String name)

report_error

public void report_error(String message, Object info)

report_fatal_error

public void report_fatal_error(String message, Object info)

scan

public token scan()
scan to get the next token

setFinalString

public static void setFinalString(String finalString)

setGenerateFinalCode

public static void setGenerateFinalCode(boolean isFinal)

setGenerator

public static void setGenerator(IDLTreeVisitor generatorObject)

setInhibitionState

public static void setInhibitionState(boolean flag)

set_included

public static void set_included(boolean i)

set_pending

public static void set_pending(String name)

start_production

public int start_production()
start production

start_state

public int start_state()
start state

usage

public static void usage(String[] argv, String msg)

user_init

public void user_init()
user initialization