public interface ExtendedElement
Element API.
This class wraps Javac tree nodes to allow the JSweet printer adapters to use an API that is independent from the Javac API.
PrinterAdapter| Modifier and Type | Method and Description |
|---|---|
TypeMirror |
getType()
Gets the type that corresponds to this element, if any.
|
Element |
getTypeAsElement()
Gets the standard element that corresponds to the type (if any).
|
boolean |
isConstant()
Tells if this extended element is a constant expression.
|
boolean |
isStringLiteral()
Tells if this extended element is a string literal.
|
TypeMirror getType()
Not all elements have a type. For instance, statements such as if, case, for, and so on do not have a type, while expressions have a type.
To return the corresponding element rather than the type mirror, use
getTypeAsElement() instead.
see getTypeAsElement()
Element getTypeAsElement()
getType()boolean isConstant()
boolean isStringLiteral()