org.directwebremoting.extend
Class NonNestedOutboundVariable

java.lang.Object
  extended by org.directwebremoting.extend.NonNestedOutboundVariable
All Implemented Interfaces:
OutboundVariable
Direct Known Subclasses:
ErrorOutboundVariable

public class NonNestedOutboundVariable
extends java.lang.Object
implements OutboundVariable

An OutboundVariable that we know to be unable to recurse

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
NonNestedOutboundVariable(java.lang.String assignCode)
          Create a new NonNestedOutboundVariable
 
Method Summary
 java.lang.String getAssignCode()
          A short script that can be used to refer to this variable
 java.lang.String getBuildCode()
          A script that completes the definition of this variable, and may contain reference to other declared variables.
 java.lang.String getDeclareCode()
          A script to declare the variable so it can be referred to.
 OutboundVariable getReferenceVariable()
          Get a reference to this OutboundVariable.
 void incrementReferenceCount()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonNestedOutboundVariable

public NonNestedOutboundVariable(java.lang.String assignCode)
Create a new NonNestedOutboundVariable

Method Detail

incrementReferenceCount

public void incrementReferenceCount()

getDeclareCode

public java.lang.String getDeclareCode()
Description copied from interface: OutboundVariable
A script to declare the variable so it can be referred to. This script is guaranteed not to refer to anything that can recurse

Specified by:
getDeclareCode in interface OutboundVariable
Returns:
Returns the declareCode

getBuildCode

public java.lang.String getBuildCode()
Description copied from interface: OutboundVariable
A script that completes the definition of this variable, and may contain reference to other declared variables.

Specified by:
getBuildCode in interface OutboundVariable
Returns:
Returns the buildCode.

getAssignCode

public java.lang.String getAssignCode()
Description copied from interface: OutboundVariable
A short script that can be used to refer to this variable

Specified by:
getAssignCode in interface OutboundVariable
Returns:
Returns the assignCode.

getReferenceVariable

public OutboundVariable getReferenceVariable()
Description copied from interface: OutboundVariable
Get a reference to this OutboundVariable. During step 1 of the conversion process where we turn the raw objects into OutboundVariables we may wish to refer to something that has already been converted. If this already is a reference then this method returns this, or if not it creates one that does.

Specified by:
getReferenceVariable in interface OutboundVariable
Returns:
An OutboundVariable that refers to this one.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright 2008