public abstract class StructuralPropertyDescriptor extends Object
SimplePropertyDescriptor)
- properties where the value is a primitive (int, boolean)
or simple (String, InfixExprsssion.Operator) type other than an
AST node; for example, the identifier of a SimpleNameChildPropertyDescriptor)
- properties whose value is another AST node;
for example, the name of a MethodDeclarationChildListPropertyDescriptor)
- properties where the value is a list of AST nodes;
for example, the statements of a Block| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the id of this property.
|
Class |
getNodeClass()
Returns the AST node type that owns this property.
|
boolean |
isChildListProperty()
Returns whether this property is a child list property
(instance of
ChildListPropertyDescriptor. |
boolean |
isChildProperty()
Returns whether this property is a child property
(instance of
ChildPropertyDescriptor. |
boolean |
isSimpleProperty()
Returns whether this property is a simple property
(instance of
SimplePropertyDescriptor. |
String |
toString()
Returns a string suitable for debug purposes.
|
public final String getId()
public final Class getNodeClass()
For example, for all properties of the node type
TypeDeclaration, this method returns TypeDeclaration.class.
public final boolean isSimpleProperty()
SimplePropertyDescriptor.true if this is a simple property, and
false otherwisepublic final boolean isChildProperty()
ChildPropertyDescriptor.true if this is a child property, and
false otherwisepublic final boolean isChildListProperty()
ChildListPropertyDescriptor.true if this is a child list property, and
false otherwise
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.