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| Type | Property and Description |
|---|---|
boolean |
isChildList
Returns whether this property is a child list property
(instance of
ChildListPropertyDescriptor. |
boolean |
isChild
Returns whether this property is a child property
(instance of
ChildPropertyDescriptor. |
boolean |
isSimple
Returns whether this property is a simple property
(instance of
SimplePropertyDescriptor. |
| 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.
|
SimplePropertyDescriptor.true if this is a simple property, and
false otherwiseChildPropertyDescriptor.true if this is a child property, and
false otherwiseChildListPropertyDescriptor.true if this is a child list property, and
false otherwisepublic 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 otherwiseCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.