Java Doc for Value.java in  » Scripting » oscript-2.10.4 » oscript » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » oscript 2.10.4 » oscript.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   oscript.data.Value

All known Subclasses:   oscript.data.Scope,  oscript.data.JavaObjectWrapper,  oscript.data.JavaMethodWrapper,  oscript.data.ComMethod,  oscript.data.XmlRpcMethod,  oscript.data.OSpecial,  oscript.data.Reference,  oscript.data.AbstractReference,  oscript.data.Type,  oscript.data.Debugger,  oscript.data.OObject,
Value
abstract public class Value implements java.io.Serializable(Code)
The base class of all values in the interpreter. This class provides methods (which throw script-exceptions if not overloaded), so that the interpreter has a handy way of calling the methods needed to evaluate a program. This methods can be overloaded by built-in (ie native java) methods for the built-in types, or via ScriptObject for script types.
author:
   Rob Clark (rob@ti.com)


Field Summary
final public static  booleanDEBUG
    
final public static  String[]MEMBER_NAMES
    
final public static  ValueNULL
    
final public static  StringPARENT_TYPE_NAME
    
final public static  BuiltinTypeTYPE
     The type object for an instance of Value...
final public static  StringTYPE_NAME
    
final public static  ValueUNDEFINED
     Various and asundry special values.

Constructor Summary
public  Value()
     Class Constructor.

Method Summary
public static  Value_getTypeMember(Value type, Value obj, int id)
    
public static  void_populateTypeMemberSet(Value type, java.util.Set s, boolean d)
    
public  ValuebopBitwiseAnd(Value val)
     Perform the bitwise AND operation.
public  ValuebopBitwiseAndR(Value val, PackagedScriptObjectException e)
    
public  ValuebopBitwiseOr(Value val)
     Perform the bitwise OR operation.
public  ValuebopBitwiseOrR(Value val, PackagedScriptObjectException e)
    
public  ValuebopBitwiseXor(Value val)
     Perform the bitwise XOR operation.
public  ValuebopBitwiseXorR(Value val, PackagedScriptObjectException e)
    
public  ValuebopCast(Value val)
    
public  ValuebopCastR(Value val, PackagedScriptObjectException e)
    
public  ValuebopDivide(Value val)
     Perform the "/" operation.
public  ValuebopDivideR(Value val, PackagedScriptObjectException e)
    
public  ValuebopEquals(Value val)
     Perform the "==" operation.
public  ValuebopEqualsR(Value val, PackagedScriptObjectException e)
    
public  ValuebopGreaterThan(Value val)
     Perform the ">" operation.
public  ValuebopGreaterThanOrEquals(Value val)
     Perform the ">=" operation.
public  ValuebopGreaterThanOrEqualsR(Value val, PackagedScriptObjectException e)
    
public  ValuebopGreaterThanR(Value val, PackagedScriptObjectException e)
    
public  ValuebopInstanceOf(Value val)
     Perform the instanceof operation.
public  ValuebopInstanceOfR(Value val, PackagedScriptObjectException e)
    
public  ValuebopLeftShift(Value val)
     Perform the "<<" operation.
public  ValuebopLeftShiftR(Value val, PackagedScriptObjectException e)
    
public  ValuebopLessThan(Value val)
     Perform the "<" operation.
public  ValuebopLessThanOrEquals(Value val)
     Perform the "<=" operation.
public  ValuebopLessThanOrEqualsR(Value val, PackagedScriptObjectException e)
    
public  ValuebopLessThanR(Value val, PackagedScriptObjectException e)
    
public  ValuebopLogicalAnd(Value val)
     Perform the logical AND operation.
public  ValuebopLogicalAndR(Value val, PackagedScriptObjectException e)
    
public  ValuebopLogicalOr(Value val)
     Perform the logical OR operation.
public  ValuebopLogicalOrR(Value val, PackagedScriptObjectException e)
    
public  ValuebopMinus(Value val)
     Perform the "-" operation.
public  ValuebopMinusR(Value val, PackagedScriptObjectException e)
    
public  ValuebopMultiply(Value val)
     Perform the "*" operation.
public  ValuebopMultiplyR(Value val, PackagedScriptObjectException e)
    
public  ValuebopNotEquals(Value val)
     Perform the "!=" operation.
public  ValuebopNotEqualsR(Value val, PackagedScriptObjectException e)
    
public  ValuebopPlus(Value val)
     Perform the "+" operation.
