public class AstComparer extends Object
| Constructor and Description |
|---|
AstComparer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compareAndThrow(AstNode<?> rootA,
AstNode<?> rootB,
boolean compareAttributes,
boolean compareLocation)
Compare two AST subtrees for equality.
|
static boolean |
compareNoThrow(AstNode<?> rootA,
AstNode<?> rootB,
boolean compareAttributes,
boolean compareLocation) |
static DeepComparer |
makeComparer(boolean compareAttributes,
boolean compareLocation) |
public static void compareAndThrow(AstNode<?> rootA, AstNode<?> rootB, boolean compareAttributes, boolean compareLocation) throws ComparisonException
equals
method.rootA - First subtree.rootB - Second subtree.compareAttributes - Whether to include the node attributes in the comparison.ComparisonExceptionpublic static boolean compareNoThrow(AstNode<?> rootA, AstNode<?> rootB, boolean compareAttributes, boolean compareLocation)
public static DeepComparer makeComparer(boolean compareAttributes, boolean compareLocation)
Copyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.