public class TypeOracleUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCompatibleConstructor(com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.JType... argTypes)
Check for a constructor which is compatible with the supplied argument
types.
|
static boolean |
typeIsCompatible(com.google.gwt.core.ext.typeinfo.JType paramType,
com.google.gwt.core.ext.typeinfo.JType argType)
Return true if the supplied argument type is assignment compatible with a
declared parameter type.
|
static boolean |
typesAreCompatible(com.google.gwt.core.ext.typeinfo.JType[] paramTypes,
com.google.gwt.core.ext.typeinfo.JType[] argTypes,
boolean varArgs)
Check if the types of supplied arguments are compatible with the parameter
types of a method.
|
public static boolean hasCompatibleConstructor(com.google.gwt.core.ext.typeinfo.JClassType type, com.google.gwt.core.ext.typeinfo.JType... argTypes)
type
- argTypes
- public static boolean typeIsCompatible(com.google.gwt.core.ext.typeinfo.JType paramType, com.google.gwt.core.ext.typeinfo.JType argType)
paramType
- argType
- public static boolean typesAreCompatible(com.google.gwt.core.ext.typeinfo.JType[] paramTypes, com.google.gwt.core.ext.typeinfo.JType[] argTypes, boolean varArgs)
paramTypes
- argTypes
- varArgs
- true if the method is a varargs methodCopyright © 2016. All rights reserved.