org.extendj.ast.AssignAdditiveExpr Maven / Gradle / Ivy
/* This file was generated with JastAdd2 (http://jastadd.org) version 2.3.0 */
package org.extendj.ast;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.ArrayList;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import java.util.zip.*;
import java.io.*;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import org.jastadd.util.PrettyPrintable;
import org.jastadd.util.PrettyPrinter;
import java.io.FileNotFoundException;
import java.io.InputStream;
import org.jastadd.util.*;
import java.io.File;
import java.io.IOException;
import java.util.Set;
import beaver.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListMap;
/**
* @ast node
* @declaredat /home/jesper/git/extendj/java4/grammar/Java.ast:205
* @astdecl AssignAdditiveExpr : AssignExpr;
* @production AssignAdditiveExpr : {@link AssignExpr};
*/
public abstract class AssignAdditiveExpr extends AssignExpr implements Cloneable {
/**
* @declaredat ASTNode:1
*/
public AssignAdditiveExpr() {
super();
}
/**
* Initializes the child array to the correct size.
* Initializes List and Opt nta children.
* @apilevel internal
* @ast method
* @declaredat ASTNode:10
*/
public void init$Children() {
children = new ASTNode[2];
}
/**
* @declaredat ASTNode:13
*/
@ASTNodeAnnotation.Constructor(
name = {"Dest", "Source"},
type = {"Expr", "Expr"},
kind = {"Child", "Child"}
)
public AssignAdditiveExpr(Expr p0, Expr p1) {
setChild(p0, 0);
setChild(p1, 1);
}
/** @apilevel low-level
* @declaredat ASTNode:23
*/
protected int numChildren() {
return 2;
}
/**
* @apilevel internal
* @declaredat ASTNode:29
*/
public boolean mayHaveRewrite() {
return false;
}
/** @apilevel internal
* @declaredat ASTNode:33
*/
public void flushAttrCache() {
super.flushAttrCache();
}
/** @apilevel internal
* @declaredat ASTNode:37
*/
public void flushCollectionCache() {
super.flushCollectionCache();
}
/** @apilevel internal
* @declaredat ASTNode:41
*/
public AssignAdditiveExpr clone() throws CloneNotSupportedException {
AssignAdditiveExpr node = (AssignAdditiveExpr) super.clone();
return node;
}
/**
* Create a deep copy of the AST subtree at this node.
* The copy is dangling, i.e. has no parent.
* @return dangling copy of the subtree at this node
* @apilevel low-level
* @deprecated Please use treeCopy or treeCopyNoTransform instead
* @declaredat ASTNode:52
*/
@Deprecated
public abstract AssignAdditiveExpr fullCopy();
/**
* Create a deep copy of the AST subtree at this node.
* The copy is dangling, i.e. has no parent.
* @return dangling copy of the subtree at this node
* @apilevel low-level
* @declaredat ASTNode:60
*/
public abstract AssignAdditiveExpr treeCopyNoTransform();
/**
* Create a deep copy of the AST subtree at this node.
* The subtree of this node is traversed to trigger rewrites before copy.
* The copy is dangling, i.e. has no parent.
* @return dangling copy of the subtree at this node
* @apilevel low-level
* @declaredat ASTNode:68
*/
public abstract AssignAdditiveExpr treeCopy();
/**
* Replaces the Dest child.
* @param node The new node to replace the Dest child.
* @apilevel high-level
*/
public void setDest(Expr node) {
setChild(node, 0);
}
/**
* Retrieves the Dest child.
* @return The current node used as the Dest child.
* @apilevel high-level
*/
@ASTNodeAnnotation.Child(name="Dest")
public Expr getDest() {
return (Expr) getChild(0);
}
/**
* Retrieves the Dest child.
* This method does not invoke AST transformations.
* @return The current node used as the Dest child.
* @apilevel low-level
*/
public Expr getDestNoTransform() {
return (Expr) getChildNoTransform(0);
}
/**
* Replaces the Source child.
* @param node The new node to replace the Source child.
* @apilevel high-level
*/
public void setSource(Expr node) {
setChild(node, 1);
}
/**
* Retrieves the Source child.
* @return The current node used as the Source child.
* @apilevel high-level
*/
@ASTNodeAnnotation.Child(name="Source")
public Expr getSource() {
return (Expr) getChild(1);
}
/**
* Retrieves the Source child.
* This method does not invoke AST transformations.
* @return The current node used as the Source child.
* @apilevel low-level
*/
public Expr getSourceNoTransform() {
return (Expr) getChildNoTransform(1);
}
/** @apilevel internal */
public ASTNode rewriteTo() {
return super.rewriteTo();
}
/** @apilevel internal */
public boolean canRewrite() {
return false;
}
}