org.mvel2.integration.impl
Class StaticMethodImportResolverFactory
java.lang.Object
org.mvel2.integration.impl.BaseVariableResolverFactory
org.mvel2.integration.impl.StaticMethodImportResolverFactory
- All Implemented Interfaces:
- Serializable, VariableResolverFactory
public class StaticMethodImportResolverFactory
- extends BaseVariableResolverFactory
- Author:
- Christopher Brock
- See Also:
- Serialized Form
Methods inherited from class org.mvel2.integration.impl.BaseVariableResolverFactory |
appendFactory, createIndexedVariable, createIndexedVariable, getIndexedVariableNames, getIndexedVariableResolver, getKnownVariables, getNextFactory, getVariableResolver, getVariableResolvers, insertFactory, isIndexedFactory, isNextResolveable, setIndexedVariableNames, setIndexedVariableResolver, setNextFactory, setVariableResolvers, variableIndexOf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticMethodImportResolverFactory
public StaticMethodImportResolverFactory(ParserContext ctx)
StaticMethodImportResolverFactory
public StaticMethodImportResolverFactory()
createVariable
public VariableResolver createVariable(String name,
Object value)
- Description copied from interface:
VariableResolverFactory
- Creates a new variable. This probably doesn't need to be implemented in most scenarios. This is
used for variable assignment.
- Parameters:
name
- - name of the variable being createdvalue
- - value of the variable
- Returns:
- instance of the variable resolver associated with the variable
createVariable
public VariableResolver createVariable(String name,
Object value,
Class<?> type)
- Description copied from interface:
VariableResolverFactory
- Creates a new variable, and assigns a static type. It is expected the underlying factory and resolver
will enforce this.
- Parameters:
name
- - name of the variable being createdvalue
- - value of the variabletype
- - the static type
- Returns:
- instance of the variable resolver associated with the variable
isTarget
public boolean isTarget(String name)
- Description copied from interface:
VariableResolverFactory
- Deterimines whether or not the current VariableResolverFactory is the physical target for the actual
variable.
- Parameters:
name
- - variable name
- Returns:
- - boolean indicating whether or not factory is the physical target
isResolveable
public boolean isResolveable(String name)
- Description copied from interface:
VariableResolverFactory
- Determines whether or not the variable is resolver in the chain of factories.
- Parameters:
name
- - variable name
- Returns:
- - boolean
getImportedMethods
public Map<String,Method> getImportedMethods()
Copyright © 2011. All Rights Reserved.