Example usage for org.eclipse.jdt.core.dom NumberLiteral TOKEN_PROPERTY

List of usage examples for org.eclipse.jdt.core.dom NumberLiteral TOKEN_PROPERTY

Introduction

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

Prototype

SimplePropertyDescriptor TOKEN_PROPERTY

To view the source code for org.eclipse.jdt.core.dom NumberLiteral TOKEN_PROPERTY.

Click Source Link

Document

The "token" structural property of this node type (type: String ).

Usage

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

License:Apache License

protected Integer getNANumberValue(Annotation annotation, String key) {
    Expression expr = getNAValue(annotation, key);
    if (expr instanceof NumberLiteral) {
        return Integer.valueOf((String) getRewrite().get(expr, NumberLiteral.TOKEN_PROPERTY));
    }/* w  w w  . j a v a  2s  .  c  o m*/
    return null;
}