Java Doc for Limits.java in  » Parser » Rats-Parser-Generators » xtc » 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 » Parser » Rats Parser Generators » xtc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   xtc.Limits

Limits
public class Limits (Code)
The platform-dependent C type limits.

To recreate this class, compile limits.c in the same directory as this interface and run the resulting executable while piping standard output to Limits.java.

The rank for pointer difference, sizeof, and wide character types reflects the ordering char, short, int, long, and long long, starting at 1 and ignoring the sign. This program requires that the __PTRDIFF_TYPE__, __SIZE_TYPE__, and __WCHAR_TYPE__ preprocessor macros are defined.
author:
   Robert Grimm
version:
   $Revision: 1.21 $



Field Summary
final public static  BigIntegerARRAY_MAX
     The maximum size of fixed size arrays.
final public static  intCHAR_BITS
     The bit width of char types.
final public static  BigIntegerCHAR_MAX
     The maximum value of signed char types.
final public static  BigIntegerCHAR_MIN
     The minimum value of signed char types.
final public static  BigIntegerCHAR_MOD
     The modulo of signed char types.
final public static  intDOUBLE_ALIGN
     The alignment of double types.
final public static  intDOUBLE_SIZE
     The size of double types.
final public static  intFLOAT_ALIGN
     The alignment of float types.
final public static  intFLOAT_SIZE
     The size of float types.
final public static  intFUNCTION_ALIGN
     The alignment of function types.
final public static  intFUNCTION_SIZE
     The size of function types.
final public static  intINT_ALIGN
     The alignment of int types.
final public static  intINT_BITS
     The bit width of int types.
final public static  BigIntegerINT_MAX
     The maximum value of signed int types.
final public static  BigIntegerINT_MIN
     The minimum value of signed int types.
final public static  BigIntegerINT_MOD
     The modulo of signed int types.
final public static  intINT_SIZE
     The size of int types.
final public static  booleanIS_BIG_ENDIAN
     The flag for whether the machine is big endian.
final public static  booleanIS_CHAR_SIGNED
     The flag for whether char is signed.
final public static  booleanIS_INT_SIGNED
     The flag for whether int is signed in bit-fields.
final public static  booleanIS_WCHAR_SIGNED
     The flag for whether wchar_t is signed.
final public static  intLONG_ALIGN
     The alignment of long types.
final public static  intLONG_BITS
     The bit width of long types.
final public static  intLONG_DOUBLE_ALIGN
     The alignment of long double types.
final public static  intLONG_DOUBLE_SIZE
     The size of long double types.
final public static  intLONG_LONG_ALIGN
     The alignment of long long types.
final public static  intLONG_LONG_BITS
     The bit width of long long types.
final public static  BigIntegerLONG_LONG_MAX
     The maximum value of signed long long types.
final public static  BigIntegerLONG_LONG_MIN
     The minimum value of signed long long types.
final public static  BigIntegerLONG_LONG_MOD
     The modulo of signed long long types.
final public static  intLONG_LONG_SIZE
     The size of long long types.
final public static  BigIntegerLONG_MAX
     The maximum value of signed long types.
final public static  BigIntegerLONG_MIN
     The minimum value of signed long types.
final public static  BigIntegerLONG_MOD
     The modulo of signed long types.
final public static  intLONG_SIZE
     The size of long types.
final public static  intPOINTER_ALIGN
     The alignment of pointer types.
final public static  intPOINTER_SIZE
     The size of pointer types.
final public static  intPTRDIFF_RANK
     The rank of pointer difference types.
final public static  intPTRDIFF_SIZE
     The size of pointer difference types.
final public static  intSHORT_ALIGN
     The alignment of short types.
final public static  intSHORT_BITS
     The bit width of short types.
final public static  BigIntegerSHORT_MAX
     The maximum value of signed short types.
final public static  BigIntegerSHORT_MIN
     The minimum value of signed short types.
final public static  BigIntegerSHORT_MOD
     The modulo of signed short types.
final public static  intSHORT_SIZE
     The size of short types.
final public static  intSIZEOF_RANK
     The rank of sizeof expressions.
final public static  intSIZEOF_SIZE
     The size of sizeof expressions.
final public static  BigIntegerUCHAR_MAX
     The maximum value of unsigned char types.
final public static  BigIntegerUCHAR_MOD
     The modulo of unsigned char types.
final public static  BigIntegerUINT_MAX
     The maximum value of unsigned int types.
final public static  BigIntegerUINT_MOD
     The modulo of unsigned int types.
final public static  BigIntegerULONG_LONG_MAX
     The maximum value of unsigned long long types.
final public static  BigIntegerULONG_LONG_MOD
     The modulo of unsigned long long types.
