public abstract class StructuralPropertyDescriptor
extends java.lang.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 SimpleName
ChildPropertyDescriptor
)
- properties whose value is another AST node;
for example, the name of a FunctionDeclaration
ChildListPropertyDescriptor
)
- properties where the value is a list of AST nodes;
for example, the statements of a Block
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the id of this property.
|
java.lang.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 . |
java.lang.String |
toString()
Returns a string suitable for debug purposes.
|
public final java.lang.String getId()
public final java.lang.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
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.