Package | Description |
---|---|
com.massa.dsl | |
com.massa.dsl.autocomplete | |
com.massa.dsl.block | |
com.massa.dsl.doc | |
com.massa.dsl.grammar | |
com.massa.dsl.lexer | |
com.massa.dsl.matcher | |
com.massa.mrules.accessor | |
com.massa.mrules.action | |
com.massa.mrules.addon | |
com.massa.mrules.exception | |
com.massa.mrules.extensions.dsl.doc.html | |
com.massa.mrules.extensions.dsl.factory | |
com.massa.mrules.factory.xml | |
com.massa.mrules.util.convert | |
com.massa.mrules.util.property | |
com.massa.util | |
com.massa.util.commons |
Classes in this package are connectors to be able to use MRules conversion and property utilities with
Apache commons beanutils.
|
com.massa.util.convert |
This package contains conversion framework.
|
com.massa.util.extensions.jdk8.convert | |
com.massa.util.extensions.nativeproperty.compiler | |
com.massa.util.property |
This package contains property access framework.
|
com.massa.util.security |
Modifier and Type | Class and Description |
---|---|
class |
DslException
Exception thrown by dsl library.
|
class |
DslMatchException
Exception thrown internally when no match is found.
|
Constructor and Description |
---|
DslException(UtilsException src) |
DslException(UtilsException src,
Integer line,
Integer column) |
Modifier and Type | Method and Description |
---|---|
AutoCompleteGenerator |
AutoCompleteConfiguration.getAutoCompleteGeneratorInstance() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractInjectableLexerBlock.AbstractInjectableLexerBlockResolver.inject(Object target,
LexerParser value) |
void |
LexerBlockResolver.inject(Object target,
LexerParser value)
Method used to inject result.
|
void |
AndLexerBlock.AndBlockResolver.inject(Object target,
LexerParser value) |
void |
LexerBlockResolverWrapper.inject(Object target,
LexerParser value) |
void |
OrLexerBlock.OrBlockResolver.inject(Object target,
LexerParser value) |
void |
AbstractInjectableLexerBlock.setName(String name) |
Constructor and Description |
---|
DslDocGen(Grammar g) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy) |
void |
ObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy)
Allows to add action on resulting objects after parsing process is done.
|
<C> C |
DefaultObjectCreator.newInstance(Class<C> type,
LexerParser instanciatedBy) |
<C> C |
ObjectCreator.newInstance(Class<C> type,
LexerParser instanciatedBy)
Allows to override result objects instantiation during parse process.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectLexer.ObjectLexerParser.handleBlocks(Object result) |
protected void |
AbstractLexerParser.handleOtherInjectionStrategy(InjectableLexerBlock parentBlock,
Object parentResult)
Default implementation throws Exception.
|
void |
AbstractLexerParser.injectResult(InjectableLexerBlock parentBlock,
Object parentResult)
Handles "add" and "set" injection strategies but delegates "other" to
AbstractLexerParser.handleOtherInjectionStrategy(InjectableLexerBlock, Object) |
void |
LexerParser.injectResult(InjectableLexerBlock parentBlock,
Object parentResult)
Injects parsed result into parent's result.
|
protected Object |
ObjectLexer.ObjectLexerParser.instantiateResult() |
void |
RegexLexer.setAdditionalValidator(Class<AdditionalValidator<String>> additionalValidator) |
void |
AbstractLexer.setListenerClass(Class<? extends LexerParserListener> listenerClass)
Also sets internal instance.
|
void |
ActionLexer.setResultProperty(String resultProperty) |
Modifier and Type | Method and Description |
---|---|
void |
RegexLexerMatcher.setAdditionalValidator(Class<AdditionalValidator<String>> additionalValidator) |
void |
AbstractLexerMatcher.setListenerClass(Class<? extends MatcherListener> listenerClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
MDefinedAccessor.internalCompileValue(ICompilationContext ctxt,
IProperty2 compiledProperty) |
protected void |
MAvailableAccessor.internalCompileValue(ICompilationContext ctxt,
IProperty2 compiledProperty) |
protected abstract void |
AbstractPropertyCheckAccessor.internalCompileValue(ICompilationContext ctxt,
IProperty2 compiledProperty)
Final compilation steps should be implemented here.
|
protected Boolean |
MDefinedAccessor.internalGet(IExecutionContext ctxt,
IProperty2 compiledProperty) |
protected Boolean |
MAvailableAccessor.internalGet(IExecutionContext ctxt,
IProperty2 compiledProperty) |
protected abstract Boolean |
AbstractPropertyCheckAccessor.internalGet(IExecutionContext ctxt,
IProperty2 compiledProperty)
The final implementation should check the property here.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
MActionSort.getCol(IExecutionContext ctxt,
Object value) |
Modifier and Type | Method and Description |
---|---|
static IEvaluationOperator |
MAddonsUtils.getEvaluationOperator(String name)
Retrieves operator implementation from registered addons.
|
static ILogicalOperator |
MAddonsUtils.getLogicalOperator(String name)
Retrieves operator implementation from registered addons.
|
protected void |
MAddonsFinder.registerDiscoveredNodes(Map<String,ArrayList<Node>> discoveredNodes)
Overridden to register added node types.
|
Constructor and Description |
---|
DslHtmlDocGen(Grammar g) |
Modifier and Type | Method and Description |
---|---|
void |
MRulesObjectCreator.endOfParse(Object result,
LexerParser instanciatedBy) |
Modifier and Type | Method and Description |
---|---|
protected void |
RichXMLFactory.GenericAddon.injectIntoProperty(Object target,
Node node,
String propertyName) |
protected Object |
RichXMLFactory.GenericAddon.readPersistantObject(Node node,
Class<?> type) |
Constructor and Description |
---|
XMLMConfigurationException(UtilsException src) |
XMLMConfigurationException(UtilsException src,
Integer line) |
Modifier and Type | Method and Description |
---|---|
protected String |
AddonConverter.internalConvertToString(Object value) |
protected String |
LocalImportHolderConverter.internalConvertToString(Object value) |
protected <T> T |
AddonConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
LocalImportHolderConverter.internalConvertToType(Class<T> type,
Object value) |
Modifier and Type | Method and Description |
---|---|
IProperty2 |
PropertyCompiler2.compile(String property) |
IProperty2 |
PropertyCompiler2.compile(String property,
boolean useCommonBeanUtilsSyntax) |
Object |
GlobalVarProperty.get(IPropertySource source,
boolean instantiateAll) |
Object |
LocalVarProperty.get(IPropertySource source,
boolean instantiateAll) |
<C> IProperty2 |
PropertyCompiler2.PropertyFactory2.getConstantPropertyInstance(C value,
Class<C> clazz) |
protected IFieldAccessor |
StrictFieldProperty2.getField(IPropertySource source,
boolean mandatory) |
Class<?> |
GlobalVarProperty.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) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getIndexedPropertyInstance(IProperty property,
IProperty index) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getIndexedPropertyInstance(String property,
IProperty index) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getIntegerPropertyInstance(Integer value) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getMappedPropertyInstance(IProperty property,
IProperty key) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getMappedPropertyInstance(String property,
IProperty key) |
protected IMethodInvoker |
StrictMethodProperty2.getMethod(IPropertySource source,
boolean mandatory) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getNestedPropertyInstance(List<? extends IProperty> properties) |
protected IMethodInvoker |
SimpleProperty2.getReadMethod(IPropertySource source,
boolean mandatory) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getSimplePropertyInstance(String property) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getStaticFieldPropertyInstance(String declaringClass,
String property) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getStaticMethodPropertyInstance(String declaringClass,
String property,
IProperty... arguments) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getStrictFieldPropertyInstance(String property) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getStrictMethodPropertyInstance(String property,
IProperty... arguments) |
IProperty2 |
PropertyCompiler2.PropertyFactory2.getStringPropertyInstance(String value) |
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) |
protected Class<?> |
StaticFieldProperty2.loadClass(String name) |
protected Class<?> |
StaticMethodProperty2.loadClass(String name) |
IProperty2 |
PropertyCompiler2.secureCompile(String property) |
IProperty2 |
PropertyCompiler2.secureCompile(String property,
MRulesUtilsSecurityManager securityManager) |
Object |
GlobalVarProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Object |
LocalVarProperty.set(IPropertySource target,
Object obj,
boolean instanciateNested) |
Constructor and Description |
---|
GlobalVarProperty(ICompilationContext ctxt,
String property) |
StaticFieldProperty2(ICompilationContext ctxt,
String declaringClass,
String property) |
StaticMethodProperty2(ICompilationContext ctxt,
String declaringClass,
String property,
IProperty... arguments) |
Modifier and Type | Class and Description |
---|---|
static class |
MBeanUtils.ImportValidationException
Exception dedicated to ImportHolder validation.
|
class |
XMLUtilsException
Exceptions thrown for XML problems.
|
Modifier and Type | Method and Description |
---|---|
static <C> C |
MBeanUtils.advancedNewInstance(Class<C> clazz)
Dispatches between
MBeanUtils.newCollectionInstance(Class) , MBeanUtils.newMapInstance(Class) and MBeanUtils.newInstance(Class)
depending on provided parameter. |
static Object |
MBeanUtils.call(Object inst,
String mName)
Shortcut for a no-arg call.
|
static Object |
MBeanUtils.call(Object inst,
String mName,
Class<?>[] argTypes,
Object... args)
Performs a call by reflection on the provided instance to the method name provided.
|
static <C extends Collection<T>,T> |
MBeanUtils.convertToCollection(Class<C> collectionClass,
Class<T> paramClass,
Object value)
Converts provided value to a new
Collection :
If Iterable provided : duplicates into a new collection of type collectionClass if provided,
otherwise of the same class as value if value is a Collection, otherwise an instance of and implementation of Collection. |
protected void |
ConfigDiscovery.discoverConfig(MessageCode onUnexpectedError) |
XMLGregorianCalendar |
DateUtils.execute(XMLGregorianCalendar c,
DateUtils.IDateOperation operation)
Handles operations on XMLGregorianCalendar.
|
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive)
Performs the Class.forName operation, handling correctly primitive names
and resolving unqualified names according to registered imported packages.
|
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive,
boolean initialize) |
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive,
boolean initialize,
ClassLoader loader) |
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive,
boolean initialize,
ClassLoader loader,
MBeanUtils.ImportHolder holder) |
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive,
boolean initialize,
MBeanUtils.ImportHolder holder) |
static Class<?> |
MBeanUtils.forName(String clazzName,
boolean wrapPrimitive,
MBeanUtils.ImportHolder holder)
Performs the Class.forName operation, handling correctly primitive names
and resolving unqualified names according to provided holder (if not null) and then to registered imported packages.
|
static void |
MessageCode.initMessages(Class<?> clazz,
String bundleName,
String keyPrefix)
Initializes all
MessageCode.MessageCodeFromField public static final fields in a Class. |
protected static ResourceBundle |
MessageCode.loadBundle(String bundleName) |
static <C extends Collection<?>> |
MBeanUtils.newCollectionInstance(Class<C> clazz)
Instanciates a new Collection of this Class.
|
static <C> C |
MBeanUtils.newInstance(Class<C> clazz)
Simply tries to instantiate provided class.
|
static <T,C extends T> |
MBeanUtils.newInstance(String clazzName,
Class<T> targetClazz)
Returns a new instance of the provided Class, which must be instanciable with default constructor.
|
static <C extends Map<?,?>> |
MBeanUtils.newMapInstance(Class<C> clazz)
Instantiates a new Map of this Class.
|
protected void |
ConfigDiscovery.registerDiscoveredNodes(Map<String,ArrayList<Node>> discoveredNodes)
Registers discovered nodes and cleans Map from what's already registered.
|
static Object |
MBeanUtils.staticCall(Class<?> clazz,
String mName)
Shortcut for a no-arg static call.
|
static Object |
MBeanUtils.staticCall(Class<?> clazz,
String mName,
Class<?>[] argTypes,
Object... args)
Performs a static call by reflection on the provided class to the method name provided.
|
Constructor and Description |
---|
UtilsException(UtilsException src) |
XMLUtilsException(UtilsException src) |
XMLUtilsException(UtilsException src,
Integer line) |
Constructor and Description |
---|
RuntimeUtilsException(UtilsException e) |
Modifier and Type | Class and Description |
---|---|
class |
ConvertException
Exception thrown by convertion framework.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ConvertUtils.cast(Class<T> clazz,
Object value)
Casts an Object into the expected type.
|
Object |
ConvertUtils.convert(Class<?> clazz,
Object value)
Converts an Object into the expected type, handling Arrays and Collections.
|
Object |
AbstractConverter.convertArrayToString(Object o)
Converts an array to a String.
|
Object |
IConverter.convertArrayToString(Object o)
Handles conversions of Arrays of Objects to Arrays of String.
|
Object |
AbstractConverter.convertArrayToType(Class<?> type,
Object o)
Converts to an array of the specified type.
|
Object |
IConverter.convertArrayToType(Class<?> type,
Object o)
Requests conversion to Arrays of one of the types handled by the
IConverter . |
Collection<?> |
AbstractConverter.convertCollectionToString(Object o)
Converts a Collection to a String.
|
Collection<?> |
IConverter.convertCollectionToString(Object o)
Handles conversions of Collections of Objects to Collections of String.
|
Collection<?> |
AbstractConverter.convertCollectionToType(Class<?> type,
Object o)
Converts to a Collection of the specified type.
|
Collection<?> |
IConverter.convertCollectionToType(Class<?> type,
Object o)
Requests conversion to Collections of one of the types handled by the
IConverter . |
String |
AbstractConverter.convertToString(Object o)
Returns the
AbstractConverter.internalConvertToString(Object) result on provided Object, or null if object is null. |
String |
IConverter.convertToString(Object o)
Requests conversion to a String for the provided Object.
|
<T> T |
AbstractConverter.convertToType(Class<T> type,
Object o)
Converts the object to the specified type.
|
<T> T |
IConverter.convertToType(Class<T> type,
Object o)
Requests conversion to a one of the types handled by the
IConverter . |
protected String |
DateConverter.dateToString(Date d)
Converts a Date object to a String, using the preferred parsing pattern.
|
protected String |
PathConverter.internalConvertToString(Object value) |
protected String |
PatternConverter.internalConvertToString(Object value) |
protected String |
BooleanConverter.internalConvertToString(Object o) |
protected String |
DateConverter.internalConvertToString(Object o) |
protected String |
AbstractConverter.internalConvertToString(Object o)
Returns the default "toString" result on provided Object.
|
protected String |
NumberConverter.internalConvertToString(Object o) |
protected String |
ClassConverter.internalConvertToString(Object o) |
protected <T> T |
PathConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
PatternConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
BooleanConverter.internalConvertToType(Class<T> type,
Object o) |
protected <T> T |
DateConverter.internalConvertToType(Class<T> type,
Object o) |
protected abstract <T> T |
AbstractConverter.internalConvertToType(Class<T> type,
Object o)
Handles conversion to an handled type.
|
protected <T> T |
RounderConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
CollectionConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
CharacterConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
NumberConverter.internalConvertToType(Class<T> type,
Object o)
Convert the input object into a Number object of the
specified type of defaultType if Number.class is requested.
|
protected <T> T |
StringConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
EnumConverter.internalConvertToType(Class<T> type,
Object value) |
protected <T> T |
ClassConverter.internalConvertToType(Class<T> type,
Object value) |
Object |
AbstractConverter.stringConversion(Object o)
Chooses beetween
AbstractConverter.convertToString(Object) , AbstractConverter.convertArrayToString(Object) and AbstractConverter.convertCollectionToString(Object)
depending on the object type. |
Object |
IConverter.stringConversion(Object o)
Requests to choose between
IConverter.convertToString(Object) , IConverter.convertArrayToString(Object) depending on
provided Object type. |
Object |
BooleanConverter.typeConversion(Class<?> type,
Object o)
Overridden to handle primitive default values.
|
Object |
AbstractConverter.typeConversion(Class<?> type,
Object o)
Chooses beetween
AbstractConverter.convertToType(Class, Object) , AbstractConverter.convertArrayToType(Class, Object) and AbstractConverter.convertCollectionToType(Class, Object)
depending on the object type. |
Object |
IConverter.typeConversion(Class<?> type,
Object o)
Requests to choose between
IConverter.convertToType(Class, Object) , IConverter.convertArrayToType(Class, Object) depending on
provided Object type. |
Object |
CharacterConverter.typeConversion(Class<?> type,
Object o)
Overridden to handle primitive default values.
|
Object |
NumberConverter.typeConversion(Class<?> type,
Object o)
Overridden to handle primitive default values.
|
Constructor and Description |
---|
ConvertException(UtilsException e) |
Modifier and Type | Method and Description |
---|---|
protected String |
Jdk8DateTimeConverter.internalConvertToString(Object o) |
protected <T> T |
Jdk8DateTimeConverter.internalConvertToType(Class<T> type,
Object o) |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
InMemoryJavaCompiler.compile(String className,
String sourceCodeInText,
Iterable<String> options)
Launches Java Code compilation.
|
Modifier and Type | Class and Description |
---|---|
class |
PropertyException
Exception thrown by property access framework.
|
Modifier and Type | Method and Description |
---|---|
IProperty |
IPropertyCompiler.compile(String property)
Compiles a property into a compiled representation, with useCommonBeanUtilsSyntax to false.
|
IProperty |
PropertyCompiler.compile(String property) |
IProperty |
IPropertyCompiler.compile(String property,
boolean useCommonBeanUtilsSyntax)
Compiles a property into a compiled representation.
|
IProperty |
PropertyCompiler.compile(String property,
boolean useCommonBeanUtilsSyntax) |
IProperty |
PropertyCompiler.SecurePropertyCompiler.compile(String property,
boolean useCommonBeanUtilsSyntax) |
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.
|
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) |
Object |
IFieldAccessor.get(Object on)
get field value.
|
Object |
ReflectionFieldAccessor.get(Object on) |
static Object |
PropertyUtils.get(Object obj,
String property)
Gets property value.
|
<C> IProperty |
PropertyCompiler.IPropertyFactory.getConstantPropertyInstance(C value,
Class<C> clazz)
Provides
ConstantProperty implementation. |
<C> IProperty |
PropertyCompiler.DefaultPropertyFactory.getConstantPropertyInstance(C value,
Class<C> clazz)
Might be overridden to change
ConstantProperty implementation. |
<C> IProperty |
PropertyCompiler.SecuredPropertyFactory.getConstantPropertyInstance(C value,
Class<C> clazz)
Might be overridden to change
ConstantProperty implementation. |
Class<?> |
StaticMethodProperty.getDeclaringClass() |
Class<?> |
StaticFieldProperty.getDeclaringClass() |
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.getGenericCollectionType(Object source)
Tries to detect if the generic type of the property if the type is a Collection, whatever there is an argument or not.
|
Class<?> |
AbstractProperty.getGenericCollectionType(Object source) |
static Class<?> |
PropertyUtils.getGenericCollectionType(Object obj,
String property)
Returns the generic type if the property type is a collection, or null if it cannot be resolved
or if the property type is not a collection.
|
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.getGenericMapKeyType(Object source)
Tries to detect if the generic key type of the property if the type is a Map, whatever there is an argument or not.
|
Class<?> |
AbstractProperty.getGenericMapKeyType(Object 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.getGenericMapValueType(Object source)
Tries to detect if the generic value type of the property if the type is a Map, whatever there is an argument or not.
|
Class<?> |
AbstractProperty.getGenericMapValueType(Object 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) |
Class<?>[] |
IProperty.getGenericTypes(Object source)
Tries to detect if the parameterized types of the property, whatever its type is, whatever there is an argument or not.
|
Class<?>[] |
AbstractProperty.getGenericTypes(Object source) |
IProperty |
PropertyCompiler.IPropertyFactory.getIndexedPropertyInstance(IProperty property,
IProperty index)
Provides
IndexedProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getIndexedPropertyInstance(IProperty property,
IProperty index)
Might be overridden to change
IndexedProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getIndexedPropertyInstance(IProperty property,
IProperty index)
Might be overridden to change
IndexedProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getIndexedPropertyInstance(String property,
IProperty index)
Provides
IndexedProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getIndexedPropertyInstance(String property,
IProperty index)
Might be overridden to change
IndexedProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getIndexedPropertyInstance(String property,
IProperty index)
Might be overridden to change
IndexedProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getIntegerPropertyInstance(Integer value)
Provides
IntegerProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getIntegerPropertyInstance(Integer value)
Might be overridden to change
IntegerProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getIntegerPropertyInstance(Integer value)
Might be overridden to change
ConstantProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getMappedPropertyInstance(IProperty property,
IProperty key)
Provides
MappedProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getMappedPropertyInstance(IProperty property,
IProperty key)
Might be overridden to change
MappedProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getMappedPropertyInstance(IProperty property,
IProperty key)
Might be overridden to change
MappedProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getMappedPropertyInstance(String property,
IProperty key)
Provides
MappedProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getMappedPropertyInstance(String property,
IProperty key)
Might be overridden to change
MappedProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getMappedPropertyInstance(String property,
IProperty key)
Might be overridden to change
MappedProperty implementation. |
protected IMethodInvoker |
StaticMethodProperty.getMethod(IPropertySource source,
boolean mandatory) |
protected IMethodInvoker |
StrictMethodProperty.getMethod(IPropertySource source,
boolean mandatory) |
IProperty |
PropertyCompiler.IPropertyFactory.getNestedPropertyInstance(List<? extends IProperty> properties)
Provides
NestedProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getNestedPropertyInstance(List<? extends IProperty> properties)
Might be overridden to change
NestedProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getNestedPropertyInstance(List<? extends IProperty> properties)
Might be overridden to change
NestedProperty implementation. |
protected IMethodInvoker |
SimpleProperty.getReadMethod(IPropertySource source,
boolean mandatory) |
IProperty |
PropertyCompiler.IPropertyFactory.getSimplePropertyInstance(String property)
Provides
SimpleProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getSimplePropertyInstance(String property)
Might be overridden to change
SimpleProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getSimplePropertyInstance(String property)
Might be overridden to change
SimpleProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getStaticFieldPropertyInstance(String declaringClass,
String property)
Provides
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getStaticFieldPropertyInstance(String declaringClass,
String property)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getStaticFieldPropertyInstance(String declaringClass,
String property)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getStaticMethodPropertyInstance(String declaringClass,
String property,
IProperty... arguments)
Provides
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getStaticMethodPropertyInstance(String declaringClass,
String property,
IProperty... arguments)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getStaticMethodPropertyInstance(String declaringClass,
String property,
IProperty... arguments)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getStrictFieldPropertyInstance(String property)
Provides
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getStrictFieldPropertyInstance(String property)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getStrictFieldPropertyInstance(String property)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getStrictMethodPropertyInstance(String property,
IProperty... arguments)
Provides
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getStrictMethodPropertyInstance(String property,
IProperty... arguments)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getStrictMethodPropertyInstance(String property,
IProperty... arguments)
Might be overridden to change
StrictFieldProperty implementation. |
IProperty |
PropertyCompiler.IPropertyFactory.getStringPropertyInstance(String value)
Provides
StringProperty implementation. |
IProperty |
PropertyCompiler.DefaultPropertyFactory.getStringPropertyInstance(String value)
Might be overridden to change
StringProperty implementation. |
IProperty |
PropertyCompiler.SecuredPropertyFactory.getStringPropertyInstance(String value)
Might be overridden to change
ConstantProperty implementation. |
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) |
Class<?> |
IProperty.getType(Object source)
Tries to detect if the type of the property, whatever there is an argument or not.
|
Class<?> |
AbstractProperty.getType(Object source) |
static Class<?> |
PropertyUtils.getType(Object obj,
String property)
Gets property type if it can be resolved or null.
|
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.
|
protected PropertyCompiler.IPropertyComponent |
PropertyCompiler.handleGetterSetterComponent(PropertyCompiler.IPropertyComponent prevComponent,
String property,
boolean useCommonBeanUtilsSyntax) |
protected Object |
SimpleProperty.handleSetInTypedMap(TypedMap curTarget,
Object obj,
boolean forceUseProvidedObjectType)
Set an object to a typed map.
|
protected PropertyCompiler.IPropertyComponent |
PropertyCompiler.handleSimpleComponent(PropertyCompiler.IPropertyComponent prevComponent,
String property,
boolean useCommonBeanUtilsSyntax)
Handles a simple property component, i.e. a single element of the List provided
by
PropertyCompiler.splitIntoSimpleComponents(String) . |
protected PropertyCompiler.IPropertyComponent |
PropertyCompiler.handleStaticComponent(PropertyCompiler.IPropertyComponent prevComponent,
String property,
boolean useCommonBeanUtilsSyntax)
parses a static access property (field or method).
|
protected PropertyCompiler.IPropertyComponent |
PropertyCompiler.handleStrictComponent(PropertyCompiler.IPropertyComponent prevComponent,
String property,
boolean useCommonBeanUtilsSyntax)
parses a strict access property (field or method).
|
Object |
IMethodInvoker.invoke(IArrayProvider ap,
Object on)
Invoke with no arguments.
|
Object |
ReflectionMethodInvoker.invoke(IArrayProvider ap,
Object on) |
Object |
IMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object... arguments)
Invoke with arguments.
|
Object |
ReflectionMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object... arguments) |
Object |
IMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object arg)
Invoke with one argument.
|
Object |
ReflectionMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object arg) |
Object |
IMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object arg1,
Object arg2)
Invoke with two argument.
|
Object |
ReflectionMethodInvoker.invoke(IArrayProvider ap,
Object on,
Object arg1,
Object arg2) |
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.isReadable(Object source)
Tries to detect if the property will be able to be read in theory, whatever there is an argument or not.
|
boolean |
AbstractProperty.isReadable(Object source) |
static boolean |
PropertyUtils.isReadable(Object obj,
String property)
Tells if property can be read.
|
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) |
boolean |
IProperty.isWriteable(Object target)
Tries to detect if the property will be able to be written in theory, whatever there is an argument or not.
|
boolean |
AbstractProperty.isWriteable(Object source) |
static boolean |
PropertyUtils.isWriteable(Object obj,
String property)
Tells if property can be set.
|
protected Class<?> |
StaticMethodProperty.loadClass(String name) |
protected Class<?> |
StaticFieldProperty.loadClass(String name) |
static Object |
PropertyUtils.safeSet(Object obj,
String property,
Object value)
Calls
set after performing advanced cast, to handle
converting an object into a Collection of another type than the object's. |
IProperty |
IPropertyCompiler.secureCompile(String property)
Compiles a property into a compiled representation,
with useCommonBeanUtilsSyntax to false and checking against current default MRulesUtilsSecurityManager configuration
if the operations performed by the compiled property are allowed.
|
IProperty |
PropertyCompiler.secureCompile(String property) |
IProperty |
PropertyCompiler.SecurePropertyCompiler.secureCompile(String property) |
IProperty |
IPropertyCompiler.secureCompile(String property,
MRulesUtilsSecurityManager securityManager)
Compiles a property into a compiled representation,
with useCommonBeanUtilsSyntax to false and checking against provider MRulesUtilsSecurityManager configuration
if the operations performed by the compiled property are allowed.
|
IProperty |
PropertyCompiler.secureCompile(String property,
MRulesUtilsSecurityManager securityManager) |
IProperty |
PropertyCompiler.SecurePropertyCompiler.secureCompile(String property,
MRulesUtilsSecurityManager securityManager) |
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) |
void |
IFieldAccessor.set(Object on,
Object value)
set field value.
|
void |
ReflectionFieldAccessor.set(Object on,
Object value) |
static Object |
PropertyUtils.set(Object obj,
String property,
Object value)
Sets property value.
|
protected List<String> |
PropertyCompiler.splitIntoSimpleComponents(String property)
Splits the property into sub-components, splitting all "main" dots.
|
Constructor and Description |
---|
PropertyException(UtilsException e) |
Modifier and Type | Class and Description |
---|---|
class |
MRulesSecurityException
Exception thrown if an security problem is detected.
|
Constructor and Description |
---|
MRulesSecurityException(UtilsException e) |