|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.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 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
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 otherwisepublic String toString()
toString in class Object
|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.