public  ValuebopPlusR(Value val, PackagedScriptObjectException e)
    
public  ValuebopRemainder(Value val)
     Perform the "%" operation.
public  ValuebopRemainderR(Value val, PackagedScriptObjectException e)
    
public  ValuebopSignedRightShift(Value val)
     Perform the ">>" operation.
public  ValuebopSignedRightShiftR(Value val, PackagedScriptObjectException e)
    
public  ValuebopUnsignedRightShift(Value val)
     Perform the ">>>" operation.
public  ValuebopUnsignedRightShiftR(Value val, PackagedScriptObjectException e)
    
public  ValuecallAsConstructor(StackFrame sf, MemberTable args)
     Call this object as a constructor.
final public  ValuecallAsConstructor(Value[] args)
    
final public  ValuecallAsConstructor(StackFrame sf, Value[] args)
    
public  ValuecallAsExtends(StackFrame sf, Scope scope, MemberTable args)
     Call this object as a parent class constructor.
final public  ValuecallAsExtends(Scope scope, MemberTable args)
    
final public  ValuecallAsExtends(StackFrame sf, Scope scope, Value[] args)
    
public  ValuecallAsFunction(StackFrame sf, MemberTable args)
     Call this object as a function.
final public  ValuecallAsFunction(Value[] args)
    
final public  ValuecallAsFunction(StackFrame sf, Value[] args)
    
public  booleancastToBoolean()
     Convert this object to a native java boolean value.
public  longcastToExactNumber()
     Convert this object to a native java long value.
public  doublecastToInexactNumber()
     Convert this object to a native java double value.
public  ObjectcastToJavaObject()
     Convert this object to a native java Object value.
public  StringcastToString()
     Convert this object to a native java String value.
public  ValueelementAt(Value idx)
     Get the specified index of this object, if this object is an array.
public  ValueelementsAt(Value idx1, Value idx2)
     Get the specified range of this object, if this object is an array.
final public  ValuegetMember(String name)
     Get a member of this object.
public  ValuegetMember(Value name)
     Get a member of this object.
final public  ValuegetMember(int id)
     Get a member of this object.
final public  ValuegetMember(String name, boolean exception)
     This isn't really part of the public interface, but is provided for the generated wrapper classes.
final public  ValuegetMember(Value name, boolean exception)
    
public  ValuegetMember(int id, boolean exception)
    
public  ObjectgetMonitor()
     Return the object used for implementing synchronized.
public  ValuegetType()
     Get the type of this object.
abstract protected  ValuegetTypeImpl()
     Get the type of this object.
protected  ValuegetTypeMember(Value obj, int id)
     Get a member of this type.
final protected  ValuegetTypeMember(Value obj, Value name)
    
public  booleanisA(Value type)
     If this object is a type, determine if an instance of this type is an instance of the specified type, ie.
public  intlength()
     For types that implement elementAt, this returns the number of elements.
public  java.util.SetmemberSet()
     Returns the names of the members of this object.
protected  PackagedScriptObjectExceptionnoSuchMember(String member)
    
public  voidopAssign(Value val)
     Perform assignment.
protected  voidpopulateMemberSet(java.util.Set s, boolean debugger)
     Derived classes that implement Value.getMember should also implement this.
protected  voidpopulateTypeMemberSet(java.util.Set s, boolean debugger)
     Derived classes that implement Value.getTypeMember should also implement this.
public  voidreadExternal(java.io.ObjectInput in)
     Derived class that implements java.io.Externalizable must call this if it overrides it, or call Value._externalInit from the Value.readExternal method.
public  StringtoString()
     Convert this value to a string, for the benefit of java code.
public  Valueunhand()
     For references to an object (ie variables), this returns the actual value this is a reference to, otherwise this return this.
public  ValueuopBitwiseNot()
     Perform the "~" operation.
public  ValueuopDecrement()
     Perform the "--" operation.
public  ValueuopIncrement()
     Perform the "++" operation.
public  ValueuopLogicalNot()
     Perform the "!" operation.
public  ValueuopMinus()
     Perform the "-" operation.
public  ValueuopPlus()
     Perform the "+" operation.
public  voidwriteExternal(java.io.ObjectOutput out)
     Derived class that implements java.io.Externalizable must call this if it overrides it, or call Value.setType from the Value.readExternal method.

Field Detail
DEBUG
final public static boolean DEBUG(Code)



