Package | Description |
---|---|
com.massa.mrules.util.property | |
com.massa.util.property |
This package contains property access framework.
|
Modifier and Type | Class and Description |
---|---|
class |
ExtPropertySource
PropertySource extension for context handling. |
Modifier and Type | Method and Description |
---|---|
Object |
GlobalVarProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
LocalVarProperty.get(IPropertySource source,
boolean instantiateAll) |
protected IFieldAccessor |
StrictFieldProperty2.getField(IPropertySource source,
boolean mandatory) |
Class<?> |
GlobalVarProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
LocalVarProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
GlobalVarProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
LocalVarProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
GlobalVarProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
LocalVarProperty.getGenericMapValueType(IPropertySource source) |
Class<?>[] |
GlobalVarProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
LocalVarProperty.getGenericTypes(IPropertySource source) |
protected IMethodInvoker |
StrictMethodProperty2.getMethod(IPropertySource source,
boolean mandatory) |
protected IMethodInvoker |
SimpleProperty2.getReadMethod(IPropertySource source,
boolean mandatory) |
Class<?> |
GlobalVarProperty.getType(IPropertySource source) |
Class<?> |
LocalVarProperty.getType(IPropertySource source) |
protected IMethodInvoker |
SimpleProperty2.getWriteMethod(IPropertySource target,
boolean mandatory) |
boolean |
GlobalVarProperty.isReadable(IPropertySource source) |
boolean |
LocalVarProperty.isReadable(IPropertySource source) |
boolean |
GlobalVarProperty.isWriteable(IPropertySource target) |
boolean |
LocalVarProperty.isWriteable(IPropertySource target) |
void |
SimpleProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
IProperty2.optimize(ICompilationContext ctxt,
IPropertySource source)
Allows to optimize access if target type is known.
|
void |
MappedProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
StaticFieldProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
GlobalVarProperty.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
LocalVarProperty.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
StaticMethodProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
StrictMethodProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
ConstantProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
NestedProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
IndexedProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
void |
StrictFieldProperty2.optimize(ICompilationContext ctxt,
IPropertySource source) |
Object |
GlobalVarProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
LocalVarProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
protected void |
IndexedProperty2.setIndexSource(IPropertySource source) |
protected void |
MappedProperty2.setKeySource(IPropertySource source) |
Modifier and Type | Class and Description |
---|---|
class |
PropertySource
Encapsulates source object for introspection.
|
Modifier and Type | Method and Description |
---|---|
Object |
IProperty.get(IPropertySource source)
Introspects source to retrieve property value.
|
Object |
AbstractProperty.get(IPropertySource target)
Simply calls
IProperty.get(IPropertySource, boolean) with no instantiation of nested properties (i.e. value "false" for the boolean parameter). |
Object |
IProperty.get(IPropertySource source,
boolean instanciateAll)
Introspects source to retrieve property value.
|
C |
ConstantProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
StaticMethodProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
MappedProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
SimpleProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
StaticFieldProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
StrictFieldProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
IndexedProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
StrictMethodProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
NestedProperty.get(IPropertySource source,
boolean instantiateAll) |
protected IFieldAccessor |
StaticFieldProperty.getField(IPropertySource source,
boolean mandatory) |
protected IFieldAccessor |
StrictFieldProperty.getField(IPropertySource source,
boolean mandatory) |
Class<?> |
IProperty.getGenericCollectionType(IPropertySource source)
Tries to detect if the generic type of the property if the type is a Collection, knowing the argument type to use.
|
Class<?> |
ConstantProperty.getGenericCollectionType(IPropertySource source)
Always null.
|
Class<?> |
StaticMethodProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
MappedProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
SimpleProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
StaticFieldProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
StrictFieldProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
IndexedProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
StrictMethodProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
NestedProperty.getGenericCollectionType(IPropertySource source) |
Class<?> |
IProperty.getGenericMapKeyType(IPropertySource source)
Tries to detect if the generic key type of the property if the type is a Map, knowing the argument type to use.
|
Class<?> |
ConstantProperty.getGenericMapKeyType(IPropertySource source)
Always null.
|
Class<?> |
StaticMethodProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
MappedProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
SimpleProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
StaticFieldProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
StrictFieldProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
IndexedProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
StrictMethodProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
NestedProperty.getGenericMapKeyType(IPropertySource source) |
Class<?> |
IProperty.getGenericMapValueType(IPropertySource source)
Tries to detect if the generic value type of the property if the type is a Map, knowing the argument type to use.
|
Class<?> |
ConstantProperty.getGenericMapValueType(IPropertySource source)
Always null.
|
Class<?> |
StaticMethodProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
MappedProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
SimpleProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
StaticFieldProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
StrictFieldProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
IndexedProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
StrictMethodProperty.getGenericMapValueType(IPropertySource source) |
Class<?> |
NestedProperty.getGenericMapValueType(IPropertySource source) |
Class<?>[] |
IProperty.getGenericTypes(IPropertySource source)
Tries to detect if the parameterized types of the property, whatever its type is, knowing the argument type to use.
|
Class<?>[] |
ConstantProperty.getGenericTypes(IPropertySource source)
Always null.
|
Class<?>[] |
StaticMethodProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
MappedProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
SimpleProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
StaticFieldProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
StrictFieldProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
IndexedProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
StrictMethodProperty.getGenericTypes(IPropertySource source) |
Class<?>[] |
NestedProperty.getGenericTypes(IPropertySource source) |
protected IMethodInvoker |
StaticMethodProperty.getMethod(IPropertySource source,
boolean mandatory) |
protected IMethodInvoker |
StrictMethodProperty.getMethod(IPropertySource source,
boolean mandatory) |
protected IMethodInvoker |
SimpleProperty.getReadMethod(IPropertySource source,
boolean mandatory) |
Class<?> |
IProperty.getType(IPropertySource source)
Tries to detect if the type of the property, knowing the argument type to use.
|
Class<C> |
ConstantProperty.getType(IPropertySource source)
Always "String.class"
|
Class<?> |
StaticMethodProperty.getType(IPropertySource source) |
Class<?> |
MappedProperty.getType(IPropertySource source) |
Class<?> |
SimpleProperty.getType(IPropertySource source) |
Class<?> |
StaticFieldProperty.getType(IPropertySource source) |
Class<?> |
StrictFieldProperty.getType(IPropertySource source) |
Class<?> |
IndexedProperty.getType(IPropertySource source) |
Class<?> |
StrictMethodProperty.getType(IPropertySource source) |
Class<?> |
NestedProperty.getType(IPropertySource source) |
protected IMethodInvoker |
SimpleProperty.getWriteMethod(IPropertySource source,
boolean mandatory) |
protected Class<?> |
SimpleProperty.getWriteMethodParamType(IPropertySource source,
boolean mandatory) |
protected Object |
SimpleProperty.handleGetFromMap(IPropertySource source,
boolean instantiateAll,
Map<?,?> map)
Gets an object from a typed map.
|
boolean |
IProperty.isReadable(IPropertySource source)
Tries to detect if the property will be able to be read in theory, knowing the argument type to use.
|
boolean |
ConstantProperty.isReadable(IPropertySource source)
Always true
|
boolean |
StaticMethodProperty.isReadable(IPropertySource source) |
boolean |
MappedProperty.isReadable(IPropertySource source) |
boolean |
SimpleProperty.isReadable(IPropertySource source) |
boolean |
StaticFieldProperty.isReadable(IPropertySource source) |
boolean |
StrictFieldProperty.isReadable(IPropertySource source) |
boolean |
IndexedProperty.isReadable(IPropertySource source) |
boolean |
StrictMethodProperty.isReadable(IPropertySource source) |
boolean |
NestedProperty.isReadable(IPropertySource source) |
boolean |
IProperty.isWriteable(IPropertySource target)
Tries to detect if the property will be able to be written in theory, knowing the argument type to use.
|
boolean |
ConstantProperty.isWriteable(IPropertySource target)
Always false
|
boolean |
StaticMethodProperty.isWriteable(IPropertySource target) |
boolean |
MappedProperty.isWriteable(IPropertySource target) |
boolean |
SimpleProperty.isWriteable(IPropertySource target) |
boolean |
StaticFieldProperty.isWriteable(IPropertySource target) |
boolean |
StrictFieldProperty.isWriteable(IPropertySource target) |
boolean |
IndexedProperty.isWriteable(IPropertySource target) |
boolean |
StrictMethodProperty.isWriteable(IPropertySource target)
Always false.
|
boolean |
NestedProperty.isWriteable(IPropertySource target) |
Object |
IProperty.set(IPropertySource target,
Object obj)
Introspects target to set property value.
|
Object |
AbstractProperty.set(IPropertySource target,
Object obj)
Simply calls
IProperty.get(IPropertySource, boolean) with instantiation of nested properties (i.e. value "true" for the boolean parameter). |
Object |
IProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested)
Introspects target to set property value.
|
Object |
ConstantProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested)
Unsupported.S
|
Object |
StaticMethodProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
MappedProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested)
Sets the requested value in the Map provided by the "property" field, using the key provided by the "key" field.
|
Object |
SimpleProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
StaticFieldProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
StrictFieldProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
IndexedProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
StrictMethodProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
NestedProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
protected void |
IndexedProperty.setIndexSource(IPropertySource source) |
protected void |
MappedProperty.setKeySource(IPropertySource source) |