Example usage for org.apache.commons.bcel6.generic BasicType getType

List of usage examples for org.apache.commons.bcel6.generic BasicType getType

Introduction

In this page you can find the example usage for org.apache.commons.bcel6.generic BasicType getType.

Prototype

public static BasicType getType(byte type) 

Source Link

Usage

From source file:ru.objective.jni.utils.Utils.java

public static boolean isPrimitive(Type type) {
    try {//from   w w w . j ava 2  s .co m
        BasicType.getType(basicTypeFromArrayType(type).getType());

        return true;
    } catch (Exception e) {
        return false;
    }
}