public class JavaLightTreeUtil
extends java.lang.Object
Constructor and Description |
---|
JavaLightTreeUtil() |
Modifier and Type | Method and Description |
---|---|
static LighterASTNode |
findExpressionChild(LighterAST tree,
LighterASTNode node) |
static java.util.List<LighterASTNode> |
getArgList(LighterAST tree,
LighterASTNode call) |
static java.util.List<LighterASTNode> |
getExpressionChildren(LighterAST tree,
LighterASTNode node) |
static java.lang.String |
getNameIdentifierText(LighterAST tree,
LighterASTNode idOwner) |
static boolean |
hasExplicitModifier(LighterAST tree,
LighterASTNode modifierListOwner,
IElementType modifierKeyword)
Returns true if given element (which is modifier list owner) has given explicit modifier
|
static boolean |
isPrimitiveCast(LighterAST tree,
LighterASTNode node) |
static LighterASTNode |
skipParenthesesCastsDown(LighterAST tree,
LighterASTNode node) |
static LighterASTNode |
skipParenthesesDown(LighterAST tree,
LighterASTNode expression) |
public static java.util.List<LighterASTNode> getArgList(LighterAST tree, LighterASTNode call)
public static java.lang.String getNameIdentifierText(LighterAST tree, LighterASTNode idOwner)
public static java.util.List<LighterASTNode> getExpressionChildren(LighterAST tree, LighterASTNode node)
public static LighterASTNode findExpressionChild(LighterAST tree, LighterASTNode node)
public static LighterASTNode skipParenthesesCastsDown(LighterAST tree, LighterASTNode node)
public static boolean isPrimitiveCast(LighterAST tree, LighterASTNode node)
public static LighterASTNode skipParenthesesDown(LighterAST tree, LighterASTNode expression)
public static boolean hasExplicitModifier(LighterAST tree, LighterASTNode modifierListOwner, IElementType modifierKeyword)
tree
- an AST treemodifierListOwner
- element to check modifier ofmodifierKeyword
- modifier to look for (e.g. JavaTokenType.VOLATILE_KEYWORD