final public static  BigIntegerULONG_MAX
     The maximum value of unsigned long types.
final public static  BigIntegerULONG_MOD
     The modulo of unsigned long types.
final public static  BigIntegerUSHORT_MAX
     The maximum value of unsigned short types.
final public static  BigIntegerUSHORT_MOD
     The modulo of unsigned short types.
final public static  intVOID_ALIGN
     The alignment of void types.
final public static  intVOID_SIZE
     The size of void types.
final public static  intWCHAR_RANK
     The rank of wide character types.
final public static  intWCHAR_SIZE
     The size of wide char types.


Method Summary
public static  booleanfitsChar(BigInteger value)
     Determine whether the specified value fits into a char.
Parameters:
  value - The value.
public static  booleanfitsInt(BigInteger value)
     Determine whether the specified value fits into an int.
Parameters:
  value - The value.
public static  booleanfitsLong(BigInteger value)
     Determine whether the specified value fits into a long.
Parameters:
  value - The value.
public static  booleanfitsLongLong(BigInteger value)
     Determine whether the specified value fits into a long long.
Parameters:
  value - The value.
public static  booleanfitsShort(BigInteger value)
     Determine whether the specified value fits into a short.
Parameters:
  value - The value.
public static  booleanfitsUnsignedChar(BigInteger value)
     Determine whether the specified value fits into an unsigned char.
Parameters:
  value - The value.
public static  booleanfitsUnsignedInt(BigInteger value)
     Determine whether the specified value fits into an unsigned int.
Parameters:
  value - The value.
public static  booleanfitsUnsignedLong(BigInteger value)
     Determine whether the specified value fits into an unsigned long.
Parameters:
  value - The value.
public static  booleanfitsUnsignedLongLong(BigInteger value)
     Determine whether the specified value fits into an unsigned long long.
Parameters:
  value - The value.
public static  booleanfitsUnsignedShort(BigInteger value)
     Determine whether the specified value fits into an unsigned short.
Parameters:
  value - The value.
public static  BigIntegermaskAsInt(BigInteger value)
     Mask the specified value as a signed int.
Parameters:
  value - The value.
public static  BigIntegermaskAsLong(BigInteger value)
     Mask the specified value as a signed long.
Parameters:
  value - The value.
public static  BigIntegermaskAsLongLong(BigInteger value)
     Mask the specified value as a signed long long.
Parameters:
  value - The value.
public static  BigIntegermaskAsShort(BigInteger value)
     Mask the specified value as a signed short.
Parameters:
  value - The value.
public static  BigIntegermaskAsSignedChar(BigInteger value)
     Mask the specified value as a signed char.
Parameters:
  value - The value.
public static  BigIntegermaskAsUnsignedChar(BigInteger value)
     Mask the specified value as an unsigned char.
Parameters:
  value - The value.
public static  BigIntegermaskAsUnsignedInt(BigInteger value)
     Mask the specified value as an unsigned int.
Parameters:
  value - The value.
public static  BigIntegermaskAsUnsignedLong(BigInteger value)
     Mask the specified value as an unsigned long.
Parameters:
  value - The value.
public static  BigIntegermaskAsUnsignedLongLong(BigInteger value)
     Mask the specified value as an unsigned long long.
Parameters:
  value - The value.
public static  BigIntegermaskAsUnsignedShort(BigInteger value)
     Mask the specified value as an unsigned short.
Parameters:
  value - The value.
public static  inttoWidth(int size)
     Convert the specified size to the corresponding bit width.
Parameters:
  size - The size.

Field Detail
ARRAY_MAX
final public static BigInteger ARRAY_MAX(Code)
The maximum size of fixed size arrays.



CHAR_BITS
final public static int CHAR_BITS(Code)
The bit width of char types.



CHAR_MAX
final public static BigInteger CHAR_MAX(Code)
The maximum value of signed char types.



CHAR_MIN
final public static BigInteger CHAR_MIN(Code)
The minimum value of signed char types.



CHAR_MOD
final public static BigInteger CHAR_MOD(Code)
The modulo of signed char types.



DOUBLE_ALIGN
final public static int DOUBLE_ALIGN(Code)
The alignment of double types.



DOUBLE_SIZE
final public static int DOUBLE_SIZE(Code)
The size of double types.



FLOAT_ALIGN
final public static int FLOAT_ALIGN(Code)
The alignment of float types.



FLOAT_SIZE
final public static int FLOAT_SIZE(Code)
The size of float types.



FUNCTION_ALIGN
final public static int FUNCTION_ALIGN(Code)
The alignment of function types.



FUNCTION_SIZE
final public static int FUNCTION_SIZE(Code)
The size of function types.



