Java Doc for TclList.java in  » Scripting » jacl » tcl » lang » 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 » jacl » tcl.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   tcl.lang.TclList

TclList
public class TclList implements InternalRep(Code)
This class implements the list object type in Tcl.




Method Summary
final public static  voidappend(Interp interp, TclObject tobj, TclObject elemObj)
     Tcl_ListObjAppendElement -> TclList.append() Appends a TclObject element to a list object.
final static  voidappend(Interp interp, TclObject tobj, TclObject[] objv, int startIdx, int endIdx)
     TclList.append() Appends multiple TclObject elements to a list object.
public  voiddispose()
     Called to free any storage for the type's internal rep.
public  InternalRepduplicate()
     DupListInternalRep -> duplicate Returns a dupilcate of the current object.
public static  TclObject[]getElements(Interp interp, TclObject tobj)
     Returns a TclObject array of the elements in a list object.
final public static  intgetLength(Interp interp, TclObject tobj)
     Queries the length of the list.
final public static  TclObjectindex(Interp interp, TclObject tobj, int index)
     This procedure returns a pointer to the index'th object from the list referenced by tobj.
final static  voidinsert(Interp interp, TclObject tobj, int index, TclObject elements, int from, int to)
     This procedure inserts the elements in elements[] into the list at the given index.
public static  TclObjectnewInstance()
     Creates a new instance of a TclObject with a TclList internal rep.
final public static  voidreplace(Interp interp, TclObject tobj, int index, int count, TclObject elements, int from, int to)
     This procedure replaces zero or more elements of the list referenced by tobj with the objects from an TclObject array. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to use as a list.
Parameters:
  index - the starting index of the replace operation.
static  voidsort(Interp interp, TclObject tobj, int sortMode, int sortIndex, boolean sortIncreasing, String command)
     Sorts the list according to the sort mode and (optional) sort command.
public  StringtoString()
     Called to query the string representation of the Tcl object.



Method Detail
append
final public static void append(Interp interp, TclObject tobj, TclObject elemObj) throws TclException(Code)
Tcl_ListObjAppendElement -> TclList.append() Appends a TclObject element to a list object.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to append an element to.
Parameters:
  elemObj - the element to append to the object.
exception:
  TclException - if tobj cannot be converted into a list.



append
final static void append(Interp interp, TclObject tobj, TclObject[] objv, int startIdx, int endIdx) throws TclException(Code)
TclList.append() Appends multiple TclObject elements to a list object.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to append elements to.
Parameters:
  objv - array containing elements to append.
Parameters:
  startIdx - index to start appending values from
Parameters:
  endIdx - index to stop appending values at
exception:
  TclException - if tobj cannot be converted into a list.



dispose
public void dispose()(Code)
Called to free any storage for the type's internal rep.



duplicate
public InternalRep duplicate()(Code)
DupListInternalRep -> duplicate Returns a dupilcate of the current object.



getElements
public static TclObject[] getElements(Interp interp, TclObject tobj) throws TclException(Code)
Returns a TclObject array of the elements in a list object. If tobj is not a list object, an attempt will be made to convert it to a list.

The objects referenced by the returned array should be treated as readonly and their ref counts are _not_ incremented; the caller must do that if it holds on to a reference.
Parameters:
  interp - the current interpreter.
Parameters:
  tobj - the list to sort. a TclObject array of the elements in a list object.
exception:
  TclException - if tobj is not a valid list.




getLength
final public static int getLength(Interp interp, TclObject tobj) throws TclException(Code)
Queries the length of the list. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to use as a list. the length of the list.
exception:
  TclException - if tobj is not a valid list.



index
final public static TclObject index(Interp interp, TclObject tobj, int index) throws TclException(Code)
This procedure returns a pointer to the index'th object from the list referenced by tobj. The first element has index 0. If index is negative or greater than or equal to the number of elements in the list, a null is returned. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to use as a list.
Parameters:
  index - the index of the requested element. the the requested element.
exception:
  TclException - if tobj is not a valid list.



insert
final static void insert(Interp interp, TclObject tobj, int index, TclObject elements, int from, int to) throws TclException(Code)
This procedure inserts the elements in elements[] into the list at the given index. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to use as a list.
Parameters:
  index - the starting index of the insertion operation. <=0 meansthe beginning of the list. >= TclList.getLength(tobj) meansthe end of the list.
Parameters:
  elements - the element(s) to insert.
Parameters:
  from - insert elements starting from elements[from] (inclusive)
Parameters:
  to - insert elements up to elements[to] (inclusive)
exception:
  TclException - if tobj is not a valid list.



newInstance
public static TclObject newInstance()(Code)
Creates a new instance of a TclObject with a TclList internal rep. the TclObject with the given list value.



replace
final public static void replace(Interp interp, TclObject tobj, int index, int count, TclObject elements, int from, int to) throws TclException(Code)
This procedure replaces zero or more elements of the list referenced by tobj with the objects from an TclObject array. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - current interpreter.
Parameters:
  tobj - the TclObject to use as a list.
Parameters:
  index - the starting index of the replace operation. <=0 meansthe beginning of the list. >= TclList.getLength(tobj) meansthe end of the list.
Parameters:
  count - the number of elements to delete from the list. <=0 meansno elements should be deleted and the operation is equivalent toan insertion operation.
Parameters:
  elements - the element(s) to insert.
Parameters:
  from - insert elements starting from elements[from] (inclusive)
Parameters:
  to - insert elements up to elements[to] (inclusive)
exception:
  TclException - if tobj is not a valid list.



sort
static void sort(Interp interp, TclObject tobj, int sortMode, int sortIndex, boolean sortIncreasing, String command) throws TclException(Code)
Sorts the list according to the sort mode and (optional) sort command. If tobj is not a list object, an attempt will be made to convert it to a list.
Parameters:
  interp - the current interpreter.
Parameters:
  tobj - the list to sort.
Parameters:
  sortMode - the sorting mode.
Parameters:
  sortIncreasing - true if to sort the elements in increasing order.
Parameters:
  command - the command to compute the order of two elements.
exception:
  TclException - if tobj is not a valid list.



toString
public String toString()(Code)
Called to query the string representation of the Tcl object. This method is called only by TclObject.toString() when TclObject.stringRep is null. the string representation of the Tcl object.



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.