Class SimplePropertyDescriptor
java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.StructuralPropertyDescriptor
org.aspectj.org.eclipse.jdt.core.dom.SimplePropertyDescriptor
Descriptor for a simple property of an AST node.
A simple property is one whose value is a
primitive type (such as
int or boolean)
or some simple value type (such as String or
InfixExpression.Operator).- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value type of this property.booleanReturns whether this property is mandatory.Methods inherited from class StructuralPropertyDescriptor
getId, getNodeClass, isChildListProperty, isChildProperty, isSimpleProperty, toStringModifier and TypeMethodDescriptionfinal 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.
-
Method Details
-
getValueType
Returns the value type of this property.For example, for a node type like SingleVariableDeclaration, the "modifiers" property returns
int.class.- Returns:
- the value type of the property
-
isMandatory
public boolean isMandatory()Returns whether this property is mandatory. A property value is not allowed to benullif it is mandatory.- Returns:
trueif the property is mandatory, andfalseif it is may benull
-