| Modifier and Type | Field and Description |
|---|---|
protected String |
m_currentPattern
The current pattern string, for diagnostics purposes
|
static int |
MAPINDEX_LENGTH
The length is always the opcode position + 1.
|
| Constructor and Description |
|---|
OpMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(String msg,
Object[] args)
Tell the user of an error, and probably throw an exception.
|
int |
getArgLengthOfStep(int opPos)
Given a location step, get the length of that step.
|
static int |
getFirstChildPos(int opPos)
Go to the first child of a given operation.
|
static int |
getFirstChildPosOfStep(int opPos)
Get the first child position of a given location step.
|
int |
getFirstPredicateOpPos(int opPos)
Given an FROM_stepType position, return the position of the first predicate, if there is one,
or else this will point to the end of the FROM_stepType.
|
int |
getNextOpPos(int opPos)
Given an operation position, return the end position, i.e. the beginning of the next operation.
|
int |
getNextStepPos(int opPos)
Given a location step position, return the end position, i.e. the beginning of the next step.
|
int |
getOp(int opPos)
Given an operation position, return the current op.
|
String |
getPatternString()
Return the expression as a string for diagnostics.
|
String |
getStepLocalName(int opPosOfStep)
Get the local name of the step.
|
String |
getStepNS(int opPosOfStep)
Get the namespace of the step.
|
int |
getStepTestType(int opPosOfStep)
Get the test type of the step, i.e.
|
ArrayList<Object> |
getTokenQueue()
Get the XPath as a list of tokens.
|
int |
getTokenQueueSize()
Get size of the token queue.
|
void |
setOp(int opPos,
int value)
Set the op at index to the given int.
|
String |
toString() |
protected String m_currentPattern
public static final int MAPINDEX_LENGTH
public String getPatternString()
public ArrayList<Object> getTokenQueue()
public int getTokenQueueSize()
public int getOp(int opPos)
opPos - index into op map.public void setOp(int opPos,
int value)
opPos - index into op map.value - Value to setpublic int getNextOpPos(int opPos)
opPos - An op position of an operation for which there is a size entry following.public int getNextStepPos(int opPos)
opPos - the position of a location step.public int getFirstPredicateOpPos(int opPos)
throws TransformerException
opPos - position of FROM_stepType op.TransformerExceptionpublic void error(String msg, Object[] args) throws TransformerException
msg - An error msgkey that corresponds to one of the constants found in XPATHErrorResources, which is a key for a format string.args - An array of arguments represented in the format string, which may be null.TransformerException - if the current ErrorListoner determines to throw an exception.public static int getFirstChildPos(int opPos)
opPos - position of operation.public int getArgLengthOfStep(int opPos)
opPos - Position of location step in op map.public static int getFirstChildPosOfStep(int opPos)
opPos - Position of location step in the location map.public int getStepTestType(int opPosOfStep)
opPosOfStep - The position of the FROM_XXX step.public String getStepNS(int opPosOfStep)
opPosOfStep - The position of the FROM_XXX step.public String getStepLocalName(int opPosOfStep)
opPosOfStep - The position of the FROM_XXX step.Copyright © 2022–2025 HtmlUnit. All rights reserved.