for (InclusiveOrExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof ExclusiveOrExpression) {
ExclusiveOrExpression exp = (ExclusiveOrExpression) obj;
for (ExclusiveOrExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof AndExpression) {
AndExpression exp = (AndExpression) obj;
for (AndExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof EqualityExpression) {
EqualityExpression exp = (EqualityExpression) obj;
for (EqualityExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof RelationExpression) {
RelationExpression exp = (RelationExpression) obj;
for (EqualityExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof ShiftExpression) {
ShiftExpression exp = (ShiftExpression) obj;
for (ShiftExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof AdditiveExpression) {
AdditiveExpression exp = (AdditiveExpression) obj;
for (AdditiveExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof MultiplicativeExpression) {
MultiplicativeExpression exp = (MultiplicativeExpression) obj;
for (MultiplicativeExpressionChild child : exp.getChildren())
newObj = getLeaf(child);
}
if (obj instanceof UnaryExpression) {
UnaryExpression exp = (UnaryExpression) obj;
newObj = getLeaf(exp.getChild());
}
if (obj instanceof SuffixUnaryModificationExpression) {
SuffixUnaryModificationExpression exp = (SuffixUnaryModificationExpression) obj;
newObj = getLeaf(exp.getChild());
}
if (obj instanceof StringReference)
return obj;