Example usage for org.eclipse.jdt.internal.compiler.env IBinaryNestedType getModifiers

List of usage examples for org.eclipse.jdt.internal.compiler.env IBinaryNestedType getModifiers

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.env IBinaryNestedType getModifiers.

Prototype




int getModifiers();

Source Link

Document

Answer an int whose bits are set according the access constants defined by the VM spec.

Usage

From source file:org.eclipse.che.jdt.BinaryTypeConvector.java

License:Open Source License

private static JsonElement toJsonMemberType(IBinaryNestedType type) {
    JsonObject object = new JsonObject();
    object.add("enclosingTypeName", type.getEnclosingTypeName() == null ? JsonNull.INSTANCE
            : new JsonPrimitive(new String(type.getEnclosingTypeName())));
    object.addProperty("modifiers", type.getModifiers());
    object.add("name",
            type.getName() == null ? JsonNull.INSTANCE : new JsonPrimitive(new String(type.getName())));
    return object;
}