com.jproxy.proxy.stubgen
Class Common
java.lang.Object
|
+--com.jproxy.proxy.stubgen.Common
- public class Common
- extends java.lang.Object
Method Summary |
static java.lang.String |
convertMethod(java.lang.reflect.Method meth)
|
static java.lang.String[] |
getClassFromStub(java.lang.String name)
|
static java.lang.String |
getClassName(java.lang.Class c)
Returns the name of the given type |
static java.lang.String |
getDefaultValue(java.lang.Class c)
Returns the default value of the given Java Type. |
static java.lang.String |
getJustClassName(java.lang.String name)
|
static java.lang.String |
getPackageName(java.lang.String name)
|
static java.lang.String |
getStubClassName(java.lang.String[] names)
|
static boolean |
implementsInterface(java.lang.Class c,
java.lang.Class interf)
Returns true if the given class implements the given interface |
static boolean |
isSerializable(java.lang.Class c)
Returns true if the given class is a Serializable Java Type,
false otherwise. |
static boolean |
isStubClassName(java.lang.String name)
|
static boolean |
isVoid(java.lang.Class c)
Returns true if the given type is the type 'void' |
static java.lang.String |
method2String(java.lang.reflect.Method method)
Source generation of the header of the given Method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Common
public Common()
getClassFromStub
public static java.lang.String[] getClassFromStub(java.lang.String name)
getStubClassName
public static java.lang.String getStubClassName(java.lang.String[] names)
isStubClassName
public static boolean isStubClassName(java.lang.String name)
convertMethod
public static java.lang.String convertMethod(java.lang.reflect.Method meth)
implementsInterface
public static boolean implementsInterface(java.lang.Class c,
java.lang.Class interf)
- Returns true if the given class implements the given interface
isSerializable
public static boolean isSerializable(java.lang.Class c)
- Returns true if the given class is a Serializable Java Type,
false otherwise.
getClassName
public static java.lang.String getClassName(java.lang.Class c)
- Returns the name of the given type
getJustClassName
public static java.lang.String getJustClassName(java.lang.String name)
getPackageName
public static java.lang.String getPackageName(java.lang.String name)
isVoid
public static boolean isVoid(java.lang.Class c)
- Returns true if the given type is the type 'void'
getDefaultValue
public static java.lang.String getDefaultValue(java.lang.Class c)
- Returns the default value of the given Java Type.
- Parameters:
class
- the class object for a Java type.- Returns:
- the default value of the given Java Type
method2String
public static java.lang.String method2String(java.lang.reflect.Method method)
throws StubGenException
- Source generation of the header of the given Method.
- Throws:
StubGenException
- in error case
Copyright © JProxy LLC. All Rights Reserved.