Example usage for org.eclipse.jdt.core.dom PrimitiveType PRIMITIVE_TYPE_CODE_PROPERTY

List of usage examples for org.eclipse.jdt.core.dom PrimitiveType PRIMITIVE_TYPE_CODE_PROPERTY

Introduction

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

Prototype

SimplePropertyDescriptor PRIMITIVE_TYPE_CODE_PROPERTY

To view the source code for org.eclipse.jdt.core.dom PrimitiveType PRIMITIVE_TYPE_CODE_PROPERTY.

Click Source Link

Document

The "primitiveTypeCode" structural property of this node type (type: PrimitiveType.Code ).

Usage

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

License:Apache License

private boolean isSimilarToPrimitiveType(Type natjType, org.eclipse.jdt.core.dom.Type domType) {
    if (!natjType.isPrimitive() && !natjType.isVoid()) {
        return false;
    }/*  w w w.jav  a 2s .com*/

    Code c = (Code) getRewrite().get(domType, PrimitiveType.PRIMITIVE_TYPE_CODE_PROPERTY);
    return c.toString().equals(natjType.toString());
}