示例#1
1
  public ASTNode rewriteTo() {
    // Declared in VariableDeclaration.jrag at line 139
    if (getNumVariableDecl() == 1) {
      duringVariableDeclaration++;
      ASTNode result = rewriteRule0();
      duringVariableDeclaration--;
      return result;
    }

    // Declared in VariableDeclaration.jrag at line 150
    if (getParent().getParent() instanceof Block
        && ((Block) getParent().getParent()).getStmtListNoTransform() == getParent()
        && getNumVariableDecl() > 1) {
      duringVariableDeclaration++;
      List newList = rewriteBlock_getStmt();
      List list = (List) getParent();
      int i = list.getIndexOfChild(this);
      for (int j = 1; j < newList.getNumChild(); j++)
        list.insertChild(newList.getChildNoTransform(j), ++i);
      duringVariableDeclaration--;
      return newList.getChildNoTransform(0);
    }
    // Declared in VariableDeclaration.jrag at line 154
    if (getParent().getParent() instanceof ForStmt
        && ((ForStmt) getParent().getParent()).getInitStmtListNoTransform() == getParent()
        && getNumVariableDecl() > 1) {
      duringVariableDeclaration++;
      List newList = rewriteForStmt_getInitStmt();
      List list = (List) getParent();
      int i = list.getIndexOfChild(this);
      for (int j = 1; j < newList.getNumChild(); j++)
        list.insertChild(newList.getChildNoTransform(j), ++i);
      duringVariableDeclaration--;
      return newList.getChildNoTransform(0);
    }
    return super.rewriteTo();
  }
 @SuppressWarnings({"unchecked", "cast"})
 public List<Access> getTypeArgumentList() {
   List<Access> list = (List<Access>) getChild(1);
   list.getNumChild();
   return list;
 }
 @SuppressWarnings({"unchecked", "cast"})
 public List<Expr> getArgList() {
   List<Expr> list = (List<Expr>) getChild(0);
   list.getNumChild();
   return list;
 }
示例#4
1
 @SuppressWarnings({"unchecked", "cast"})
 public List<BodyDecl> getBodyDeclList() {
   List<BodyDecl> list = (List<BodyDecl>) getChild(2);
   list.getNumChild();
   return list;
 }
示例#5
1
 /**
  * Getter for list ExceptionList
  *
  * @apilevel high-level
  * @ast method
  * @declaredat java.ast:63
  */
 @SuppressWarnings({"unchecked", "cast"})
 public List<Access> getExceptionList() {
   List<Access> list = (List<Access>) getChild(3);
   list.getNumChild();
   return list;
 }
示例#6
1
 /**
  * Getter for list ParameterList
  *
  * @apilevel high-level
  * @ast method
  * @declaredat java.ast:63
  */
 @SuppressWarnings({"unchecked", "cast"})
 public List<ParameterDeclaration> getParameterList() {
   List<ParameterDeclaration> list = (List<ParameterDeclaration>) getChild(2);
   list.getNumChild();
   return list;
 }
 /**
  * Getter for list SuperInterfaceIdList
  *
  * @apilevel high-level
  * @ast method
  * @declaredat java.ast:63
  */
 @SuppressWarnings({"unchecked", "cast"})
 public List<Access> getSuperInterfaceIdList() {
   List<Access> list = (List<Access>) getChild(1);
   list.getNumChild();
   return list;
 }