java.io.Serializable
public class RoleLocator
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
static int |
BINARY_EXPR |
|
static int |
FUNCTION |
|
static int |
FUNCTION_RESULT |
|
static int |
INSTRUCTION |
|
static int |
ORDER_BY |
|
static int |
PARAM |
|
static int |
TEMPLATE_RESULT |
|
static int |
TYPE_OP |
|
static int |
VARIABLE |
Constructor | Description |
---|---|
RoleLocator(int kind,
java.lang.Object container,
int operand,
NamePool namePool) |
Create information about the role of a subexpression within its parent expression
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
composeErrorMessage(ItemType requiredItemType,
ItemType suppliedItemType,
NamePool pool) |
Construct a full error message
|
java.lang.String |
getErrorCode() |
Get the error code to be produced if a type error is detected
|
java.lang.String |
getMessage() |
Construct and return the error message indicating a type error
|
javax.xml.transform.SourceLocator |
getSourceLocator() |
Get the source location (if known - return null if not known)
|
void |
setErrorCode(java.lang.String code) |
Set the error code to be produced if a type error is detected
|
void |
setSourceLocator(javax.xml.transform.SourceLocator locator) |
Set the source location
|
public static final int FUNCTION
public static final int BINARY_EXPR
public static final int TYPE_OP
public static final int VARIABLE
public static final int INSTRUCTION
public static final int FUNCTION_RESULT
public static final int ORDER_BY
public static final int TEMPLATE_RESULT
public static final int PARAM
public RoleLocator(int kind, java.lang.Object container, int operand, NamePool namePool)
kind
- the kind of parent expression, e.g. a function call or a variable referencecontainer
- the name of the object in the parent expression, e.g. a function name or
instruction name. May be expressed either as a String or as an Integer nameCode in the name pool.operand
- Ordinal position of this subexpression, e.g. the position of an argument innamePool
- The name pool. Must be supplied if the second argument is an Integer namecode.
Otherwise, may be null.public void setErrorCode(java.lang.String code)
code
- The error codepublic java.lang.String getErrorCode()
public void setSourceLocator(javax.xml.transform.SourceLocator locator)
public javax.xml.transform.SourceLocator getSourceLocator()
public java.lang.String getMessage()