public class

ASTUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.java.ASTUtil

Class Overview

Utility methods for IJavaElement.

Summary

Public Constructors
ASTUtil()
Public Methods
static IJavaElement findParent(IJavaElement root, IJavaElement elt)
Retrieve the parent of an AST element (or first parent, if the element is reusable and has potentially multiple parents).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ASTUtil ()

Public Methods

public static IJavaElement findParent (IJavaElement root, IJavaElement elt)

Retrieve the parent of an AST element (or first parent, if the element is reusable and has potentially multiple parents).

Parameters
root a root element, typically, an IJavaClass
elt the element for which the first parent is to be found
Returns
  • the parent or null