net.sf.saxon.expr
Class RoleLocator

java.lang.Object
  |
  +--net.sf.saxon.expr.RoleLocator
All Implemented Interfaces:
java.io.Serializable

public class RoleLocator
extends java.lang.Object
implements java.io.Serializable

A RoleLocator identifies the role in which an expression is used, for example as the third argument of the concat() function. This information is stored in an ItemChecker or CardinalityChecker so that good diagnostics can be achieved when run-time type errors are detected.

See Also:
Serialized Form

Field Summary
static int BINARY_EXPR
           
protected  java.lang.String container
           
static int FUNCTION
           
static int FUNCTION_RESULT
           
static int INSTRUCTION
           
protected  int kind
           
protected  int operand
           
static int ORDER_BY
           
static int TYPE_OP
           
static int VARIABLE
           
 
Constructor Summary
RoleLocator(int kind, java.lang.String container, int operand)
           
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kind

protected int kind

container

protected java.lang.String container

operand

protected int operand

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

BINARY_EXPR

public static final int BINARY_EXPR
See Also:
Constant Field Values

TYPE_OP

public static final int TYPE_OP
See Also:
Constant Field Values

VARIABLE

public static final int VARIABLE
See Also:
Constant Field Values

INSTRUCTION

public static final int INSTRUCTION
See Also:
Constant Field Values

FUNCTION_RESULT

public static final int FUNCTION_RESULT
See Also:
Constant Field Values

ORDER_BY

public static final int ORDER_BY
See Also:
Constant Field Values
Constructor Detail

RoleLocator

public RoleLocator(int kind,
                   java.lang.String container,
                   int operand)
Method Detail

getMessage

public java.lang.String getMessage()