Package org.openl.rules.constants
Class ConstantOpenField
- java.lang.Object
-
- org.openl.types.impl.AOpenField
-
- org.openl.rules.constants.ConstantOpenField
-
- All Implemented Interfaces:
INamedThing,IOpenField,IOpenMember
- Direct Known Subclasses:
ConstantOpenFieldWrapper
public class ConstantOpenField extends AOpenField
-
-
Field Summary
-
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, REGULAR, SHORT
-
-
Constructor Summary
Constructors Constructor Description ConstantOpenField()ConstantOpenField(String name, Object value, String valueAsString, IOpenClass type, ModuleOpenClass declaringClass, IMemberMetaInfo memberMetaInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object target, IRuntimeEnv env)IOpenClassgetDeclaringClass()IMemberMetaInfogetMemberMetaInfo()ObjectgetValue()StringgetValueAsString()booleanisConst()booleanisWritable()voidset(Object target, Object value, IRuntimeEnv env)voidsetMemberMetaInfo(IMemberMetaInfo memberMetaInfo)-
Methods inherited from class org.openl.types.impl.AOpenField
getDisplayName, getInfo, getName, getType, isReadable, isStatic, setType, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.types.IOpenField
getContextProperty, isContextProperty, isTransient
-
-
-
-
Constructor Detail
-
ConstantOpenField
public ConstantOpenField()
-
ConstantOpenField
public ConstantOpenField(String name, Object value, String valueAsString, IOpenClass type, ModuleOpenClass declaringClass, IMemberMetaInfo memberMetaInfo)
-
-
Method Detail
-
getValueAsString
public String getValueAsString()
-
getDeclaringClass
public IOpenClass getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceIOpenMember- Overrides:
getDeclaringClassin classAOpenField
-
get
public Object get(Object target, IRuntimeEnv env)
-
getValue
public Object getValue()
-
isWritable
public boolean isWritable()
- Specified by:
isWritablein interfaceIOpenField- Overrides:
isWritablein classAOpenField
-
getMemberMetaInfo
public IMemberMetaInfo getMemberMetaInfo()
-
setMemberMetaInfo
public void setMemberMetaInfo(IMemberMetaInfo memberMetaInfo)
-
isConst
public boolean isConst()
- Specified by:
isConstin interfaceIOpenField- Overrides:
isConstin classAOpenField
-
set
public void set(Object target, Object value, IRuntimeEnv env)
-
-