public abstract class Expression extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
id
Only doc scope expression have this filed set.
|
DataType |
resultType |
protected int |
scope |
boolean |
storeResult
tells whether Event should store the result of this expression
Note: this is used only for doc scope expression
|
protected String |
xpath
only user given have xpath set.
|
| Constructor and Description |
|---|
Expression(int scope,
DataType resultType) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
getResult()
This method is called only glocal scope expression
|
abstract Object |
getResult(Event event)
This method is called only non-glocal scope expression.
|
String |
getXPath() |
int |
scope() |
void |
setXPath(String xpath) |
Expression |
simplify()
returns simplified expression which peforms better.
|
public int id
public final DataType resultType
protected int scope
public boolean storeResult
protected String xpath
public Expression(int scope,
DataType resultType)
public final int scope()
Scopepublic abstract Object getResult()
public abstract Object getResult(Event event)
public Expression simplify()
public final void setXPath(String xpath)
public final String getXPath()
Copyright © 2021. All rights reserved.