Interface IdentifierTree
- All Superinterfaces:
-
ExpressionTree
,Tree
@Deprecated(since="11", forRemoval=true) public interface IdentifierTree extends ExpressionTree
A tree node for an identifier expression. For example:
name
- Since:
- 9
Nested Classes
Nested classes/interfaces declared in interface jdk.nashorn.api.tree.Tree
Tree.Kind
Methods
Modifier and Type | Method | Description |
---|---|---|
String | getName() | Deprecated, for removal: This API element is subject to removal in a future version. Returns the name of this identifier. |
boolean | isDefault() | Deprecated, for removal: This API element is subject to removal in a future version. Is this "default" used in module export entry? |
boolean | isRestParameter() | Deprecated, for removal: This API element is subject to removal in a future version. Is this a rest parameter for a function or rest elements of an array? |
boolean | isStar() | Deprecated, for removal: This API element is subject to removal in a future version. Is this "*" used in module export entry? |
boolean | isStarDefaultStar() | Deprecated, for removal: This API element is subject to removal in a future version. Is this "*default*" used in module export entry? |
boolean | isSuper() | Deprecated, for removal: This API element is subject to removal in a future version. Is this super identifier? |
boolean | isThis() | Deprecated, for removal: This API element is subject to removal in a future version. Is this 'this' identifier? |
Methods declared in interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
Methods
getName
String getName()
Returns the name of this identifier.
- Returns:
- the name of this identifier
isRestParameter
boolean isRestParameter()
Is this a rest parameter for a function or rest elements of an array?
- Returns:
- true if this is a rest parameter
isSuper
boolean isSuper()
Is this super identifier?
- Returns:
- true if this is super identifier
isThis
boolean isThis()
Is this 'this' identifier?
- Returns:
- true if this is 'this' identifier
isStar
boolean isStar()
Is this "*" used in module export entry?
- Returns:
- true if this "*" used in module export entry?
isDefault
boolean isDefault()
Is this "default" used in module export entry?
- Returns:
- true if this 'default' used in module export entry?
isStarDefaultStar
boolean isStarDefaultStar()
Is this "*default*" used in module export entry?
- Returns:
- true if this '*default*' used in module export entry?
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.scripting.nashorn/jdk/nashorn/api/tree/IdentifierTree.html