Java Doc for MemberTable.java in  » Scripting » oscript-2.10.4 » oscript » util » 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.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


oscript.util.MemberTable

All known Subclasses:   oscript.data.OArray,
MemberTable
public interface MemberTable (Code)
A member table is a special array, with some special methods that don't need to exist for regular script arrays:
  • direct access to the Reference
  • pushN() methods
Since the member table is used by scope and to pass args to a function/ constructor, performance is critical, which is the reason for some of these methods.
author:
   Rob Clark (rob@ti.com)
version:
   1




Method Summary
public  voidensureCapacity(int sz)
     Ensure that the member-table has sufficient capacity to accomodate the index sz.
public  voidfree()
     Indication from creator of member-table that resources allocated from the stack are no longer needed and should be released.
public  intlength()
     Get the current size of the member-table.
public  voidpush1(Value val)
     Push a single parameter into the table.
public  voidpush2(Value val1, Value val2)
     Push two values into the table.
public  voidpush3(Value val1, Value val2, Value val3)
     Push three values into the table.
public  voidpush4(Value val1, Value val2, Value val3, Value val4)
     Push four values into the table.
public  ReferencereferenceAt(int idx)
     Return the reference at the specified index.
public  voidreset()
     An indication from the creator of the member-table that, while the table itself is still required, the references referred to by the table are no longer required and can be freed.
public  MemberTablesafeCopy()
     Indication to the member-table that a "safe" copy is required.



Method Detail
ensureCapacity
public void ensureCapacity(int sz)(Code)
Ensure that the member-table has sufficient capacity to accomodate the index sz. Grow the array, if necessary.
Parameters:
  sz - the requested table size



free
public void free()(Code)
Indication from creator of member-table that resources allocated from the stack are no longer needed and should be released. (If the member table is needed after this point, a safe copy should have already been obtained by calling MemberTable.safeCopy() .)



length
public int length()(Code)
Get the current size of the member-table. The maximum index which can be referenced via MemberTable.referenceAt(int) is length()-1 the current size



push1
public void push1(Value val)(Code)
Push a single parameter into the table.
Parameters:
  val - the value to push



push2
public void push2(Value val1, Value val2)(Code)
Push two values into the table.
Parameters:
  val1 - the value to push
Parameters:
  val2 - the value to push



push3
public void push3(Value val1, Value val2, Value val3)(Code)
Push three values into the table.
Parameters:
  val1 - the value to push
Parameters:
  val2 - the value to push
Parameters:
  val3 - the value to push



push4
public void push4(Value val1, Value val2, Value val3, Value val4)(Code)
Push four values into the table.
Parameters:
  val1 - the value to push
Parameters:
  val2 - the value to push
Parameters:
  val3 - the value to push
Parameters:
  val4 - the value to push



referenceAt
public Reference referenceAt(int idx)(Code)
Return the reference at the specified index. This does not necessarily grow the array, so the user should be sure to use MemberTable.ensureCapacity(int) to ensure the array has sufficient capacity before dereferencing an index into the table which is not known to exist.
Parameters:
  idx - an index into the member-table a reference



reset
public void reset()(Code)
An indication from the creator of the member-table that, while the table itself is still required, the references referred to by the table are no longer required and can be freed.



safeCopy
public MemberTable safeCopy()(Code)
Indication to the member-table that a "safe" copy is required. This means that the table may need to outlive the stack-frame that it was (possibly) allocated from. What it means to convert this table into a "safe" copy depends on the implementation of the table. A safe copy is still valid after MemberTable.free() is called. a safe copy of this table



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