|
Eclipse JDT Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.StructuralPropertyDescriptor
org.eclipse.jdt.core.dom.ChildListPropertyDescriptor
Descriptor for a child list property of an AST node.
A child list property is one whose value is a list of
ASTNode
.
ASTNode.getStructuralProperty(StructuralPropertyDescriptor)
Method Summary | |
---|---|
boolean |
cycleRisk()
Returns whether this property is vulnerable to cycles. |
Class |
getElementType()
Returns the element type of this list property. |
Methods inherited from class org.eclipse.jdt.core.dom.StructuralPropertyDescriptor |
---|
getId, getNodeClass, isChildListProperty, isChildProperty, isSimpleProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public final Class getElementType()
For example, for a node type like CompilationUnit,
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
MethodDeclaration
node
admits a body which might include statement that embeds
another MethodDeclaration
node.
On the other hand, the name property of a
MethodDeclaration node admits only names, and thereby excludes
another MethodDeclaration node.
true
if cycles are possible,
and false
if cycles are impossible
|
Eclipse JDT Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |