public ASTEnhancedForStatementNoShortIfList deepClone() {
   ASTEnhancedForStatementNoShortIfList result = new ASTEnhancedForStatementNoShortIfList();
   if (list.size() != 0) {
     Iterator<ASTEnhancedForStatementNoShortIf> iter = iterator();
     while (iter.hasNext()) {
       result.add((ASTEnhancedForStatementNoShortIf) iter.next().deepClone());
     }
   }
   for (de.monticore.ast.Comment x : get_PreComments()) {
     result.get_PreComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   for (de.monticore.ast.Comment x : get_PostComments()) {
     result.get_PostComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   return result;
 }
Exemplo n.º 2
0
 public ASTUnannClassTypeList deepClone() {
   ASTUnannClassTypeList result = new ASTUnannClassTypeList();
   if (list.size() != 0) {
     Iterator<ASTUnannClassType> iter = iterator();
     while (iter.hasNext()) {
       result.add((ASTUnannClassType) iter.next().deepClone());
     }
   }
   for (de.monticore.ast.Comment x : get_PreComments()) {
     result.get_PreComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   for (de.monticore.ast.Comment x : get_PostComments()) {
     result.get_PostComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   return result;
 }
 public ASTNoptrabstractpackdeclaratorList deepClone() {
   ASTNoptrabstractpackdeclaratorList result = new ASTNoptrabstractpackdeclaratorList();
   if (list.size() != 0) {
     Iterator<ASTNoptrabstractpackdeclarator> iter = iterator();
     while (iter.hasNext()) {
       result.add((ASTNoptrabstractpackdeclarator) iter.next().deepClone());
     }
   }
   for (de.monticore.ast.Comment x : get_PreComments()) {
     result.get_PreComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   for (de.monticore.ast.Comment x : get_PostComments()) {
     result.get_PostComments().add(new de.monticore.ast.Comment(x.getText()));
   }
   return result;
 }
Exemplo n.º 4
0
 public SourcePosition getEnd() {
   if (list.size() != 0) {
     return get(list.size() - 1).get_SourcePositionEnd();
   }
   return null;
 }
Exemplo n.º 5
0
 public SourcePosition getStart() {
   if (list.size() != 0) {
     return get(0).get_SourcePositionStart();
   }
   return null;
 }
Exemplo n.º 6
0
 public ASTUnannClassType[] toArray() {
   ASTUnannClassType[] result = new ASTUnannClassType[list.size()];
   list.toArray(result);
   return result;
 }
Exemplo n.º 7
0
 public int size() {
   return list.size();
 }
 public ASTPostfixexpression[] toArray() {
   ASTPostfixexpression[] result = new ASTPostfixexpression[list.size()];
   list.toArray(result);
   return result;
 }
Exemplo n.º 9
0
 public ASTTypenameP[] toArray() {
   ASTTypenameP[] result = new ASTTypenameP[list.size()];
   list.toArray(result);
   return result;
 }
 public ASTEnhancedForStatementNoShortIf[] toArray() {
   ASTEnhancedForStatementNoShortIf[] result = new ASTEnhancedForStatementNoShortIf[list.size()];
   list.toArray(result);
   return result;
 }
Exemplo n.º 11
0
 public ASTNumericType[] toArray() {
   ASTNumericType[] result = new ASTNumericType[list.size()];
   list.toArray(result);
   return result;
 }
Exemplo n.º 12
0
 public ASTPtrdeclarator[] toArray() {
   ASTPtrdeclarator[] result = new ASTPtrdeclarator[list.size()];
   list.toArray(result);
   return result;
 }
 public ASTNoptrabstractpackdeclarator[] toArray() {
   ASTNoptrabstractpackdeclarator[] result = new ASTNoptrabstractpackdeclarator[list.size()];
   list.toArray(result);
   return result;
 }
 public ASTRelationalexpression[] toArray() {
   ASTRelationalexpression[] result = new ASTRelationalexpression[list.size()];
   list.toArray(result);
   return result;
 }
Exemplo n.º 15
0
 public ASTTypeArguments[] toArray() {
   ASTTypeArguments[] result = new ASTTypeArguments[list.size()];
   list.toArray(result);
   return result;
 }