2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.interfacedef.java.jaxws
Class CodeGenerationHelper
java.lang.Object
org.apache.tuscany.sca.interfacedef.java.jaxws.CodeGenerationHelper
public class CodeGenerationHelper
- extends java.lang.Object
Method Summary |
static java.lang.Class<?> |
getErasure(java.lang.reflect.Type type)
|
static java.lang.String |
getJAXWSSignature(java.lang.reflect.Type type)
|
static int |
getLoadOPCode(java.lang.String signature)
|
static java.lang.String |
getPackagePrefix(java.lang.Class<?> cls)
Get the package prefix for generated JAXWS artifacts |
static int |
getReturnOPCode(java.lang.String signature)
|
static java.lang.String |
getSignature(java.lang.reflect.Type type)
|
static
<T> java.util.List<java.lang.Class<?>> |
|
resovleTypeArguments(java.lang.Class<T> baseClass,
java.lang.Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeGenerationHelper
public CodeGenerationHelper()
getErasure
public static java.lang.Class<?> getErasure(java.lang.reflect.Type type)
- Parameters:
type
-
- Returns:
getJAXWSSignature
public static java.lang.String getJAXWSSignature(java.lang.reflect.Type type)
- Parameters:
type
-
- Returns:
getSignature
public static java.lang.String getSignature(java.lang.reflect.Type type)
- Parameters:
type
-
- Returns:
resovleTypeArguments
public static <T> java.util.List<java.lang.Class<?>> resovleTypeArguments(java.lang.Class<T> baseClass,
java.lang.Class<? extends T> childClass)
- Get the actual type arguments a child class has used to extend a generic base class.
- Parameters:
baseClass
- the base classchildClass
- the child class
- Returns:
- a list of the raw classes for the actual type arguments.
getLoadOPCode
public static int getLoadOPCode(java.lang.String signature)
getReturnOPCode
public static int getReturnOPCode(java.lang.String signature)
getPackagePrefix
public static java.lang.String getPackagePrefix(java.lang.Class<?> cls)
- Get the package prefix for generated JAXWS artifacts
- Parameters:
cls
-
- Returns: