Example usage for org.eclipse.jdt.core.dom BooleanLiteral BOOLEAN_VALUE_PROPERTY

List of usage examples for org.eclipse.jdt.core.dom BooleanLiteral BOOLEAN_VALUE_PROPERTY

Introduction

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

Prototype

SimplePropertyDescriptor BOOLEAN_VALUE_PROPERTY

To view the source code for org.eclipse.jdt.core.dom BooleanLiteral BOOLEAN_VALUE_PROPERTY.

Click Source Link

Document

The "booleanValue" structural property of this node type (type: Boolean ).

Usage

From source file:org.moe.natjgen.EditContext.java

License:Apache License

protected Boolean getNABooleanValue(Annotation annotation, String key) {
    Expression expr = getNAValue(annotation, key);
    if (expr instanceof BooleanLiteral) {
        return (Boolean) getRewrite().get(expr, BooleanLiteral.BOOLEAN_VALUE_PROPERTY);
    }/*w  ww  .  j  ava  2s. co  m*/
    return null;
}