Constructor and Description |
---|
FixedConstant(Object value)
Constructs a constant with a given value.
|
FixedConstant(Object value,
Class<?> clazz)
Constructs a constant with a given value and class.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getContentClass()
Returns a class of which this object's value will be an instance.
|
Object |
getValue()
Returns this object's value.
|
boolean |
requiresRowIndex()
Indicates whether evaluation of this constant needs to know the row
index.
|
public FixedConstant(Object value, Class<?> clazz)
clazz
- content classvalue
- valuepublic FixedConstant(Object value)
value
.value
- valuepublic Class<?> getContentClass()
Constant
getContentClass
in interface Constant
public Object getValue()
Constant
Constant.getContentClass()
(or null).public boolean requiresRowIndex()
Constant
Constant.getValue()
may result in a call to
StarTableJELRowReader.getCurrentRow()
,
this method must return true.requiresRowIndex
in interface Constant
Copyright © 2022 Central Laboratory of the Research Councils. All Rights Reserved.