public final class ChildListPropertyDescriptor extends StructuralPropertyDescriptor
ASTNode
.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.Modifier and Type | Method and Description |
---|---|
boolean |
cycleRisk()
Returns whether this property is vulnerable to cycles.
|
java.lang.Class |
getElementType()
Returns the element type of this list property.
|
getId, getNodeClass, isChildListProperty, isChildProperty, isSimpleProperty, toString
public final java.lang.Class getElementType()
For example, for a node type like JavaScriptUnit,
the "imports" property returns ImportDeclaration.class
.
public final boolean cycleRisk()
A property is vulnerable to cycles if a node of the owning
type (that is, the type that owns this property) could legally
appear in the AST subtree below this property. For example,
the body property of a
FunctionDeclaration
node
admits a body which might include statement that embeds
another FunctionDeclaration
node.
On the other hand, the name property of a
FunctionDeclaration node admits only names, and thereby excludes
another FunctionDeclaration node.
true
if cycles are possible,
and false
if cycles are impossibleCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.