org.directwebremoting.ui
Class CodeBlock

java.lang.Object
  extended by org.directwebremoting.ui.CodeBlock

public class CodeBlock
extends java.lang.Object

A simple wrapper around a String to indicate that this string is executable Javascript and should not be quoted and escaped when it is passed to the client.

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

Constructor Summary
CodeBlock(java.lang.String code)
          CodeBlocks are immutable wrappers around strings
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCode()
          Accessor for the (read-only) code block
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeBlock

public CodeBlock(java.lang.String code)
CodeBlocks are immutable wrappers around strings

Parameters:
code - The javascript code block to send to the client
Method Detail

getCode

public java.lang.String getCode()
Accessor for the (read-only) code block

Returns:
The code that this block wraps

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Copyright 2008