Example usage for org.eclipse.jdt.core.dom Type subtreeMatch

List of usage examples for org.eclipse.jdt.core.dom Type subtreeMatch

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom Type subtreeMatch.

Prototype

public final boolean subtreeMatch(ASTMatcher matcher, Object other) 

Source Link

Document

Returns whether the subtree rooted at the given node matches the given other object as decided by the given matcher.

Usage

From source file:de.fkoeberle.autocommit.message.java.helper.delta.FieldDelta.java

License:Open Source License

private boolean containsTypeChange() {
    Type oldType = oldDeclaration.getType();
    Type newType = newDeclaration.getType();
    boolean sameType = oldType.subtreeMatch(new ASTMatcher(true), newType);
    return !sameType;
}