org.bridj.util
Class Utils

java.lang.Object
  extended by org.bridj.util.Utils

public class Utils
extends Object

Miscellaneous utility methods.

Author:
ochafik

Constructor Summary
Utils()
           
 
Method Summary
static boolean eq(Object a, Object b)
           
static
<T> Class<T>
getClass(Type type)
           
static Class[] getClasses(Type[] types)
           
static int getEnclosedConstructorParametersOffset(Constructor c)
           
static Type getParent(Type type)
           
static Type getUniqueParameterizedTypeParameter(Type type)
           
static boolean isDirect(Buffer b)
           
static boolean isSignedIntegral(Type tpe)
           
static String toString(Throwable th)
           
static String toString(Type t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getEnclosedConstructorParametersOffset

public static int getEnclosedConstructorParametersOffset(Constructor c)

isDirect

public static boolean isDirect(Buffer b)

isSignedIntegral

public static boolean isSignedIntegral(Type tpe)

toString

public static String toString(Type t)

toString

public static String toString(Throwable th)

eq

public static boolean eq(Object a,
                         Object b)

getClass

public static <T> Class<T> getClass(Type type)

getParent

public static Type getParent(Type type)

getClasses

public static Class[] getClasses(Type[] types)

getUniqueParameterizedTypeParameter

public static Type getUniqueParameterizedTypeParameter(Type type)


Copyright © 2009-2012. All Rights Reserved.