public class ClassUtils extends Object
| Constructor and Description |
|---|
ClassUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static boolean isPrimitive(String type)
type - Typetrue if a primitive, false if notpublic 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 foundpublic 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 foundpublic 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 namepublic 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 notCopyright © 2005–2016 jibx.org. All rights reserved.