/* Production 48, chapter 3.4, corba 2.3.1 */ public void constr_type_spec() { /*@bgen(jjtree) constr_type_spec */ ASTconstr_type_spec jjtn000 = new ASTconstr_type_spec(this, IDLParserTreeConstants.JJTCONSTR_TYPE_SPEC); bool jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) { case 61: struct_type(); break; case 62: union_type(); break; case 66: enum_type(); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); break; } } catch (Exception jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } {if (true) throw ;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
/** * @see parser.IDLParserVisitor#visit(ASTconstr_type_spec, Object) * @param data a buildinfo instance * @return the TypeContainer for the type represented by this node */ public Object visit(ASTconstr_type_spec node, Object data) { Node child = node.jjtGetChild(0); // <struct_type>, <union_type>, <enum_type> return child.jjtAccept(this, data); }