INT_ALIGN
final public static int INT_ALIGN(Code)
The alignment of int types.



INT_BITS
final public static int INT_BITS(Code)
The bit width of int types.



INT_MAX
final public static BigInteger INT_MAX(Code)
The maximum value of signed int types.



INT_MIN
final public static BigInteger INT_MIN(Code)
The minimum value of signed int types.



INT_MOD
final public static BigInteger INT_MOD(Code)
The modulo of signed int types.



INT_SIZE
final public static int INT_SIZE(Code)
The size of int types.



IS_BIG_ENDIAN
final public static boolean IS_BIG_ENDIAN(Code)
The flag for whether the machine is big endian.



IS_CHAR_SIGNED
final public static boolean IS_CHAR_SIGNED(Code)
The flag for whether char is signed.



IS_INT_SIGNED
final public static boolean IS_INT_SIGNED(Code)
The flag for whether int is signed in bit-fields.



IS_WCHAR_SIGNED
final public static boolean IS_WCHAR_SIGNED(Code)
The flag for whether wchar_t is signed.



LONG_ALIGN
final public static int LONG_ALIGN(Code)
The alignment of long types.



LONG_BITS
final public static int LONG_BITS(Code)
The bit width of long types.



LONG_DOUBLE_ALIGN
final public static int LONG_DOUBLE_ALIGN(Code)
The alignment of long double types.



LONG_DOUBLE_SIZE
final public static int LONG_DOUBLE_SIZE(Code)
The size of long double types.



LONG_LONG_ALIGN
final public static int LONG_LONG_ALIGN(Code)
The alignment of long long types.



LONG_LONG_BITS
final public static int LONG_LONG_BITS(Code)
The bit width of long long types.



LONG_LONG_MAX
final public static BigInteger LONG_LONG_MAX(Code)
The maximum value of signed long long types.



LONG_LONG_MIN
final public static BigInteger LONG_LONG_MIN(Code)
The minimum value of signed long long types.



LONG_LONG_MOD
final public static BigInteger LONG_LONG_MOD(Code)
The modulo of signed long long types.



LONG_LONG_SIZE
final public static int LONG_LONG_SIZE(Code)
The size of long long types.



LONG_MAX
final public static BigInteger LONG_MAX(Code)
The maximum value of signed long types.



LONG_MIN
final public static BigInteger LONG_MIN(Code)
The minimum value of signed long types.



LONG_MOD
final public static BigInteger LONG_MOD(Code)
The modulo of signed long types.



LONG_SIZE
final public static int LONG_SIZE(Code)
The size of long types.



POINTER_ALIGN
final public static int POINTER_ALIGN(Code)
The alignment of pointer types.



POINTER_SIZE
final public static int POINTER_SIZE(Code)
The size of pointer types.



PTRDIFF_RANK
final public static int PTRDIFF_RANK(Code)
The rank of pointer difference types.



PTRDIFF_SIZE
final public static int PTRDIFF_SIZE(Code)
The size of pointer difference types.



SHORT_ALIGN
final public static int SHORT_ALIGN(Code)
The alignment of short types.



SHORT_BITS
final public static int SHORT_BITS(Code)
The bit width of short types.



SHORT_MAX
final public static BigInteger SHORT_MAX(Code)
The maximum value of signed short types.



SHORT_MIN
final public static BigInteger SHORT_MIN(Code)
The minimum value of signed short types.



SHORT_MOD
final public static BigInteger SHORT_MOD(Code)
The modulo of signed short types.



SHORT_SIZE
final public static int SHORT_SIZE(Code)
The size of short types.



SIZEOF_RANK
final public static int SIZEOF_RANK(Code)
The rank of sizeof expressions.



SIZEOF_SIZE
final public static int SIZEOF_SIZE(Code)
The size of sizeof expressions.



UCHAR_MAX
final public static BigInteger UCHAR_MAX(Code)
The maximum value of unsigned char types.



UCHAR_MOD
final public static BigInteger UCHAR_MOD(Code)
The modulo of unsigned char types.



UINT_MAX
final public static BigInteger UINT_MAX(Code)
The maximum value of unsigned int types.



UINT_MOD
final public static BigInteger UINT_MOD(Code)
The modulo of unsigned int types.



ULONG_LONG_MAX
final public static BigInteger ULONG_LONG_MAX(Code)
The maximum value of unsigned long long types.



ULONG_LONG_MOD
final public static BigInteger ULONG_LONG_MOD(Code)
The modulo of unsigned long long types.



ULONG_MAX
final public static BigInteger ULONG_MAX(Code)
The maximum value of unsigned long types.



ULONG_MOD
final public static BigInteger ULONG_MOD(Code)
The modulo of unsigned long types.



USHORT_MAX
final public static BigInteger USHORT_MAX(Code)
The maximum value of unsigned short types.



USHORT_MOD
final public static BigInteger USHORT_MOD(Code)
The modulo of unsigned short types.



VOID_ALIGN
final public static int VOID_ALIGN(Code)
The alignment of void types.



VOID_SIZE
final public static int VOID_SIZE(Code)
The size of void types.



WCHAR_RANK
final public static int WCHAR_RANK(Code)
The rank of wide character types.



WCHAR_SIZE
final public static int WCHAR_SIZE(Code)
The size of wide char types.





Method Detail
fitsChar
public static boolean fitsChar(BigInteger value)(Code)
Determine whether the specified value fits into a char.
Parameters:
  value - The value. true if the value fits into a char.



fitsInt
public static boolean fitsInt(BigInteger value)(Code)
Determine whether the specified value fits into an int.
Parameters:
  value - The value. true if the value fits into an int.



fitsLong
public static boolean fitsLong(BigInteger value)(Code)
Determine whether the specified value fits into a long.
Parameters:
  value - The value. true if the value fits into a long.



fitsLongLong
public static boolean fitsLongLong(BigInteger value)(Code)
Determine whether the specified value fits into a long long.
Parameters:
  value - The value. true if the value fits into a long long.



fitsShort
public static boolean fitsShort(BigInteger value)(Code)
Determine whether the specified value fits into a short.
Parameters:
  value - The value. true if the value fits into a short.



fitsUnsignedChar
public static boolean fitsUnsignedChar(BigInteger value)(Code)
Determine whether the specified value fits into an unsigned char.
Parameters:
  value - The value. true if the value fits into an unsignedchar.



fitsUnsignedInt
public static boolean fitsUnsignedInt(BigInteger value)(Code)
Determine whether the specified value fits into an unsigned int.
Parameters:
  value - The value. true if the value fits into an unsignedint.



fitsUnsignedLong
public static boolean fitsUnsignedLong(BigInteger value)(Code)
Determine whether the specified value fits into an unsigned long.
Parameters:
  value - The value. true if the value fits into an unsignedlong.



fitsUnsignedLongLong
public static boolean fitsUnsignedLongLong(BigInteger value)(Code)
Determine whether the specified value fits into an unsigned long long.
Parameters:
  value - The value. true if the value fits into an unsignedlong long.



fitsUnsignedShort
public static boolean fitsUnsignedShort(BigInteger value)(Code)
Determine whether the specified value fits into an unsigned short.
Parameters:
  value - The value. true if the value fits into an unsignedshort.



maskAsInt
public static BigInteger maskAsInt(BigInteger value)(Code)
Mask the specified value as a signed int.
Parameters:
  value - The value. The value as a signed int.



maskAsLong
public static BigInteger maskAsLong(BigInteger value)(Code)
Mask the specified value as a signed long.
Parameters:
  value - The value. The value as a signed long.



maskAsLongLong
public static BigInteger maskAsLongLong(BigInteger value)(Code)
Mask the specified value as a signed long long.
Parameters:
  value - The value. The value as a signed long long.



maskAsShort
public static BigInteger maskAsShort(BigInteger value)(Code)
Mask the specified value as a signed short.
Parameters:
  value - The value. The value as a signed short.



maskAsSignedChar
public static BigInteger maskAsSignedChar(BigInteger value)(Code)
Mask the specified value as a signed char.
Parameters:
  value - The value. The value as a signed char.



maskAsUnsignedChar
public static BigInteger maskAsUnsignedChar(BigInteger value)(Code)
Mask the specified value as an unsigned char.
Parameters:
  value - The value. The value as an unsigned char.



maskAsUnsignedInt
public static BigInteger maskAsUnsignedInt(BigInteger value)(Code)
Mask the specified value as an unsigned int.
Parameters:
  value - The value. The value as an unsigned int.



maskAsUnsignedLong
public static BigInteger maskAsUnsignedLong(BigInteger value)(Code)
Mask the specified value as an unsigned long.
Parameters:
  value - The value. The value as an unsigned long.



maskAsUnsignedLongLong
public static BigInteger maskAsUnsignedLongLong(BigInteger value)(Code)
Mask the specified value as an unsigned long long.
Parameters:
  value - The value. The value as an unsigned long long.



maskAsUnsignedShort
public static BigInteger maskAsUnsignedShort(BigInteger value)(Code)
Mask the specified value as an unsigned short.
Parameters:
  value - The value. The value as an unsigned short.



toWidth
public static int toWidth(int size)(Code)
Convert the specified size to the corresponding bit width.
Parameters:
  size - The size. The corresponding bit width.



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.