org.python.compiler
Class ArgListCompiler

java.lang.Object
  extended byorg.python.parser.Visitor
      extended byorg.python.compiler.ArgListCompiler
All Implemented Interfaces:
PythonGrammarTreeConstants

public class ArgListCompiler
extends Visitor
implements PythonGrammarTreeConstants


Field Summary
 boolean arglist
           
 Vector defaults
           
 SimpleNode init_code
           
 boolean keywordlist
           
 Vector names
           
 
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
 
Constructor Summary
ArgListCompiler()
           
 
Method Summary
 Object defaultarg(SimpleNode node)
           
 Object ExtraArgList(SimpleNode node)
           
 Object ExtraKeywordList(SimpleNode node)
           
 Object fplist(SimpleNode node)
           
 SimpleNode[] getDefaults()
           
 Object Name(SimpleNode node)
           
 void reset()
           
 Object varargslist(SimpleNode node)
           
 
Methods inherited from class org.python.parser.Visitor
add_2op, and_2op, and_boolean, arglist, assert_stmt, aug_and, aug_divide, aug_lshift, aug_minus, aug_modulo, aug_multiply, aug_or, aug_plus, aug_power, aug_rshift, aug_xor, augassign, bidiredge, break_stmt, Call_Op, classdef, Colon, Comma, comparision, Complex, continue_stmt, del_stmt, dictionary, div_2op, Dot_Op, dotted_name, Ellipses, equal_cmp, eval_input, except_clause, exec_stmt, expr_stmt, file_input, Float, for_stmt, funcdef, global_stmt, greater_cmp, greater_equal_cmp, if_stmt, Import, ImportFrom, in_cmp, Index_Op, Int, invert_1op, is_cmp, is_not_cmp, Keyword, lambdef, leftdiredge, less_cmp, less_equal_cmp, like, list_iter, list, lshift_2op, mod_2op, mul_2op, neg_1op, not_1op, not_in_cmp, notequal_cmp, or_2op, or_boolean, pass_stmt, pos_1op, pow_2op, print_ext, print_stmt, questionm, raise_stmt, rcontained, rcontains, return_stmt, rexact, rightdiredge, roverlaps, rshift_2op, single_input, Slice, str_1op, String, strjoin, sub_2op, suite, try_stmt, tuple, while_stmt, xor_2op
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arglist

public boolean arglist

keywordlist

public boolean keywordlist

defaults

public Vector defaults

names

public Vector names

init_code

public SimpleNode init_code
Constructor Detail

ArgListCompiler

public ArgListCompiler()
Method Detail

reset

public void reset()

getDefaults

public SimpleNode[] getDefaults()

varargslist

public Object varargslist(SimpleNode node)
                   throws Exception
Overrides:
varargslist in class Visitor
Throws:
Exception

ExtraArgList

public Object ExtraArgList(SimpleNode node)
                    throws Exception
Overrides:
ExtraArgList in class Visitor
Throws:
Exception

ExtraKeywordList

public Object ExtraKeywordList(SimpleNode node)
                        throws Exception
Overrides:
ExtraKeywordList in class Visitor
Throws:
Exception

defaultarg

public Object defaultarg(SimpleNode node)
                  throws Exception
Overrides:
defaultarg in class Visitor
Throws:
Exception

fplist

public Object fplist(SimpleNode node)
              throws Exception
Overrides:
fplist in class Visitor
Throws:
Exception

Name

public Object Name(SimpleNode node)
            throws ParseException,
                   IOException
Overrides:
Name in class Visitor
Throws:
ParseException
IOException