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

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

Introduction

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

Prototype

public final AST getAST() 

Source Link

Document

Returns this node's AST.

Usage

From source file:org.spoofax.interpreter.adapter.ecj.ECJFactory.java

License:LGPL

private Modifier asModifier(IStrategoTerm term) {
    Modifier x = ((WrappedModifier) term).getWrappee();
    return x.getParent() == null && x.getAST() == ast ? x : (Modifier) ASTNode.copySubtree(ast, x);
}