Example usage for org.eclipse.jdt.core.dom Modifier getLocationInParent

List of usage examples for org.eclipse.jdt.core.dom Modifier getLocationInParent

Introduction

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

Prototype

public final StructuralPropertyDescriptor getLocationInParent() 

Source Link

Document

Returns the location of this node within its parent, or null if this is a root node.

Usage

From source file:org.autorefactor.refactoring.rules.RemoveUselessModifiersRefactoring.java

License:Open Source License

private void insertAt(Modifier m, int index) {
    final ASTBuilder b = this.ctx.getASTBuilder();
    this.ctx.getRefactorings().insertAt(b.move(m), index, m.getLocationInParent(), m.getParent());
}