use of de.be4.classicalb.core.parser.util.NodeCloner.cloneNode in project probparsers by bendisposto.
the class ASTBuilder method createEqualPredicate.
public static AEqualPredicate createEqualPredicate(TIdentifierLiteral old, final String value) {
TIdentifierLiteral e = NodeCloner.cloneNode(old);
AIdentifierExpression aIdentifier = createAIdentifierExpression(e);
final AEqualPredicate equal = new AEqualPredicate(aIdentifier, new AStringExpression(new TStringLiteral(value)));
equal.setStartPos(e.getStartPos());
equal.setEndPos(e.getEndPos());
return equal;
}
Aggregations