|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.ClassUtils
public class ClassUtils
Utilities for working with class, field, or method information.
| Constructor Summary | |
|---|---|
ClassUtils()
|
|
| Method Summary | |
|---|---|
static IClassItem |
findStaticMethod(String name,
String[] sigs,
ValidationContext vctx)
Get static method by fully qualified name. |
static IClassItem |
findVirtualMethod(String name,
String[] sigs,
ValidationContext vctx)
Get virtual method by fully qualified name. |
static String |
getSignature(String type)
Gets the signature string corresponding to a type. |
static String[] |
getSignatureVariants(String name,
ValidationContext vctx)
Get all variant signatures for a fully qualified class name. |
static boolean |
isAssignable(String from,
String to,
ValidationContext vctx)
Check if a value of one type can be directly assigned to another type. |
static boolean |
isPrimitive(String type)
Check if type name is a primitive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtils()
| Method Detail |
|---|
public static boolean isPrimitive(String type)
type -
true if a primitive, false if not
public static IClassItem findVirtualMethod(String name,
String[] sigs,
ValidationContext vctx)
name - fully qualified class and method namesigs - possible method signaturesvctx - validation context (used for class lookup)
null if not found
public static IClassItem findStaticMethod(String name,
String[] sigs,
ValidationContext vctx)
name - fully qualified class and method namesigs - possible method signaturesvctx - validation context (used for class lookup)
null if not found
public static String[] getSignatureVariants(String name,
ValidationContext vctx)
name - fully qualified class namevctx - validation context (used for class lookup)
public static String getSignature(String type)
type - type name
public static boolean isAssignable(String from,
String to,
ValidationContext vctx)
from - fully qualified class name of initial typeto - fully qualified class name of assignment typevctx - validation context (used for class lookup)
true if assignable, false if not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||