|
Lombok.ast - v0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Expression
Method Summary | |
---|---|
List<Position> |
astParensPositions()
Returns the start/end position of each paren pair around this node. |
int |
getIntendedParens()
Returns the same value as getParens() , unless that method returns 0 ,
and needsParentheses() is true , then this method returns 1 . |
int |
getParens()
Returns the actual amount of parentheses physically around this expression. |
boolean |
isStatementExpression()
Returns true if the given expression is a valid statement expression. |
boolean |
needsParentheses()
Returns true if the expression would need parentheses because without them the interpretation
of this node would be different, due to operator precedence rules. |
Methods inherited from interface lombok.ast.Node |
---|
accept, addMessage, copy, detach, getChildren, getGeneratedBy, getMessages, getParent, getPosition, hasMessage, hasParent, isGenerated, replace, replaceChild, setPosition, toString, unparent |
Method Detail |
---|
int getParens()
astParensPositions()
,
getIntendedParens()
int getIntendedParens()
getParens()
, unless that method returns 0
,
and needsParentheses()
is true
, then this method returns 1
.
List<Position> astParensPositions()
getParens()
boolean needsParentheses()
true
if the expression would need parentheses because without them the interpretation
of this node would be different, due to operator precedence rules.
getIntendedParens()
boolean isStatementExpression()
|
Lombok.ast - v0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |