Java Doc for ESNumber.java in  » EJB-Server-resin-3.1.5 » ecmascript » com » caucho » es » 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 » EJB Server resin 3.1.5 » ecmascript » com.caucho.es 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.es.ESBase
      com.caucho.es.ESNumber

ESNumber
public class ESNumber extends ESBase implements VfsWriteObject,Externalizable(Code)
Implementation class for JavaScript numbers. Essentially, these are equivalent to Java doubles.


Field Summary
public static  ESNumberNaN
    
public static  ESNumberONE
    
public static  ESNumberZERO
    
static  ESNumberints
    

Constructor Summary
public  ESNumber()
     Null-arg constructor for serialization.

Method Summary
public static  ESNumbercreate(double value)
    
public  booleanecmaEquals(ESBase b)
    
public  booleanequals(Object b)
    
public  ClassgetJavaType()
    
public  ESBasegetProperty(ESString key)
    
public  inthashCode()
    
public  booleanisNum()
    
public  booleanlessThan(ESBase b, boolean neg)
    
public  ESBaseplus(ESBase b)
    
public  voidprint(WriteStream os)
    
public  voidreadExternal(ObjectInput is)
     Restore the external representation.
public  booleantoBoolean()
     Any non-zero number is true.
public  ObjecttoJavaObject()
    
public  doubletoNum()
    
public  ESObjecttoObject()
    
public  ESStringtoStr()
    
public  StringtoString()
     Returns the string representation of the number.
public  ESBasetypeof()
    
public  voidwriteExternal(ObjectOutput os)
     Save the external representation.

Field Detail
NaN
public static ESNumber NaN(Code)



ONE
public static ESNumber ONE(Code)



ZERO
public static ESNumber ZERO(Code)



ints
static ESNumber ints(Code)




Constructor Detail
ESNumber
public ESNumber()(Code)
Null-arg constructor for serialization.




Method Detail
create
public static ESNumber create(double value)(Code)



ecmaEquals
public boolean ecmaEquals(ESBase b) throws Throwable(Code)



equals
public boolean equals(Object b)(Code)



getJavaType
public Class getJavaType()(Code)



getProperty
public ESBase getProperty(ESString key) throws Throwable(Code)



hashCode
public int hashCode()(Code)



isNum
public boolean isNum()(Code)



lessThan
public boolean lessThan(ESBase b, boolean neg) throws Throwable(Code)



plus
public ESBase plus(ESBase b) throws Throwable(Code)



print
public void print(WriteStream os) throws IOException(Code)



readExternal
public void readExternal(ObjectInput is) throws IOException(Code)
Restore the external representation.



toBoolean
public boolean toBoolean()(Code)
Any non-zero number is true. XXX: NaN and inf?



toJavaObject
public Object toJavaObject()(Code)



toNum
public double toNum()(Code)



toObject
public ESObject toObject() throws ESException(Code)



toStr
public ESString toStr()(Code)



toString
public String toString()(Code)
Returns the string representation of the number. Notes: the spec says 1) -0 should be printed at 0. 2) 20 decimal digit integers should be printed as integers. This is insane since the double can only almost a 16 digit decimal. 3) The exponent should be lower case.



typeof
public ESBase typeof() throws ESException(Code)



writeExternal
public void writeExternal(ObjectOutput os) throws IOException(Code)
Save the external representation.



Fields inherited from com.caucho.es.ESBase
final public static int DONT_DELETE(Code)(Java Doc)
final public static int DONT_ENUM(Code)(Java Doc)
final static int NONE(Code)(Java Doc)
final static int NUMBER(Code)(Java Doc)
final public static int READ_ONLY(Code)(Java Doc)
final static int STRING(Code)(Java Doc)
final static int WATCH(Code)(Java Doc)
String className(Code)(Java Doc)
public static ESBase esBase(Code)(Java Doc)
public static ESBase esEmpty(Code)(Java Doc)
public static ESBase esNull(Code)(Java Doc)
public static ESBase esUndefined(Code)(Java Doc)
ESBase prototype(Code)(Java Doc)

Methods inherited from com.caucho.es.ESBase
public ESBase call(Call eval, int length) throws Throwable(Code)(Java Doc)
public ESBase call(Call eval, int length, ESString key) throws Throwable(Code)(Java Doc)
boolean canPut(ESString name)(Code)(Java Doc)
public ESBase construct(Call eval, int length) throws Throwable(Code)(Java Doc)
Object copy(HashMap refs)(Code)(Java Doc)
public ESBase delete(ESString key) throws Throwable(Code)(Java Doc)
ESBase delete(String key) throws Throwable(Code)(Java Doc)
ESBase delete(int i) throws Throwable(Code)(Java Doc)
public boolean ecmaEquals(ESBase b) throws Throwable(Code)(Java Doc)
String getClassName()(Code)(Java Doc)
public Class getJavaType()(Code)(Java Doc)
public ESBase getProperty(ESString key) throws Throwable(Code)(Java Doc)
public ESBase getProperty(String key) throws Throwable(Code)(Java Doc)
ESBase getProperty(int i) throws Throwable(Code)(Java Doc)
public boolean greaterThan(ESBase ob, boolean neg) throws Throwable(Code)(Java Doc)
public ESBase hasProperty(ESString key) throws Throwable(Code)(Java Doc)
ESBase hasProperty(int i) throws Throwable(Code)(Java Doc)
static void init(ESFactory factory)(Code)(Java Doc)
public boolean isBoolean()(Code)(Java Doc)
public boolean isNum()(Code)(Java Doc)
public boolean isString()(Code)(Java Doc)
public Iterator keys() throws Throwable(Code)(Java Doc)
public boolean lessThan(ESBase ob, boolean neg) throws Throwable(Code)(Java Doc)
public ESBase plus(ESBase b) throws Throwable(Code)(Java Doc)
public void setProperty(ESString key, ESBase value) throws Throwable(Code)(Java Doc)
public void setProperty(String key, ESBase value) throws Throwable(Code)(Java Doc)
public void setProperty(int i, ESBase value) throws Throwable(Code)(Java Doc)
public boolean toBoolean()(Code)(Java Doc)
public int toInt32() throws Throwable(Code)(Java Doc)
public Object toJavaObject() throws ESException(Code)(Java Doc)
public String toJavaString() throws Throwable(Code)(Java Doc)
public double toNum() throws Throwable(Code)(Java Doc)
public ESObject toObject() throws ESException(Code)(Java Doc)
public ESBase toPrimitive(int type) throws Throwable(Code)(Java Doc)
public ESBase toPrimitive() throws Throwable(Code)(Java Doc)
public ESString toSource(IntMap map, boolean isLoopPass) throws Throwable(Code)(Java Doc)
public ESString toStr() throws Throwable(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public ESBase typeof() throws ESException(Code)(Java Doc)
public ESBase valueOf() throws Throwable(Code)(Java Doc)

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.