MEMBER_NAMES
final public static String[] MEMBER_NAMES(Code)



NULL
final public static Value NULL(Code)



PARENT_TYPE_NAME
final public static String PARENT_TYPE_NAME(Code)



TYPE
final public static BuiltinType TYPE(Code)
The type object for an instance of Value... value can't really be instantiated, but this is needed internally.



TYPE_NAME
final public static String TYPE_NAME(Code)



UNDEFINED
final public static Value UNDEFINED(Code)
Various and asundry special values. UNDEFINED is different from NULL in that it is used for un-initialized variables or array entries. A variable or array entry cannot be given the value UNDEFINED, but can be assigned the value NULL.




Constructor Detail
Value
public Value()(Code)
Class Constructor.
Parameters:
  type - the type of this object




Method Detail
_getTypeMember
public static Value _getTypeMember(Value type, Value obj, int id)(Code)



_populateTypeMemberSet
public static void _populateTypeMemberSet(Value type, java.util.Set s, boolean d)(Code)



bopBitwiseAnd
public Value bopBitwiseAnd(Value val) throws PackagedScriptObjectException(Code)
Perform the bitwise AND operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopBitwiseAndR
public Value bopBitwiseAndR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopBitwiseOr
public Value bopBitwiseOr(Value val) throws PackagedScriptObjectException(Code)
Perform the bitwise OR operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopBitwiseOrR
public Value bopBitwiseOrR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopBitwiseXor
public Value bopBitwiseXor(Value val) throws PackagedScriptObjectException(Code)
Perform the bitwise XOR operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopBitwiseXorR
public Value bopBitwiseXorR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopCast
public Value bopCast(Value val) throws PackagedScriptObjectException(Code)
Perform the cast operation, (a)b is equivalent to a.bopCast(b)
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopCastR
public Value bopCastR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopDivide
public Value bopDivide(Value val) throws PackagedScriptObjectException(Code)
Perform the "/" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopDivideR
public Value bopDivideR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopEquals
public Value bopEquals(Value val) throws PackagedScriptObjectException(Code)
Perform the "==" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopEqualsR
public Value bopEqualsR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopGreaterThan
public Value bopGreaterThan(Value val) throws PackagedScriptObjectException(Code)
Perform the ">" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopGreaterThanOrEquals
public Value bopGreaterThanOrEquals(Value val) throws PackagedScriptObjectException(Code)
Perform the ">=" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopGreaterThanOrEqualsR
public Value bopGreaterThanOrEqualsR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopGreaterThanR
public Value bopGreaterThanR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopInstanceOf
public Value bopInstanceOf(Value val) throws PackagedScriptObjectException(Code)
Perform the instanceof operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopInstanceOfR
public Value bopInstanceOfR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopLeftShift
public Value bopLeftShift(Value val) throws PackagedScriptObjectException(Code)
Perform the "<<" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopLeftShiftR
public Value bopLeftShiftR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopLessThan
public Value bopLessThan(Value val) throws PackagedScriptObjectException(Code)
Perform the "<" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopLessThanOrEquals
public Value bopLessThanOrEquals(Value val) throws PackagedScriptObjectException(Code)
Perform the "<=" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopLessThanOrEqualsR
public Value bopLessThanOrEqualsR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopLessThanR
public Value bopLessThanR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopLogicalAnd
public Value bopLogicalAnd(Value val) throws PackagedScriptObjectException(Code)
Perform the logical AND operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopLogicalAndR
public Value bopLogicalAndR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopLogicalOr
public Value bopLogicalOr(Value val) throws PackagedScriptObjectException(Code)
Perform the logical OR operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopLogicalOrR
public Value bopLogicalOrR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopMinus
public Value bopMinus(Value val) throws PackagedScriptObjectException(Code)
Perform the "-" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopMinusR
public Value bopMinusR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopMultiply
public Value bopMultiply(Value val) throws PackagedScriptObjectException(Code)
Perform the "*" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopMultiplyR
public Value bopMultiplyR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopNotEquals
public Value bopNotEquals(Value val) throws PackagedScriptObjectException(Code)
Perform the "!=" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopNotEqualsR
public Value bopNotEqualsR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopPlus
public Value bopPlus(Value val) throws PackagedScriptObjectException(Code)
Perform the "+" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopPlusR
public Value bopPlusR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopRemainder
public Value bopRemainder(Value val) throws PackagedScriptObjectException(Code)
Perform the "%" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopRemainderR
public Value bopRemainderR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopSignedRightShift
public Value bopSignedRightShift(Value val) throws PackagedScriptObjectException(Code)
Perform the ">>" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopSignedRightShiftR
public Value bopSignedRightShiftR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



bopUnsignedRightShift
public Value bopUnsignedRightShift(Value val) throws PackagedScriptObjectException(Code)
Perform the ">>>" operation.
Parameters:
  val - the other value the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



bopUnsignedRightShiftR
public Value bopUnsignedRightShiftR(Value val, PackagedScriptObjectException e) throws PackagedScriptObjectException(Code)



callAsConstructor
public Value callAsConstructor(StackFrame sf, MemberTable args) throws PackagedScriptObjectException(Code)
Call this object as a constructor.
Parameters:
  sf - the current stack frame
Parameters:
  args - the arguments to the function, or null if none the newly constructed object
throws:
  PackagedScriptObjectException -
See Also:   Function



callAsConstructor
final public Value callAsConstructor(Value[] args) throws PackagedScriptObjectException(Code)



callAsConstructor
final public Value callAsConstructor(StackFrame sf, Value[] args)(Code)



callAsExtends
public Value callAsExtends(StackFrame sf, Scope scope, MemberTable args) throws PackagedScriptObjectException(Code)
Call this object as a parent class constructor.
Parameters:
  sf - the current stack frame
Parameters:
  scope - the object
Parameters:
  args - the arguments to the function, or null if none the value returned by the function
throws:
  PackagedScriptObjectException -
See Also:   Function



callAsExtends
final public Value callAsExtends(Scope scope, MemberTable args) throws PackagedScriptObjectException(Code)



callAsExtends
final public Value callAsExtends(StackFrame sf, Scope scope, Value[] args)(Code)



callAsFunction
public Value callAsFunction(StackFrame sf, MemberTable args) throws PackagedScriptObjectException(Code)
Call this object as a function.
Parameters:
  sf - the current stack frame
Parameters:
  args - the arguments to the function, or null if none the value returned by the function
throws:
  PackagedScriptObjectException -
See Also:   Function



callAsFunction
final public Value callAsFunction(Value[] args) throws PackagedScriptObjectException(Code)



callAsFunction
final public Value callAsFunction(StackFrame sf, Value[] args)(Code)



castToBoolean
public boolean castToBoolean() throws PackagedScriptObjectException(Code)
Convert this object to a native java boolean value. a boolean value
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



castToExactNumber
public long castToExactNumber() throws PackagedScriptObjectException(Code)
Convert this object to a native java long value. a long value
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



castToInexactNumber
public double castToInexactNumber() throws PackagedScriptObjectException(Code)
Convert this object to a native java double value. a double value
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



castToJavaObject
public Object castToJavaObject() throws PackagedScriptObjectException(Code)
Convert this object to a native java Object value. a java object
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



castToString
public String castToString() throws PackagedScriptObjectException(Code)
Convert this object to a native java String value. a String value
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



elementAt
public Value elementAt(Value idx) throws PackagedScriptObjectException(Code)
Get the specified index of this object, if this object is an array. If needed, the array is grown to the appropriate size.
Parameters:
  idx - the index to get a reference to the member
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.length
See Also:   Value.elementsAt



elementsAt
public Value elementsAt(Value idx1, Value idx2) throws PackagedScriptObjectException(Code)
Get the specified range of this object, if this object is an array. This returns a copy of a range of the array.
Parameters:
  idx1 - the index index of the beginning of the range, inclusive
Parameters:
  idx2 - the index of the end of the range, inclusive a copy of the specified range of this array
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.length
See Also:   Value.elementAt



getMember
final public Value getMember(String name) throws PackagedScriptObjectException(Code)
Get a member of this object. This method is provided for convenience.
Parameters:
  name - the name of the member a reference to the member
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.populateMemberSet



getMember
public Value getMember(Value name) throws PackagedScriptObjectException(Code)
Get a member of this object.
Parameters:
  name - the name of the member a reference to the member
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.populateMemberSet



getMember
final public Value getMember(int id) throws PackagedScriptObjectException(Code)
Get a member of this object.
Parameters:
  id - the id of the symbol that maps to the member a reference to the member
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.populateMemberSet



