com.googlecode.icegem.serialization.codegen
Class Introspector
java.lang.Object
com.googlecode.icegem.serialization.codegen.Introspector
public class Introspector
- extends java.lang.Object
Util
- Author:
- igolovach
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Introspector
public Introspector()
checkClassIsSerialized
public static void checkClassIsSerialized(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
getProperties
public static java.util.List<XProperty> getProperties(java.lang.Class<?> clazz)
checkParentConstructor
protected static void checkParentConstructor(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Checks if parent class (if exists) is annotated as AutoSerializable, or have parameterless public constructor .
- Parameters:
clazz -
- Throws:
java.io.InvalidClassException
checkGetterSetterTheSameType
protected static void checkGetterSetterTheSameType(java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkSetterReturnVoid
protected static void checkSetterReturnVoid(java.lang.reflect.Method setter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkSetterWithoutExceptions
protected static void checkSetterWithoutExceptions(java.lang.reflect.Method setter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkGetterWithoutExceptions
protected static void checkGetterWithoutExceptions(java.lang.reflect.Method getter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
getPropertyGetters
protected static java.util.Map<java.lang.String,java.lang.reflect.Method> getPropertyGetters(java.lang.Class<?> clazz)
- 1) move hierarchy up
2) look for method with name
3) check @TransientGetter
- Parameters:
clazz -
- Returns:
checkSetterPublic
protected static void checkSetterPublic(java.lang.reflect.Method setter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkSetterOneArg
protected static void checkSetterOneArg(java.lang.reflect.Method setter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkGetterPublic
protected static void checkGetterPublic(java.lang.reflect.Method getter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkGetterNoArg
protected static void checkGetterNoArg(java.lang.reflect.Method getter)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkClassIsAnnotationMarked
protected static void checkClassIsAnnotationMarked(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkClassIsPublic
protected static void checkClassIsPublic(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkClassIsNotNested
protected static void checkClassIsNotNested(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkConstructorNoArg
protected static java.lang.reflect.Constructor<?> checkConstructorNoArg(java.lang.Class<?> clazz)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkConstructorPublic
protected static void checkConstructorPublic(java.lang.reflect.Constructor<?> constructor)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
checkConstructorWithoutExceptions
protected static void checkConstructorWithoutExceptions(java.lang.reflect.Constructor<?> constructor)
throws java.io.InvalidClassException
- Throws:
java.io.InvalidClassException
Copyright © 2011. All Rights Reserved.