cc.plural.jsonij.marshal
Class Inspector

java.lang.Object
  extended by cc.plural.jsonij.marshal.Inspector

public class Inspector
extends Object

Author:
openecho

Nested Class Summary
static class Inspector.ACCESS_TYPE
           
static class Inspector.InspectionData
           
 
Field Summary
static String GET_PREFIX
           
static String IS_PREFIX
           
static String SET_PREFIX
           
 
Constructor Summary
Inspector(Class<?> c)
           
Inspector(Object o)
           
 
Method Summary
static String getAnnotatedName(AccessibleObject object)
           
 InspectorProperty[] getAttributeProperties(Class<?> objectClass)
           
 Object getC()
           
 Inspector.InspectionData getFieldInspectionData(Field field)
           
static String getJSONAccessor(AccessibleObject object)
           
static String getJSONMutator(AccessibleObject object)
           
static String getJSONName(AccessibleObject object)
           
 Inspector.InspectionData getMethodInspectionData(Method method)
           
 InspectorProperty[] getMethodProperties(Class<?> objectClass)
           
 Object getO()
           
 InspectorProperty[] getProperties()
           
 InspectorProperty getProperty(String name)
           
 boolean hasInnerArray()
           
 boolean hasInnerObject()
           
 boolean hasProperty(String name)
           
 void inspect()
           
 boolean isJSONIgnored(AccessibleObject object)
           
 void setProperties(InspectorProperty[] properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_PREFIX

public static final String IS_PREFIX

SET_PREFIX

public static final String SET_PREFIX

GET_PREFIX

public static final String GET_PREFIX
Constructor Detail

Inspector

public Inspector(Class<?> c)

Inspector

public Inspector(Object o)
Method Detail

getC

public Object getC()

getO

public Object getO()

hasInnerArray

public boolean hasInnerArray()

hasInnerObject

public boolean hasInnerObject()

hasProperty

public boolean hasProperty(String name)

getProperty

public InspectorProperty getProperty(String name)

inspect

public void inspect()

getAttributeProperties

public InspectorProperty[] getAttributeProperties(Class<?> objectClass)

getMethodProperties

public InspectorProperty[] getMethodProperties(Class<?> objectClass)

getFieldInspectionData

public Inspector.InspectionData getFieldInspectionData(Field field)

getMethodInspectionData

public Inspector.InspectionData getMethodInspectionData(Method method)

getProperties

public InspectorProperty[] getProperties()

setProperties

public void setProperties(InspectorProperty[] properties)

isJSONIgnored

public boolean isJSONIgnored(AccessibleObject object)

getAnnotatedName

public static String getAnnotatedName(AccessibleObject object)

getJSONName

public static String getJSONName(AccessibleObject object)

getJSONMutator

public static String getJSONMutator(AccessibleObject object)

getJSONAccessor

public static String getJSONAccessor(AccessibleObject object)


Copyright © 2012. All Rights Reserved.