php.java.script
Class ResultProxy

java.lang.Object
  extended by java.lang.Number
      extended by php.java.script.ResultProxy
All Implemented Interfaces:
java.io.Serializable

public class ResultProxy
extends java.lang.Number

Returned by ScriptEngine.eval(java.io.Reader) this class holds a proxy for the result code returned by PHP. Invoke any of its procedures to terminate the script engine to receive its result code.

Author:
jostb
See Also:
Serialized Form

Method Summary
 void close()
          Release the script engine
 double doubleValue()
          Release the script engine and return the result code
 float floatValue()
          Release the script engine and return the result code
 int getResult()
          Release the script engine and return the result code
 int intValue()
          Release the script engine and return the result code
 long longValue()
          Release the script engine and return the result code
 java.lang.String toString()
          Release the script engine and return the result code
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getResult

public int getResult()
Release the script engine and return the result code

Returns:
the result code from PHP

toString

public java.lang.String toString()
Release the script engine and return the result code

Overrides:
toString in class java.lang.Object
Returns:
the result code from PHP

doubleValue

public double doubleValue()
Release the script engine and return the result code

Specified by:
doubleValue in class java.lang.Number
Returns:
the result code from PHP

floatValue

public float floatValue()
Release the script engine and return the result code

Specified by:
floatValue in class java.lang.Number
Returns:
the result code from PHP

intValue

public int intValue()
Release the script engine and return the result code

Specified by:
intValue in class java.lang.Number
Returns:
the result code from PHP

longValue

public long longValue()
Release the script engine and return the result code

Specified by:
longValue in class java.lang.Number
Returns:
the result code from PHP

close

public void close()
           throws java.io.IOException
Release the script engine

Throws:
java.io.IOException