Java Doc for TclObjectBase.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.TclObjectBase

All known Subclasses:   tcl.lang.TclObject,
TclObjectBase
abstract class TclObjectBase (Code)
This class implements the basic notion of an "object" in Tcl. The fundamental representation of an object is its string value. However, an object can also have an internal representation, which is a "cached" reprsentation of this object in another form. The type of the internal rep of Tcl objects can mutate. This class provides the storage of the string rep and the internal rep, as well as the facilities for mutating the internal rep. The Jacl or TclBlend specific implementation of TclObject will extend this abstract base class.


Field Summary
final protected static  RuntimeExceptionDEALLOCATED
     Raise a TclRuntimeError in the case where a TclObject was already disposed of because the last ref was released.
protected  InternalRepinternalRep
    
 intivalue
    
static  HashtableobjRecordMap
    
protected  intrefCount
    
final static  booleansaveObjRecords
    
protected  StringstringRep
    
final static  booleanvalidate
    

Constructor Summary
protected  TclObjectBase(InternalRep rep)
     Creates a TclObject with the given InternalRep.
protected  TclObjectBase(TclString rep, String s)
     Creates a TclObject with the given InternalRep and stringRep.
protected  TclObjectBase(int ivalue)
     Creates a TclObject with the given integer value.

Method Summary
final protected  voiddisposeObject()
     Dispose of the TclObject when the refCount reaches 0.
final protected  voiddisposedError()
    
final public  TclObjectduplicate()
     Tcl_DuplicateObj -> duplicate Duplicate a TclObject, this method provides the preferred means to deal with modification of a shared TclObject.
final public  InternalRepgetInternalRep()
     Returns the handle to the current internal rep.
static  StringgetObjRecords()
     Return a String that describes TclObject and internal rep type allocations and conversions.
final  intgetRefCount()
     Returns the refCount of this object.
final  booleanhasNoStringRep()
    
final public  voidinvalidateStringRep()
     Sets the string representation of the object to null.
final public  booleanisDoubleType()
    
final public  booleanisIntType()
    
final  booleanisListType()
    
final public  booleanisShared()
     Returns true if the TclObject is shared, false otherwise.
final  booleanisStringType()
    
public  voidsetInternalRep(InternalRep rep)
     Change the internal rep of the object.
final public  TclObjecttakeExclusive()
    
final public  StringtoString()
     Returns the string representation of the object.

Field Detail
DEALLOCATED
final protected static RuntimeException DEALLOCATED(Code)
Raise a TclRuntimeError in the case where a TclObject was already disposed of because the last ref was released.



internalRep
protected InternalRep internalRep(Code)



ivalue
int ivalue(Code)



objRecordMap
static Hashtable objRecordMap(Code)



refCount
protected int refCount(Code)



saveObjRecords
final static boolean saveObjRecords(Code)



stringRep
protected String stringRep(Code)



validate
final static boolean validate(Code)




Constructor Detail
TclObjectBase
protected TclObjectBase(InternalRep rep)(Code)
Creates a TclObject with the given InternalRep. This method should be called only by an InternalRep implementation.
Parameters:
  rep - the initial InternalRep for this object.



TclObjectBase
protected TclObjectBase(TclString rep, String s)(Code)
Creates a TclObject with the given InternalRep and stringRep. This constructor is used by the TclString class only. No other code should call this constructor.
Parameters:
  rep - the initial InternalRep for this object.
Parameters:
  s - the initial string rep for this object.



TclObjectBase
protected TclObjectBase(int ivalue)(Code)
Creates a TclObject with the given integer value. This constructor is used by the TclInteger class only. No other code should call this constructor.
Parameters:
  ivalue - the integer value




Method Detail
disposeObject
final protected void disposeObject()(Code)
Dispose of the TclObject when the refCount reaches 0.
exception:
  TclRuntimeError - if the object has already been deallocated.



disposedError
final protected void disposedError()(Code)



duplicate
final public TclObject duplicate()(Code)
Tcl_DuplicateObj -> duplicate Duplicate a TclObject, this method provides the preferred means to deal with modification of a shared TclObject. It should be invoked in conjunction with isShared instead of using the deprecated takeExclusive method. Example: if (tobj.isShared()) { tobj = tobj.duplicate(); } TclString.append(tobj, "hello"); an TclObject with a refCount of 0.



getInternalRep
final public InternalRep getInternalRep()(Code)
Returns the handle to the current internal rep. This method should be called only by an InternalRep implementation. the handle to the current internal rep.



getObjRecords
static String getObjRecords()(Code)
Return a String that describes TclObject and internal rep type allocations and conversions. The string is in lines separated by newlines. The saveObjRecords needs to be set to true and Jacl recompiled for this method to return a useful value.



getRefCount
final int getRefCount()(Code)
Returns the refCount of this object. refCount.



hasNoStringRep
final boolean hasNoStringRep()(Code)



invalidateStringRep
final public void invalidateStringRep() throws TclRuntimeError(Code)
Sets the string representation of the object to null. Next time when toString() is called, getInternalRep().toString() will be called. This method should be called ONLY when an InternalRep is about to modify the value of a TclObject.
exception:
  TclRuntimeError - if object is not exclusively owned.



isDoubleType
final public boolean isDoubleType()(Code)



isIntType
final public boolean isIntType()(Code)



isListType
final boolean isListType()(Code)



isShared
final public boolean isShared()(Code)
Returns true if the TclObject is shared, false otherwise.



isStringType
final boolean isStringType()(Code)



setInternalRep
public void setInternalRep(InternalRep rep)(Code)
Change the internal rep of the object. The old internal rep will be deallocated as a result. This method should be called only by an InternalRep implementation.
Parameters:
  rep - the new internal rep.



takeExclusive
final public TclObject takeExclusive() throws TclRuntimeError(Code)



toString
final public String toString()(Code)
Returns the string representation of the object. the string representation of the 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.