Package org.eclipse.wst.xsl.debugger


org.eclipse.wst.xsl.debugger
Class Variable



public class Variable
extends java.lang.Object
An abstract class that XSL processor implementations can subclass for their variables.


Field Summary

protected static java.lang.StringBOOLEAN
    
public static java.lang.StringGLOBAL_SCOPE
     The constant denoting a global scope variable.
public static java.lang.StringLOCAL_SCOPE
     The constant denoting a local scope variable.
protected static intMAXIMUM_VALUE_SIZE
    
protected java.lang.Stringname
    
protected static java.lang.StringNODESET
    
protected static java.lang.StringNUMBER
    
protected static java.lang.StringOBJECT
    
protected java.lang.Stringscope
    
protected intslotNumber
    
protected static java.lang.StringSTRING
    
public static java.lang.StringTUNNEL_SCOPE
     The constant denoting a tunnel scope variable.
protected static java.lang.StringUNKNOWN
    
protected static java.lang.StringUNRESOLVED
    

Constructor Summary

Variable(java.lang.String name , java.lang.String scope , int slotNumber)

Method Summary

public booleanequals(java.lang.Object obj)
    
public intgetId()
     Get the id used for this.
public java.lang.StringgetName()
     Get the variable name.
public java.lang.StringgetScope()
     Get the scope of this variable - one of LOCAL_SCOPE, TUNNEL_SCOPE or GLOBAL_SCOPE.
public intgetSlotNumber()
     Get the slot number for this.
public java.lang.StringgetType()
     Get the type of this variable e.g. string, or node
public java.lang.StringgetValue()
     Get the current value of this variable as a String.
public java.lang.StringgetValueFirstLine()
     Get the first line of the value truncating to MAXIMUM_VALUE_SIZE where necessary.
public inthashCode()
    

Field Detail

BOOLEAN

protected static java.lang.String BOOLEAN


GLOBAL_SCOPE

public static java.lang.String GLOBAL_SCOPE

The constant denoting a global scope variable.

LOCAL_SCOPE

public static java.lang.String LOCAL_SCOPE

The constant denoting a local scope variable.

MAXIMUM_VALUE_SIZE

protected static int MAXIMUM_VALUE_SIZE


name

protected java.lang.String name


NODESET

protected static java.lang.String NODESET


NUMBER

protected static java.lang.String NUMBER


OBJECT

protected static java.lang.String OBJECT


scope

protected java.lang.String scope


slotNumber

protected int slotNumber


STRING

protected static java.lang.String STRING


TUNNEL_SCOPE

public static java.lang.String TUNNEL_SCOPE

The constant denoting a tunnel scope variable.

UNKNOWN

protected static java.lang.String UNKNOWN


UNRESOLVED

protected static java.lang.String UNRESOLVED


Constructor Detail

Variable

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

equals

public boolean equals(java.lang.Object obj)

Parameters

obj

Returns

boolean


getId

public int getId()

Get the id used for this.

Returns

int - the variable id


getName

public java.lang.String getName()

Get the variable name.

Returns

java.lang.String - the variable name


getScope

public java.lang.String getScope()

Get the scope of this variable - one of LOCAL_SCOPE, TUNNEL_SCOPE or GLOBAL_SCOPE.

Returns

java.lang.String - the variable scope


getSlotNumber

public int getSlotNumber()

Get the slot number for this.

Returns

int - the slot number


getType

public java.lang.String getType()

Get the type of this variable e.g. string, or node

Returns

java.lang.String - the variable type


getValue

public java.lang.String getValue()

Get the current value of this variable as a String.

Returns

java.lang.String - the value of this


getValueFirstLine

public java.lang.String getValueFirstLine()

Get the first line of the value truncating to MAXIMUM_VALUE_SIZE where necessary.

Returns

java.lang.String - the first line of the value


hashCode

public int hashCode()

Returns

int