org.python.compiler
Class CodeCompiler
java.lang.Object
org.python.parser.Visitor
org.python.compiler.CodeCompiler
- All Implemented Interfaces:
- ClassConstants, CompilationContext, PythonGrammarTreeConstants
- public class CodeCompiler
- extends Visitor
- implements CompilationContext, ClassConstants, PythonGrammarTreeConstants
Fields inherited from interface org.python.compiler.ClassConstants |
$clss, $obj, $objArr, $pyCode, $pyComplex, $pyExc, $pyFloat, $pyFrame, $pyFuncTbl, $pyInteger, $pyLong, $pyObj, $pyObjArr, $pyProxy, $pyRunnable, $pyStr, $str, $strArr, $throwable |
Fields inherited from interface org.python.parser.PythonGrammarTreeConstants |
JJTADD_2OP, JJTAND_2OP, JJTAND_BOOLEAN, JJTARGLIST, JJTASSERT_STMT, JJTAUG_AND, JJTAUG_DIVIDE, JJTAUG_LSHIFT, JJTAUG_MINUS, JJTAUG_MODULO, JJTAUG_MULTIPLY, JJTAUG_OR, JJTAUG_PLUS, JJTAUG_POWER, JJTAUG_RSHIFT, JJTAUG_XOR, JJTBIDIREDGE, JJTBREAK_STMT, JJTCALL_OP, JJTCLASSDEF, JJTCOLON, JJTCOMMA, JJTCOMPARISION, JJTCOMPLEX, JJTCONTINUE_STMT, JJTDEFAULTARG, JJTDEL_STMT, JJTDICTIONARY, JJTDIV_2OP, JJTDOT_OP, JJTDOTTED_AS_NAME, JJTDOTTED_NAME, JJTELLIPSES, JJTEQUAL_CMP, JJTEVAL_INPUT, JJTEXCEPT_CLAUSE, JJTEXEC_STMT, JJTEXPR_STMT, JJTEXTRAARGLIST, JJTEXTRAARGVALUELIST, JJTEXTRAKEYWORDLIST, JJTEXTRAKEYWORDVALUELIST, JJTFILE_INPUT, JJTFLOAT, JJTFOR_STMT, JJTFPLIST, JJTFUNCDEF, JJTGLOBAL_STMT, JJTGREATER_CMP, JJTGREATER_EQUAL_CMP, JJTIF_STMT, JJTIMPORT, JJTIMPORT_AS_NAME, JJTIMPORTFROM, JJTIN_CMP, JJTINDEX_OP, JJTINT, JJTINVERT_1OP, JJTIS_CMP, JJTIS_NOT_CMP, JJTKEYWORD, JJTLAMBDEF, JJTLEFTDIREDGE, JJTLESS_CMP, JJTLESS_EQUAL_CMP, JJTLIKE, JJTLIST, JJTLIST_ITER, JJTLSHIFT_2OP, JJTMOD_2OP, JJTMUL_2OP, JJTNAME, JJTNEG_1OP, jjtNodeName, JJTNOT_1OP, JJTNOT_IN_CMP, JJTNOTEQUAL_CMP, JJTOR_2OP, JJTOR_BOOLEAN, JJTPASS_STMT, JJTPOS_1OP, JJTPOW_2OP, JJTPRINT_EXT, JJTPRINT_STMT, JJTQUESTIONM, JJTRAISE_STMT, JJTRCONTAINED, JJTRCONTAINS, JJTRETURN_STMT, JJTREXACT, JJTRIGHTDIREDGE, JJTROVERLAPS, JJTRSHIFT_2OP, JJTSINGLE_INPUT, JJTSLICE, JJTSTR_1OP, JJTSTRING, JJTSTRJOIN, JJTSUB_2OP, JJTSUITE, JJTTRY_STMT, JJTTUPLE, JJTVARARGSLIST, JJTVOID, JJTWHILE_STMT, JJTXOR_2OP |
Method Summary |
Object |
add_2op(SimpleNode node)
|
Object |
and_2op(SimpleNode node)
|
Object |
and_boolean(SimpleNode node)
|
Object |
assert_stmt(SimpleNode node)
|
Object |
aug_and(SimpleNode node)
|
Object |
aug_binaryop(SimpleNode node,
String name)
|
Object |
aug_divide(SimpleNode node)
|
Object |
aug_lshift(SimpleNode node)
|
Object |
aug_minus(SimpleNode node)
|
Object |
aug_modulo(SimpleNode node)
|
Object |
aug_multiply(SimpleNode node)
|
Object |
aug_or(SimpleNode node)
|
Object |
aug_plus(SimpleNode node)
|
Object |
aug_power(SimpleNode node)
|
Object |
aug_rshift(SimpleNode node)
|
Object |
aug_xor(SimpleNode node)
|
void |
beginLoop()
|
Object |
bidiredge(SimpleNode node)
|
Object |
binaryop(SimpleNode node,
String name)
|
Object |
break_stmt(SimpleNode node)
|
Object |
Call_Op(SimpleNode node)
|
Object |
classdef(SimpleNode node)
|
Object |
comparision(SimpleNode node)
|
Object |
Complex(SimpleNode node)
|
Object |
continue_stmt(SimpleNode node)
|
Object |
del_stmt(SimpleNode node)
|
Object |
dictionary(SimpleNode node)
|
Object |
div_2op(SimpleNode node)
|
Object |
Dot_Op(SimpleNode node)
|
Object |
doTest(org.python.compiler.Label end_of_if,
SimpleNode node,
int index)
|
Object |
dotted_name(SimpleNode node)
|
Object |
Ellipses(SimpleNode node)
|
Object |
equal_cmp(SimpleNode node)
|
void |
error(String msg,
boolean err,
SimpleNode node)
|
Object |
eval_input(SimpleNode node)
|
Object |
except_clause(SimpleNode node)
|
void |
exceptionTest(int exc,
org.python.compiler.Label end_of_exceptions,
SimpleNode node,
int index)
|
Object |
exec_stmt(SimpleNode node)
|
Object |
expr_stmt(SimpleNode node)
|
Object |
file_input(SimpleNode suite)
|
void |
finishLoop()
|
Object |
Float(SimpleNode node)
|
Object |
for_stmt(SimpleNode node)
|
Object |
fplist(SimpleNode node)
|
Object |
funcdef(SimpleNode node)
|
void |
getDocString(SimpleNode suite)
|
String |
getFilename()
|
Future |
getFutures()
|
void |
getNone()
|
Object |
global_stmt(SimpleNode node)
|
Object |
greater_cmp(SimpleNode node)
|
Object |
greater_equal_cmp(SimpleNode node)
|
Object |
if_stmt(SimpleNode node)
|
Object |
Import(SimpleNode node)
|
Object |
ImportFrom(SimpleNode node)
|
Object |
in_cmp(SimpleNode node)
|
Object |
Index_Op(SimpleNode node)
|
Object |
Int(SimpleNode node)
|
Object |
invert_1op(SimpleNode node)
|
Object |
Invoke(SimpleNode inst,
SimpleNode nname,
SimpleNode[] values)
|
Object |
is_cmp(SimpleNode node)
|
Object |
is_not_cmp(SimpleNode node)
|
Object |
lambdef(SimpleNode node)
|
Object |
leftdiredge(SimpleNode node)
|
Object |
less_cmp(SimpleNode node)
|
Object |
less_equal_cmp(SimpleNode node)
|
Object |
like(SimpleNode node)
|
Object |
list_comprehension(SimpleNode node)
|
Object |
list_iter(SimpleNode node)
|
Object |
list(SimpleNode node)
|
void |
loadFrame()
|
Object |
lshift_2op(SimpleNode node)
|
int |
make_binop(String name)
|
void |
makeArray(SimpleNode[] nodes)
|
boolean |
makeClosure(Vector freenames)
|
static void |
makeStrings(Code c,
String[] names,
int n)
|
Object |
mod_2op(SimpleNode node)
|
Object |
mul_2op(SimpleNode node)
|
Object |
Name(SimpleNode node)
|
Object |
neg_1op(SimpleNode node)
|
Object |
not_1op(SimpleNode node)
|
Object |
not_in_cmp(SimpleNode node)
|
Object |
notequal_cmp(SimpleNode node)
|
Object |
or_2op(SimpleNode node)
|
Object |
or_boolean(SimpleNode node)
|
void |
parse(SimpleNode node,
Code code,
boolean fast_locals,
String className,
boolean classBody,
ScopeInfo scope,
CompilerFlags cflags)
|
Object |
pass_stmt(SimpleNode node)
|
Object |
pos_1op(SimpleNode node)
|
Object |
pow_2op(SimpleNode node)
|
Object |
print_ext(SimpleNode node)
|
Object |
print_stmt(SimpleNode node)
|
Object |
questionm(SimpleNode node)
|
Object |
raise_stmt(SimpleNode node)
|
Object |
rcontained(SimpleNode node)
|
Object |
rcontains(SimpleNode node)
|
Object |
return_stmt(SimpleNode node)
|
Object |
return_stmt(SimpleNode node,
boolean inEval)
|
Object |
rexact(SimpleNode node)
|
Object |
rightdiredge(SimpleNode node)
|
Object |
roverlaps(SimpleNode node)
|
Object |
rshift_2op(SimpleNode node)
|
Object |
seqDel(SimpleNode node)
|
Object |
seqSet(SimpleNode node)
|
void |
set(SimpleNode node)
|
void |
set(SimpleNode node,
int tmp)
|
void |
setline(int line)
|
void |
setline(SimpleNode node)
|
Object |
single_input(SimpleNode node)
|
Object |
Slice_Op(SimpleNode seq,
SimpleNode node)
|
Object |
Slice(SimpleNode node)
|
int |
storeTop()
|
Object |
str_1op(SimpleNode node)
|
Object |
String(SimpleNode node)
|
Object |
strjoin(SimpleNode node)
|
Object |
sub_2op(SimpleNode node)
|
Object |
suite(SimpleNode node)
|
Object |
try_stmt(SimpleNode node)
|
Object |
tryFinally(SimpleNode trySuite,
SimpleNode finallySuite)
|
Object |
tuple(SimpleNode node)
|
Object |
unaryop(SimpleNode node,
String name)
|
Object |
while_stmt(SimpleNode node)
|
Object |
xor_2op(SimpleNode node)
|
Exit
public static final Object Exit
NoExit
public static final Object NoExit
GET
public static final int GET
- See Also:
- Constant Field Values
SET
public static final int SET
- See Also:
- Constant Field Values
DEL
public static final int DEL
- See Also:
- Constant Field Values
AUGGET
public static final int AUGGET
- See Also:
- Constant Field Values
AUGSET
public static final int AUGSET
- See Also:
- Constant Field Values
DoFinally
public static final Object DoFinally
module
public Module module
code
public Code code
pool
public ConstantPool pool
mrefs
public CodeCompiler mrefs
fast_locals
public boolean fast_locals
print_results
public boolean print_results
futures
public Future futures
tbl
public Hashtable tbl
my_scope
public ScopeInfo my_scope
names
public Vector names
className
public String className
continueLabels
public Stack continueLabels
breakLabels
public Stack breakLabels
finallyLabels
public Stack finallyLabels
listComprehensionExprs
public Stack listComprehensionExprs
listComprehensionAppends
public Stack listComprehensionAppends
PyNone
public int PyNone
setline
public int setline
EmptyObjects
public int EmptyObjects
printResult
public int printResult
print1
public int print1
print2
public int print2
print3
public int print3
print4
public int print4
print5
public int print5
print6
public int print6
makeException0
public int makeException0
makeException1
public int makeException1
makeException2
public int makeException2
makeException3
public int makeException3
importOne
public int importOne
importOneAs
public int importOneAs
importAll
public int importAll
importFrom
public int importFrom
exec
public int exec
assert1
public int assert1
assert2
public int assert2
nonzero
public int nonzero
safe_getitem
public int safe_getitem
match_exception
public int match_exception
add_traceback
public int add_traceback
set_exception
public int set_exception
less
public Integer less
greater
public Integer greater
equal
public Integer equal
less_equal
public Integer less_equal
greater_equal
public Integer greater_equal
notequal
public Integer notequal
rightdiredge
public Integer rightdiredge
leftdiredge
public Integer leftdiredge
questionm
public Integer questionm
bidiredge
public Integer bidiredge
like
public Integer like
rexact
public Integer rexact
rcontained
public Integer rcontained
rcontains
public Integer rcontains
roverlaps
public Integer roverlaps
in
public Integer in
not_in
public Integer not_in
is
public Integer is
is_not
public Integer is_not
invokea0
public int invokea0
invokea1
public int invokea1
invokea2
public int invokea2
invoke2
public int invoke2
callextra
public int callextra
call1
public int call1
call2
public int call2
calla0
public int calla0
calla1
public int calla1
calla2
public int calla2
calla3
public int calla3
calla4
public int calla4
getslice
public int getslice
setslice
public int setslice
delslice
public int delslice
getitem
public int getitem
delitem
public int delitem
setitem
public int setitem
getattr
public int getattr
delattr
public int delattr
setattr
public int setattr
getitem2
public int getitem2
unpackSequence
public int unpackSequence
PyTuple_init
public int PyTuple_init
PyList_init
public int PyList_init
PyDictionary_init
public int PyDictionary_init
PyList_init2
public int PyList_init2
PyFunction_init1
public int PyFunction_init1
PyFunction_closure_init1
public int PyFunction_closure_init1
Ellipsis
public int Ellipsis
PySlice_init
public int PySlice_init
makeClass
public int makeClass
makeClass_closure
public int makeClass_closure
CodeCompiler
public CodeCompiler(Module module,
boolean print_results)
getFutures
public Future getFutures()
- Specified by:
getFutures
in interface CompilationContext
getFilename
public String getFilename()
- Specified by:
getFilename
in interface CompilationContext
getNone
public void getNone()
throws IOException
- Throws:
IOException
loadFrame
public void loadFrame()
throws Exception
- Throws:
Exception
storeTop
public int storeTop()
throws Exception
- Throws:
Exception
setline
public void setline(int line)
throws Exception
- Throws:
Exception
setline
public void setline(SimpleNode node)
throws Exception
- Throws:
Exception
set
public void set(SimpleNode node)
throws Exception
- Throws:
Exception
set
public void set(SimpleNode node,
int tmp)
throws Exception
- Throws:
Exception
error
public void error(String msg,
boolean err,
SimpleNode node)
throws Exception
- Specified by:
error
in interface CompilationContext
- Throws:
Exception
parse
public void parse(SimpleNode node,
Code code,
boolean fast_locals,
String className,
boolean classBody,
ScopeInfo scope,
CompilerFlags cflags)
throws Exception
- Throws:
Exception
single_input
public Object single_input(SimpleNode node)
throws Exception
- Overrides:
single_input
in class Visitor
- Throws:
Exception
file_input
public Object file_input(SimpleNode suite)
throws Exception
- Overrides:
file_input
in class Visitor
- Throws:
Exception
eval_input
public Object eval_input(SimpleNode node)
throws Exception
- Overrides:
eval_input
in class Visitor
- Throws:
Exception
makeArray
public void makeArray(SimpleNode[] nodes)
throws Exception
- Throws:
Exception
getDocString
public void getDocString(SimpleNode suite)
throws Exception
- Throws:
Exception
makeClosure
public boolean makeClosure(Vector freenames)
throws Exception
- Throws:
Exception
funcdef
public Object funcdef(SimpleNode node)
throws Exception
- Overrides:
funcdef
in class Visitor
- Throws:
Exception
expr_stmt
public Object expr_stmt(SimpleNode node)
throws Exception
- Overrides:
expr_stmt
in class Visitor
- Throws:
Exception
print_ext
public Object print_ext(SimpleNode node)
throws Exception
- Overrides:
print_ext
in class Visitor
- Throws:
Exception
print_stmt
public Object print_stmt(SimpleNode node)
throws Exception
- Overrides:
print_stmt
in class Visitor
- Throws:
Exception
del_stmt
public Object del_stmt(SimpleNode node)
throws Exception
- Overrides:
del_stmt
in class Visitor
- Throws:
Exception
pass_stmt
public Object pass_stmt(SimpleNode node)
throws Exception
- Overrides:
pass_stmt
in class Visitor
- Throws:
Exception
break_stmt
public Object break_stmt(SimpleNode node)
throws Exception
- Overrides:
break_stmt
in class Visitor
- Throws:
Exception
continue_stmt
public Object continue_stmt(SimpleNode node)
throws Exception
- Overrides:
continue_stmt
in class Visitor
- Throws:
Exception
return_stmt
public Object return_stmt(SimpleNode node)
throws Exception
- Overrides:
return_stmt
in class Visitor
- Throws:
Exception
return_stmt
public Object return_stmt(SimpleNode node,
boolean inEval)
throws Exception
- Throws:
Exception
raise_stmt
public Object raise_stmt(SimpleNode node)
throws Exception
- Overrides:
raise_stmt
in class Visitor
- Throws:
Exception
Import
public Object Import(SimpleNode node)
throws Exception
- Overrides:
Import
in class Visitor
- Throws:
Exception
ImportFrom
public Object ImportFrom(SimpleNode node)
throws Exception
- Overrides:
ImportFrom
in class Visitor
- Throws:
Exception
dotted_name
public Object dotted_name(SimpleNode node)
throws Exception
- Overrides:
dotted_name
in class Visitor
- Throws:
Exception
global_stmt
public Object global_stmt(SimpleNode node)
throws Exception
- Overrides:
global_stmt
in class Visitor
- Throws:
Exception
exec_stmt
public Object exec_stmt(SimpleNode node)
throws Exception
- Overrides:
exec_stmt
in class Visitor
- Throws:
Exception
assert_stmt
public Object assert_stmt(SimpleNode node)
throws Exception
- Overrides:
assert_stmt
in class Visitor
- Throws:
Exception
doTest
public Object doTest(org.python.compiler.Label end_of_if,
SimpleNode node,
int index)
throws Exception
- Throws:
Exception
if_stmt
public Object if_stmt(SimpleNode node)
throws Exception
- Overrides:
if_stmt
in class Visitor
- Throws:
Exception
beginLoop
public void beginLoop()
finishLoop
public void finishLoop()
while_stmt
public Object while_stmt(SimpleNode node)
throws Exception
- Overrides:
while_stmt
in class Visitor
- Throws:
Exception
for_stmt
public Object for_stmt(SimpleNode node)
throws Exception
- Overrides:
for_stmt
in class Visitor
- Throws:
Exception
exceptionTest
public void exceptionTest(int exc,
org.python.compiler.Label end_of_exceptions,
SimpleNode node,
int index)
throws Exception
- Throws:
Exception
tryFinally
public Object tryFinally(SimpleNode trySuite,
SimpleNode finallySuite)
throws Exception
- Throws:
Exception
try_stmt
public Object try_stmt(SimpleNode node)
throws Exception
- Overrides:
try_stmt
in class Visitor
- Throws:
Exception
except_clause
public Object except_clause(SimpleNode node)
throws Exception
- Overrides:
except_clause
in class Visitor
- Throws:
Exception
suite
public Object suite(SimpleNode node)
throws Exception
- Overrides:
suite
in class Visitor
- Throws:
Exception
or_boolean
public Object or_boolean(SimpleNode node)
throws Exception
- Overrides:
or_boolean
in class Visitor
- Throws:
Exception
and_boolean
public Object and_boolean(SimpleNode node)
throws Exception
- Overrides:
and_boolean
in class Visitor
- Throws:
Exception
not_1op
public Object not_1op(SimpleNode node)
throws Exception
- Overrides:
not_1op
in class Visitor
- Throws:
Exception
comparision
public Object comparision(SimpleNode node)
throws Exception
- Overrides:
comparision
in class Visitor
- Throws:
Exception
make_binop
public int make_binop(String name)
throws Exception
- Throws:
Exception
less_cmp
public Object less_cmp(SimpleNode node)
throws Exception
- Overrides:
less_cmp
in class Visitor
- Throws:
Exception
greater_cmp
public Object greater_cmp(SimpleNode node)
throws Exception
- Overrides:
greater_cmp
in class Visitor
- Throws:
Exception
equal_cmp
public Object equal_cmp(SimpleNode node)
throws Exception
- Overrides:
equal_cmp
in class Visitor
- Throws:
Exception
less_equal_cmp
public Object less_equal_cmp(SimpleNode node)
throws Exception
- Overrides:
less_equal_cmp
in class Visitor
- Throws:
Exception
greater_equal_cmp
public Object greater_equal_cmp(SimpleNode node)
throws Exception
- Overrides:
greater_equal_cmp
in class Visitor
- Throws:
Exception
notequal_cmp
public Object notequal_cmp(SimpleNode node)
throws Exception
- Overrides:
notequal_cmp
in class Visitor
- Throws:
Exception
rightdiredge
public Object rightdiredge(SimpleNode node)
throws Exception
- Overrides:
rightdiredge
in class Visitor
- Throws:
Exception
leftdiredge
public Object leftdiredge(SimpleNode node)
throws Exception
- Overrides:
leftdiredge
in class Visitor
- Throws:
Exception
questionm
public Object questionm(SimpleNode node)
throws Exception
- Overrides:
questionm
in class Visitor
- Throws:
Exception
bidiredge
public Object bidiredge(SimpleNode node)
throws Exception
- Overrides:
bidiredge
in class Visitor
- Throws:
Exception
like
public Object like(SimpleNode node)
throws Exception
- Overrides:
like
in class Visitor
- Throws:
Exception
rexact
public Object rexact(SimpleNode node)
throws Exception
- Overrides:
rexact
in class Visitor
- Throws:
Exception
rcontained
public Object rcontained(SimpleNode node)
throws Exception
- Overrides:
rcontained
in class Visitor
- Throws:
Exception
rcontains
public Object rcontains(SimpleNode node)
throws Exception
- Overrides:
rcontains
in class Visitor
- Throws:
Exception
roverlaps
public Object roverlaps(SimpleNode node)
throws Exception
- Overrides:
roverlaps
in class Visitor
- Throws:
Exception
in_cmp
public Object in_cmp(SimpleNode node)
throws Exception
- Overrides:
in_cmp
in class Visitor
- Throws:
Exception
not_in_cmp
public Object not_in_cmp(SimpleNode node)
throws Exception
- Overrides:
not_in_cmp
in class Visitor
- Throws:
Exception
is_cmp
public Object is_cmp(SimpleNode node)
throws Exception
- Overrides:
is_cmp
in class Visitor
- Throws:
Exception
is_not_cmp
public Object is_not_cmp(SimpleNode node)
throws Exception
- Overrides:
is_not_cmp
in class Visitor
- Throws:
Exception
binaryop
public Object binaryop(SimpleNode node,
String name)
throws Exception
- Throws:
Exception
unaryop
public Object unaryop(SimpleNode node,
String name)
throws Exception
- Throws:
Exception
or_2op
public Object or_2op(SimpleNode node)
throws Exception
- Overrides:
or_2op
in class Visitor
- Throws:
Exception
xor_2op
public Object xor_2op(SimpleNode node)
throws Exception
- Overrides:
xor_2op
in class Visitor
- Throws:
Exception
and_2op
public Object and_2op(SimpleNode node)
throws Exception
- Overrides:
and_2op
in class Visitor
- Throws:
Exception
lshift_2op
public Object lshift_2op(SimpleNode node)
throws Exception
- Overrides:
lshift_2op
in class Visitor
- Throws:
Exception
rshift_2op
public Object rshift_2op(SimpleNode node)
throws Exception
- Overrides:
rshift_2op
in class Visitor
- Throws:
Exception
add_2op
public Object add_2op(SimpleNode node)
throws Exception
- Overrides:
add_2op
in class Visitor
- Throws:
Exception
strjoin
public Object strjoin(SimpleNode node)
throws Exception
- Overrides:
strjoin
in class Visitor
- Throws:
Exception
sub_2op
public Object sub_2op(SimpleNode node)
throws Exception
- Overrides:
sub_2op
in class Visitor
- Throws:
Exception
mul_2op
public Object mul_2op(SimpleNode node)
throws Exception
- Overrides:
mul_2op
in class Visitor
- Throws:
Exception
div_2op
public Object div_2op(SimpleNode node)
throws Exception
- Overrides:
div_2op
in class Visitor
- Throws:
Exception
mod_2op
public Object mod_2op(SimpleNode node)
throws Exception
- Overrides:
mod_2op
in class Visitor
- Throws:
Exception
pos_1op
public Object pos_1op(SimpleNode node)
throws Exception
- Overrides:
pos_1op
in class Visitor
- Throws:
Exception
neg_1op
public Object neg_1op(SimpleNode node)
throws Exception
- Overrides:
neg_1op
in class Visitor
- Throws:
Exception
invert_1op
public Object invert_1op(SimpleNode node)
throws Exception
- Overrides:
invert_1op
in class Visitor
- Throws:
Exception
pow_2op
public Object pow_2op(SimpleNode node)
throws Exception
- Overrides:
pow_2op
in class Visitor
- Throws:
Exception
aug_binaryop
public Object aug_binaryop(SimpleNode node,
String name)
throws Exception
- Throws:
Exception
aug_plus
public Object aug_plus(SimpleNode node)
throws Exception
- Overrides:
aug_plus
in class Visitor
- Throws:
Exception
aug_minus
public Object aug_minus(SimpleNode node)
throws Exception
- Overrides:
aug_minus
in class Visitor
- Throws:
Exception
aug_multiply
public Object aug_multiply(SimpleNode node)
throws Exception
- Overrides:
aug_multiply
in class Visitor
- Throws:
Exception
aug_divide
public Object aug_divide(SimpleNode node)
throws Exception
- Overrides:
aug_divide
in class Visitor
- Throws:
Exception
aug_modulo
public Object aug_modulo(SimpleNode node)
throws Exception
- Overrides:
aug_modulo
in class Visitor
- Throws:
Exception
aug_and
public Object aug_and(SimpleNode node)
throws Exception
- Overrides:
aug_and
in class Visitor
- Throws:
Exception
aug_or
public Object aug_or(SimpleNode node)
throws Exception
- Overrides:
aug_or
in class Visitor
- Throws:
Exception
aug_xor
public Object aug_xor(SimpleNode node)
throws Exception
- Overrides:
aug_xor
in class Visitor
- Throws:
Exception
aug_lshift
public Object aug_lshift(SimpleNode node)
throws Exception
- Overrides:
aug_lshift
in class Visitor
- Throws:
Exception
aug_rshift
public Object aug_rshift(SimpleNode node)
throws Exception
- Overrides:
aug_rshift
in class Visitor
- Throws:
Exception
aug_power
public Object aug_power(SimpleNode node)
throws Exception
- Overrides:
aug_power
in class Visitor
- Throws:
Exception
makeStrings
public static void makeStrings(Code c,
String[] names,
int n)
throws IOException
- Throws:
IOException
Invoke
public Object Invoke(SimpleNode inst,
SimpleNode nname,
SimpleNode[] values)
throws Exception
- Throws:
Exception
Call_Op
public Object Call_Op(SimpleNode node)
throws Exception
- Overrides:
Call_Op
in class Visitor
- Throws:
Exception
Slice_Op
public Object Slice_Op(SimpleNode seq,
SimpleNode node)
throws Exception
- Throws:
Exception
Index_Op
public Object Index_Op(SimpleNode node)
throws Exception
- Overrides:
Index_Op
in class Visitor
- Throws:
Exception
Dot_Op
public Object Dot_Op(SimpleNode node)
throws Exception
- Overrides:
Dot_Op
in class Visitor
- Throws:
Exception
seqSet
public Object seqSet(SimpleNode node)
throws Exception
- Throws:
Exception
seqDel
public Object seqDel(SimpleNode node)
throws Exception
- Throws:
Exception
tuple
public Object tuple(SimpleNode node)
throws Exception
- Overrides:
tuple
in class Visitor
- Throws:
Exception
fplist
public Object fplist(SimpleNode node)
throws Exception
- Overrides:
fplist
in class Visitor
- Throws:
Exception
list
public Object list(SimpleNode node)
throws Exception
- Overrides:
list
in class Visitor
- Throws:
Exception
list_comprehension
public Object list_comprehension(SimpleNode node)
throws Exception
- Throws:
Exception
list_iter
public Object list_iter(SimpleNode node)
throws Exception
- Overrides:
list_iter
in class Visitor
- Throws:
Exception
dictionary
public Object dictionary(SimpleNode node)
throws Exception
- Overrides:
dictionary
in class Visitor
- Throws:
Exception
str_1op
public Object str_1op(SimpleNode node)
throws Exception
- Overrides:
str_1op
in class Visitor
- Throws:
Exception
lambdef
public Object lambdef(SimpleNode node)
throws Exception
- Overrides:
lambdef
in class Visitor
- Throws:
Exception
Ellipses
public Object Ellipses(SimpleNode node)
throws Exception
- Overrides:
Ellipses
in class Visitor
- Throws:
Exception
Slice
public Object Slice(SimpleNode node)
throws Exception
- Overrides:
Slice
in class Visitor
- Throws:
Exception
classdef
public Object classdef(SimpleNode node)
throws Exception
- Overrides:
classdef
in class Visitor
- Throws:
Exception
Int
public Object Int(SimpleNode node)
throws Exception
- Overrides:
Int
in class Visitor
- Throws:
Exception
Float
public Object Float(SimpleNode node)
throws Exception
- Overrides:
Float
in class Visitor
- Throws:
Exception
Complex
public Object Complex(SimpleNode node)
throws Exception
- Overrides:
Complex
in class Visitor
- Throws:
Exception
Name
public Object Name(SimpleNode node)
throws Exception
- Overrides:
Name
in class Visitor
- Throws:
Exception
String
public Object String(SimpleNode node)
throws Exception
- Overrides:
String
in class Visitor
- Throws:
Exception