Klasse StructuralPropertyDescriptor
java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.StructuralPropertyDescriptor
- Bekannte direkte Unterklassen:
ChildListPropertyDescriptor,ChildPropertyDescriptor,SimplePropertyDescriptor
Abstract base class for property descriptors of AST nodes.
There are three kinds of properties:
- simple 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 aSimpleName - child properties (
ChildPropertyDescriptor) - properties whose value is another AST node; for example, the name of aMethodDeclaration - child list properties (
ChildListPropertyDescriptor) - properties where the value is a list of AST nodes; for example, the statements of aBlock
- Seit:
- 3.0
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal StringgetId()Returns the id of this property.final ClassReturns the AST node type that owns this property.final booleanReturns whether this property is a child list property (instance ofChildListPropertyDescriptor.final booleanReturns whether this property is a child property (instance ofChildPropertyDescriptor.final booleanReturns whether this property is a simple property (instance ofSimplePropertyDescriptor.toString()Returns a string suitable for debug purposes.
-
Methodendetails
-
getId
Returns the id of this property.- Gibt zurück:
- the property id
-
getNodeClass
Returns the AST node type that owns this property.For example, for all properties of the node type TypeDeclaration, this method returns
TypeDeclaration.class.- Gibt zurück:
- the node type that owns this property
-
isSimpleProperty
public final boolean isSimpleProperty()Returns whether this property is a simple property (instance ofSimplePropertyDescriptor.- Gibt zurück:
trueif this is a simple property, andfalseotherwise
-
isChildProperty
public final boolean isChildProperty()Returns whether this property is a child property (instance ofChildPropertyDescriptor.- Gibt zurück:
trueif this is a child property, andfalseotherwise
-
isChildListProperty
public final boolean isChildListProperty()Returns whether this property is a child list property (instance ofChildListPropertyDescriptor.- Gibt zurück:
trueif this is a child list property, andfalseotherwise
-
toString
Returns a string suitable for debug purposes.
-