|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.list.engine.valuecomputer.ValueComputer
public class ValueComputer
Every ValueTag will build a ValueComputer at page analysis, which it then retrieves and uses at page running
Field Summary | |
---|---|
(package private) String |
expr
The queryProjection expression |
(package private) MultipleKey |
parentKey
The key of the parentList |
(package private) int |
projectionIndex
The queryProjection index in the currentListData |
protected FieldDefinition |
type
The queryProjection type |
Constructor Summary | |
---|---|
ValueComputer()
|
|
ValueComputer(MultipleKey listKey,
String expr,
PageCache pageCache)
A special ValueComputer made by mak:lists who want to select extra expressions |
Method Summary | |
---|---|
void |
doEndAnalyze(PageCache pageCache)
Computes the queryProjection index in the currentListData, and the queryProjection type. |
String |
getFormattedValue(ValueTag running,
PageCache pageCache)
|
int |
getProjectionIndex()
|
(package private) MultipleKey |
getQueryKey()
The key of the query in which this value is a projection. |
FieldDefinition |
getType()
|
Object |
getValue(PageContext pc)
Gets the value of from the QueryExecution based on the projectionIndex |
static ValueComputer |
getValueComputerAtAnalysis(boolean isValue,
MultipleKey parentListKey,
String expr,
PageCache pageCache)
Determines if 'analyzed' is a queryMak:value or a nonQueryMak:value |
static boolean |
isPointer(PageCache pageCache,
MultipleKey parentListKey,
String expr)
|
void |
print(ValueTag running,
PageCache pageCache)
Formats the value of the queryProjection from the currentListData of the enclosing query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
MultipleKey parentKey
int projectionIndex
String expr
protected FieldDefinition type
Constructor Detail |
---|
ValueComputer()
ValueComputer(MultipleKey listKey, String expr, PageCache pageCache)
listKey
- the key of the listparentListKey
- the key of the parent listexpr
- the extra expressionpageCache
- the page cacheMethod Detail |
---|
public static ValueComputer getValueComputerAtAnalysis(boolean isValue, MultipleKey parentListKey, String expr, PageCache pageCache)
isValue
- whether this value computer is called from a value evaluator (mak:value expr, EL Value)parentListKey
- the key of the parent listexpr
- the expression passed in the tagpageCache
- the page cache of the pageMultipleKey getQueryKey()
public void doEndAnalyze(PageCache pageCache)
pageCache
- the page cachepublic Object getValue(PageContext pc) throws LogicException
pc
- the page context
LogicException
public void print(ValueTag running, PageCache pageCache) throws JspException, LogicException
running
- the tag that is currently runningpageCache
- the page cache of the current page
JspException
LogicException
public String getFormattedValue(ValueTag running, PageCache pageCache) throws JspException, LogicException
JspException
LogicException
public FieldDefinition getType()
public int getProjectionIndex()
public static boolean isPointer(PageCache pageCache, MultipleKey parentListKey, String expr)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |