Example usage for org.eclipse.jdt.core.dom ChildPropertyDescriptor isMandatory

List of usage examples for org.eclipse.jdt.core.dom ChildPropertyDescriptor isMandatory

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom ChildPropertyDescriptor isMandatory.

Prototype

public final boolean isMandatory() 

Source Link

Document

Returns whether this property is mandatory.

Usage

From source file:de.ovgu.cide.language.jdt.ASTBridge.java

License:Open Source License

private Property bridgeChildProperty(org.eclipse.jdt.core.dom.ASTNode e_node, ChildPropertyDescriptor prop) {
    if (prop.isMandatory())
        return bridgeOneChildProperty(e_node, prop);
    else//from  w  w  w.j  a v  a2 s  .com
        return bridgeOptionalChildProperty(e_node, prop);
}