Package org.eclipse.wst.xsl.debugger
public class Variable extends java.lang.ObjectAn abstract class that XSL processor implementations can subclass for their variables.
Field Summary | |
protected static java.lang.String | BOOLEAN |
public static java.lang.String | GLOBAL_SCOPEThe constant denoting a global scope variable. |
public static java.lang.String | LOCAL_SCOPEThe constant denoting a local scope variable. |
protected static int | MAXIMUM_VALUE_SIZE |
protected java.lang.String | name |
protected static java.lang.String | NODESET |
protected static java.lang.String | NUMBER |
protected static java.lang.String | OBJECT |
protected java.lang.String | scope |
protected int | slotNumber |
protected static java.lang.String | STRING |
public static java.lang.String | TUNNEL_SCOPEThe constant denoting a tunnel scope variable. |
protected static java.lang.String | UNKNOWN |
protected static java.lang.String | UNRESOLVED |
Constructor Summary |
Variable(java.lang.String name
,
java.lang.String scope
,
int slotNumber) |
Method Summary | |
public boolean | equals(java.lang.Object obj) |
public int | getId()Get the id used for this. |
public java.lang.String | getName()Get the variable name. |
public java.lang.String | getScope()Get the scope of this variable - one of LOCAL_SCOPE, TUNNEL_SCOPE or GLOBAL_SCOPE. |
public int | getSlotNumber()Get the slot number for this. |
public java.lang.String | getType()Get the type of this variable e.g. string, or node |
public java.lang.String | getValue()Get the current value of this variable as a String. |
public java.lang.String | getValueFirstLine()Get the first line of the value truncating to MAXIMUM_VALUE_SIZE where necessary. |
public int | hashCode() |
Field Detail |
protected static java.lang.String BOOLEAN
public static java.lang.String GLOBAL_SCOPE
| The constant denoting a global scope variable. |
public static java.lang.String LOCAL_SCOPE
| The constant denoting a local scope variable. |
protected static int MAXIMUM_VALUE_SIZE
protected java.lang.String name
protected static java.lang.String NODESET
protected static java.lang.String NUMBER
protected static java.lang.String OBJECT
protected java.lang.String scope
protected int slotNumber
protected static java.lang.String STRING
public static java.lang.String TUNNEL_SCOPE
| The constant denoting a tunnel scope variable. |
protected static java.lang.String UNKNOWN
protected static java.lang.String UNRESOLVED
Constructor Detail |
public Variable(java.lang.String name
,
java.lang.String scope
,
int slotNumber)
Create a new instance of this with the given name, scope and slot number.
Methods Detail |
public boolean equals(java.lang.Object obj)
obj
boolean
public int getId()
Get the id used for this.
int - the variable id
public java.lang.String getName()
Get the variable name.
java.lang.String - the variable name
public java.lang.String getScope()
Get the scope of this variable - one of LOCAL_SCOPE, TUNNEL_SCOPE or GLOBAL_SCOPE.
java.lang.String - the variable scope
public int getSlotNumber()
Get the slot number for this.
int - the slot number
public java.lang.String getType()
Get the type of this variable e.g. string, or node
java.lang.String - the variable type
public java.lang.String getValue()
Get the current value of this variable as a String.
java.lang.String - the value of this
public java.lang.String getValueFirstLine()
Get the first line of the value truncating to MAXIMUM_VALUE_SIZE where necessary.
java.lang.String - the first line of the value
public int hashCode()
int