コード例 #1
1
ファイル: VarDeclStmt.java プロジェクト: Bludge0n/AREsoft
  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();
  }
コード例 #2
1
 @SuppressWarnings({"unchecked", "cast"})
 public List<Access> getTypeArgumentList() {
   List<Access> list = (List<Access>) getChild(1);
   list.getNumChild();
   return list;
 }
コード例 #3
1
 @SuppressWarnings({"unchecked", "cast"})
 public List<Expr> getArgList() {
   List<Expr> list = (List<Expr>) getChild(0);
   list.getNumChild();
   return list;
 }
コード例 #4
1
ファイル: IntegralType.java プロジェクト: bugvm/bugvm
 @SuppressWarnings({"unchecked", "cast"})
 public List<BodyDecl> getBodyDeclList() {
   List<BodyDecl> list = (List<BodyDecl>) getChild(2);
   list.getNumChild();
   return list;
 }
コード例 #5
1
ファイル: RawMethodDecl.java プロジェクト: JansenLi/soot
 /**
  * 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
ファイル: RawMethodDecl.java プロジェクト: JansenLi/soot
 /**
  * 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;
 }
コード例 #7
1
 /**
  * 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;
 }