|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.core.dom.StructuralPropertyDescriptor
public abstract class StructuralPropertyDescriptor
Abstract base class for property descriptors of AST nodes. There are three kinds of properties:
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
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |