Constructor and Description |
---|
Builder(IOXPathNodeList iContext)
Signature for building new PAATState object based on minimal constructor; meant for first call when no AFP state,
output is yet recorded.
|
Builder(IOXPathNodeList iContext,
Node iAFP,
Node iAFPE,
boolean iIsAFP,
int iPosition,
int iLast,
boolean iProtect,
int numHigher,
int currAction)
Signature for building verbose new PAATState object (we don't make defensive copies of the context set for
performance reasons, so be aware)
|
Builder(OXPathContextNode iContext)
Signature for building new PAATState object based on minimal constructor; meant for first call when no AFP state,
output is yet recorded
|
Builder(OXPathContextNode iContext,
Node iAFP,
Node iAFPE,
boolean iIsAFP,
int iPosition,
int iLast,
boolean iProtect)
Signature for building verbose new PAATState object
|
Builder(PAATState state)
Signature for building new PAATState object copying state from existing object (we don't make defensive copies of
input objects for performance reasons, so be aware)
|
Modifier and Type | Method and Description |
---|---|
PAATState |
build()
Returns new
PAATState object parameterized by the builder; only means of producing PAATState
objects outside the PAATState class |
PAATStateEvalIterative |
buildNode()
Returns new
PAATStateEvalIterative object parameterized by the builder; only means of producing
PAATStateEvalIterative objects outside the PAATState class |
PAATStateEvalSet |
buildSet()
Returns new
PAATStateEvalSet object parameterized by the builder; only means of producing
PAATStateEvalSet objects outside the PAATState class |
PAATState.Builder |
setActionFreePrefix(Object n)
Sets the action free prefix of current context
|
PAATState.Builder |
setActionFreePrefixEnd(Node n)
Sets the end of the action free prefix of current context
|
PAATState.Builder |
setContextNode(OXPathContextNode o)
Sets context at state
|
PAATState.Builder |
setContextSet(IOXPathNodeList o)
Sets context at state (we don't make a defensive copy for performance reasons, so be aware)
|
PAATState.Builder |
setContextSet(OXPathContextNode c) |
PAATState.Builder |
setCurrentAction(int currAction)
Set the current action
|
PAATState.Builder |
setDocumentProtect(boolean prot)
Sets the protection of the document in recursive calls of the
eval() method |
PAATState.Builder |
setIsActionFreeNavigation(boolean b)
Sets if current navigation is action-free (i.e.
|
PAATState.Builder |
setLast(int iLast)
Sets the last position of evaluated "parent" context within filter expression
|
PAATState.Builder |
setNodePositionInNodeSetUnderEvaluation(int pos) |
PAATState.Builder |
setNumKleeneStarIterations(int numHigher)
Set the number of Kleene Star Iterations for inner actions
|
PAATState.Builder |
setPosition(int iPosition)
Sets current position of evaluated "parent" context within for filter for position function
|
public Builder(OXPathContextNode iContext)
iContext
- contextpublic Builder(IOXPathNodeList iContext)
iContext
- contextpublic Builder(OXPathContextNode iContext, Node iAFP, Node iAFPE, boolean iIsAFP, int iPosition, int iLast, boolean iProtect)
iContext
- contextiAFP
- action free prefix position in ASTiAFPE
- action free prefix end position in ASTiIsAFP
- determines if current navigation is by Action Free PrefixiPosition
- position in parent contextiLast
- last position in parent contextiProtect
- determines if the document containing context
is protected or notpublic Builder(IOXPathNodeList iContext, Node iAFP, Node iAFPE, boolean iIsAFP, int iPosition, int iLast, boolean iProtect, int numHigher, int currAction)
iContext
- contextiAFP
- action free prefix position in ASTiAFPE
- action free prefix end position in ASTiIsAFP
- determines if current navigation is by Action Free PrefixiPosition
- position in parent contextiLast
- last position in parent contextiProtect
- determines if the document containing context
is protected or notnumHigher
- number of Kleene star iterations to perform by inner actions (only applicable to final inner action
inside each Kleene star)currAction
- the id of the current actionpublic Builder(PAATState state)
state
- state whose content is copiedpublic PAATState.Builder setDocumentProtect(boolean prot)
eval()
methodprot
- true
to protect the page, false
to remove protectionprot
public PAATState.Builder setContextNode(OXPathContextNode o)
o
- context nodepublic PAATState.Builder setContextSet(IOXPathNodeList o)
o
- context setpublic PAATState.Builder setContextSet(OXPathContextNode c)
public PAATState.Builder setActionFreePrefix(Object n)
n
- the action free prefix of current contextpublic PAATState.Builder setActionFreePrefixEnd(Node n)
n
- the end of the action free prefix of current contextpublic PAATState.Builder setIsActionFreeNavigation(boolean b)
b
- if current navigation is action-free (i.e. retracing)public PAATState.Builder setPosition(int iPosition)
iPosition
- current position of evaluated "parent" context within for filter for position functionpublic PAATState.Builder setLast(int iLast)
iLast
- last position of evaluated "parent" context within filter expressionpublic PAATState.Builder setNumKleeneStarIterations(int numHigher)
numHigher
- num of of Kleene Star iterationspublic PAATState.Builder setCurrentAction(int currAction)
currAction
- the id of the current actionpublic PAATState.Builder setNodePositionInNodeSetUnderEvaluation(int pos)
public PAATState build()
PAATState
object parameterized by the builder; only means of producing PAATState
objects outside the PAATState
classPAATState
object parameterized by the builderpublic PAATStateEvalIterative buildNode()
PAATStateEvalIterative
object parameterized by the builder; only means of producing
PAATStateEvalIterative
objects outside the PAATState
classPAATStateEvalIterative
object parameterized by the builderpublic PAATStateEvalSet buildSet()
PAATStateEvalSet
object parameterized by the builder; only means of producing
PAATStateEvalSet
objects outside the PAATState
classPAATStateEvalSet
object parameterized by the builderCopyright © 2020 OXPath Team. All rights reserved.