Esempio n. 1
0
 public IList getInheritedScopeNames()
 {
     if (jjtGetNumChildren() > 0)
     {
         // an inheritance spec available
         ASTinterface_inheritance_spec inheritanceSpec =
             (ASTinterface_inheritance_spec)jjtGetChild(0);
         return(inheritanceSpec.getInheritedScopeNames());
     }
     else
     {
         return(new ArrayList());
     }
 }
Esempio n. 2
0
/* Production 10: chapter 3.4 CORBA 2.3.1 */
  public void interface_inheritance_spec() {
 /*@bgen(jjtree) interface_inheritance_spec */
  ASTinterface_inheritance_spec jjtn000 = new ASTinterface_inheritance_spec(this, IDLParserTreeConstants.JJTINTERFACE_INHERITANCE_SPEC);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(19);
      interface_name();
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
        case 20:
          ;
          break;
        default:
          jj_la1[13] = jj_gen;
          goto label_4;
          break;
        }
        jj_consume_token(20);
        interface_name();
      }
      label_4: ;
      
    } 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(ASTinterface_inheritance_spec, Object)
  * @param data the buildinfo of the container for this interface (e.g. a module)
  * @return an Array of the types the interface inherits from
  */
 public Object visit(ASTinterface_inheritance_spec node, Object data) {
     CheckParameterForBuildInfo(data, node);
     Type[] result = ParseInheritanceRelation(node, (BuildInfo)data);
     return result;
 }