Example usage for org.eclipse.jdt.core.dom MethodRefParameter getParent

List of usage examples for org.eclipse.jdt.core.dom MethodRefParameter getParent

Introduction

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

Prototype

public final ASTNode getParent() 

Source Link

Document

Returns this node's parent node, or null if this is the root node.

Usage

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

License:LGPL

private MethodRefParameter asMethodRefParameter(IStrategoTerm term) {
    MethodRefParameter x = ((WrappedMethodRefParameter) term).getWrappee();
    return x.getParent() == null && x.getAST() == ast ? x : (MethodRefParameter) ASTNode.copySubtree(ast, x);
}