public final class SimplePropertyDescriptor extends StructuralPropertyDescriptor
int
or boolean
)
or some simple value type (such as String
or
InfixExpression.Operator
).ASTNode.getStructuralProperty(StructuralPropertyDescriptor)
,
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
isChildListProperty, isChildProperty, isSimpleProperty
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getValueType()
Returns the value type of this property.
|
boolean |
isMandatory()
Returns whether this property is mandatory.
|
getId, getNodeClass, isChildListProperty, isChildProperty, isSimpleProperty, toString
public java.lang.Class getValueType()
For example, for a node type like SingleVariableDeclaration,
the "modifiers" property returns int.class
.
public boolean isMandatory()
null
if it is mandatory.true
if the property is mandatory,
and false
if it is may be null
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.