getMember
final public Value getMember(String name, boolean exception) throws PackagedScriptObjectException(Code)
This isn't really part of the public interface, but is provided for the generated wrapper classes.



getMember
final public Value getMember(Value name, boolean exception) throws PackagedScriptObjectException(Code)



getMember
public Value getMember(int id, boolean exception) throws PackagedScriptObjectException(Code)



getMonitor
public Object getMonitor()(Code)
Return the object used for implementing synchronized. For a normal script object, the object is it's own monitor. For a java object, it is the java object rather than the JavaObjectWrapper . the object to synchronize on



getType
public Value getType()(Code)
Get the type of this object. the object's type



getTypeImpl
abstract protected Value getTypeImpl()(Code)
Get the type of this object. The returned type doesn't have to take into account the possibility of a script type extending a built-in type, since that is handled by Value.getType . the object's type



getTypeMember
protected Value getTypeMember(Value obj, int id)(Code)
Get a member of this type. This is used to interface to the java method of having members be attributes of a type. Regular object- script object's members are attributes of the object, but in the case of java types (including built-in types), the members are attributes of the type.
Parameters:
  obj - an object of this type
Parameters:
  id - the id of the symbol that maps to the member a reference to the member, or null
See Also:   Value.populateTypeMemberSet



getTypeMember
final protected Value getTypeMember(Value obj, Value name)(Code)



isA
public boolean isA(Value type)(Code)
If this object is a type, determine if an instance of this type is an instance of the specified type, ie. if this is type, or a subclass.
Parameters:
  type - the type to compare this type to true or false
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



length
public int length() throws PackagedScriptObjectException(Code)
For types that implement elementAt, this returns the number of elements. an integer length
throws:
  PackagedScriptObjectException - (NoSuchMemberException)
See Also:   Value.elementAt
See Also:   Value.elementsAt



memberSet
public java.util.Set memberSet()(Code)
Returns the names of the members of this object. a collection view of the names of the members of this object



noSuchMember
protected PackagedScriptObjectException noSuchMember(String member)(Code)



opAssign
public void opAssign(Value val) throws PackagedScriptObjectException(Code)
Perform assignment. Set the value of this reference to the specified value.
Parameters:
  val - the value to set this reference to
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



populateMemberSet
protected void populateMemberSet(java.util.Set s, boolean debugger)(Code)
Derived classes that implement Value.getMember should also implement this.
Parameters:
  s - the set to populate
Parameters:
  debugger - true if being used by debugger, inwhich case both public and private/protected field names should be returned
See Also:   Value.getMember



populateTypeMemberSet
protected void populateTypeMemberSet(java.util.Set s, boolean debugger)(Code)
Derived classes that implement Value.getTypeMember should also implement this.
Parameters:
  s - the set to populate
Parameters:
  debugger - true if being used by debugger, inwhich case both public and private/protected field names should be returned
See Also:   Value.getTypeMember



readExternal
public void readExternal(java.io.ObjectInput in) throws ClassNotFoundException, java.io.IOException(Code)
Derived class that implements java.io.Externalizable must call this if it overrides it, or call Value._externalInit from the Value.readExternal method. This class doesn't (yet!) implement Externalizable because that would force all subclasses to implement it too (ie. override this methods).



toString
public String toString()(Code)
Convert this value to a string, for the benefit of java code. a string



unhand
public Value unhand()(Code)
For references to an object (ie variables), this returns the actual value this is a reference to, otherwise this return this. the actual object



uopBitwiseNot
public Value uopBitwiseNot() throws PackagedScriptObjectException(Code)
Perform the "~" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



uopDecrement
public Value uopDecrement() throws PackagedScriptObjectException(Code)
Perform the "--" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



uopIncrement
public Value uopIncrement() throws PackagedScriptObjectException(Code)
Perform the "++" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



uopLogicalNot
public Value uopLogicalNot() throws PackagedScriptObjectException(Code)
Perform the "!" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



uopMinus
public Value uopMinus() throws PackagedScriptObjectException(Code)
Perform the "-" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



uopPlus
public Value uopPlus() throws PackagedScriptObjectException(Code)
Perform the "+" operation. the result
throws:
  PackagedScriptObjectException - (NoSuchMemberException)



writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException(Code)
Derived class that implements java.io.Externalizable must call this if it overrides it, or call Value.setType from the Value.readExternal method. This class doesn't (yet!) implement Externalizable because that would force all subclasses to implement it too (ie. override this methods).



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.