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

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

Introduction

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

Prototype

public 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 bridgeSimpleProperty(org.eclipse.jdt.core.dom.ASTNode e_node, SimplePropertyDescriptor prop) {
    if (prop.isMandatory())
        return bridgeOneChildProperty(e_node, prop);
    else//from   ww  w  .j a  v  a  2  s  .  co  m
        return bridgeOptionalChildProperty(e_node, prop);
}