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


xtc.type.Type
   xtc.type.NumberT

All known Subclasses:   xtc.type.IntegerT,  xtc.type.FloatT,
NumberT
abstract public class NumberT extends Type (Code)
The superclass of all number types.
author:
   Robert Grimm
version:
   $Revision: 1.27 $

Inner Class :public static enum Kind

Field Summary
final public static  IntegerTBYTE
     The canonical signed byte type.
final public static  IntegerTCHAR
     The canonical char type.
final public static  FloatTDOUBLE
     The canonical double type.
final public static  FloatTDOUBLE_COMPLEX
     The canonical double complex type.
final public static  FloatTFLOAT
     The canonical float type.
final public static  FloatTFLOAT_COMPLEX
     The canonical float complex type.
final public static  IntegerTINT
     The canonical int type.
final public static  IntegerTLONG
     The canonical signed long type.
final public static  FloatTLONG_DOUBLE
     The canonical long double type.
final public static  FloatTLONG_DOUBLE_COMPLEX
     The canonical long double complex type.
final public static  IntegerTLONG_LONG
     The canonical signed long long type.
final public static  IntegerTSHORT
     The canonical short type.
final public static  IntegerTS_CHAR
     The canonical signed char type.
final public static  IntegerTS_INT
     The canonical signed int type.
final public static  IntegerTU_CHAR
     The canonical unsigned char type.
final public static  IntegerTU_INT
     The cannical unsigned int type.
final public static  IntegerTU_LONG
     The canonical unsigned long type.
final public static  IntegerTU_LONG_LONG
     The canonical unsigned long long type.
final public static  IntegerTU_SHORT
     The canonical unsigned short type.
final protected  Kindkind
     The kind.

Constructor Summary
public  NumberT(Kind kind)
     Create a new number type.
public  NumberT(Type template, Kind kind)
     Create a new number type.

Method Summary
public static  booleanequal(Kind k1, Kind k2)
     Determine whether the specified kinds equal each other.
public static  booleanequalIgnoringSign(Kind k1, Kind k2)
     Determine whether the specified kinds equal each other, modulo their signs.
public  booleanequals(Object o)
     Determine whether this type equals the specified object.
public  KindgetKind()
     Get the kind.
public  booleanhasKind(Kind kind)
     Determine whether this number has the specified kind.
public  inthashCode()
    
public  booleanisNumber()
    
public  booleanisSigned()
     Determine whether this number is signed.
public  NumberTtoNumber()
    
public  StringtoString()
    
public  voidwrite(Appendable out)
    

Field Detail
BYTE
final public static IntegerT BYTE(Code)
The canonical signed byte type.



CHAR
final public static IntegerT CHAR(Code)
The canonical char type.



DOUBLE
final public static FloatT DOUBLE(Code)
The canonical double type.



DOUBLE_COMPLEX
final public static FloatT DOUBLE_COMPLEX(Code)
The canonical double complex type.



FLOAT
final public static FloatT FLOAT(Code)
The canonical float type.



FLOAT_COMPLEX
final public static FloatT FLOAT_COMPLEX(Code)
The canonical float complex type.



INT
final public static IntegerT INT(Code)
The canonical int type.



LONG
final public static IntegerT LONG(Code)
The canonical signed long type.



LONG_DOUBLE
final public static FloatT LONG_DOUBLE(Code)
The canonical long double type.



LONG_DOUBLE_COMPLEX
final public static FloatT LONG_DOUBLE_COMPLEX(Code)
The canonical long double complex type.



LONG_LONG
final public static IntegerT LONG_LONG(Code)
The canonical signed long long type.



SHORT
final public static IntegerT SHORT(Code)
The canonical short type.



S_CHAR
final public static IntegerT S_CHAR(Code)
The canonical signed char type.



S_INT
final public static IntegerT S_INT(Code)
The canonical signed int type.



U_CHAR
final public static IntegerT U_CHAR(Code)
The canonical unsigned char type.



U_INT
final public static IntegerT U_INT(Code)
The cannical unsigned int type.



U_LONG
final public static IntegerT U_LONG(Code)
The canonical unsigned long type.



U_LONG_LONG
final public static IntegerT U_LONG_LONG(Code)
The canonical unsigned long long type.



U_SHORT
final public static IntegerT U_SHORT(Code)
The canonical unsigned short type.



kind
final protected Kind kind(Code)
The kind.




Constructor Detail
NumberT
public NumberT(Kind kind)(Code)
Create a new number type. The specified kind must be a valid integer or float kind.
Parameters:
  kind - The kind.



NumberT
public NumberT(Type template, Kind kind)(Code)
Create a new number type. The specified kind must be a valid integer or float kind.
Parameters:
  template - The type whose annotations to copy.
Parameters:
  kind - The kind.




Method Detail
equal
public static boolean equal(Kind k1, Kind k2)(Code)
Determine whether the specified kinds equal each other. This method treats implicit, int, and signed int types as equal.
Parameters:
  k1 - The first kind.
Parameters:
  k2 - The second kind. true if the kinds are equal.



equalIgnoringSign
public static boolean equalIgnoringSign(Kind k1, Kind k2)(Code)
Determine whether the specified kinds equal each other, modulo their signs. This method treats implicit, int, and signed int types as equal.
Parameters:
  k1 - The first kind.
Parameters:
  k2 - The second kind. true if the kinds are equal modulo theirsigns.



equals
public boolean equals(Object o)(Code)
Determine whether this type equals the specified object. This number equals the specified object if the specified object also is a number and the two numbers' kinds are either the same or a combination of the Kind.INT int and Kind.S_INTsigned int kinds.
Parameters:
  o - The object. true if this type equals the object.



getKind
public Kind getKind()(Code)
Get the kind. The kind.



hasKind
public boolean hasKind(Kind kind)(Code)
Determine whether this number has the specified kind. Note that this method uses NumberT.equal(Kind,Kind) to perform the kind comparison.
Parameters:
  kind - The kind. true if this number has the specified kind.



hashCode
public int hashCode()(Code)



isNumber
public boolean isNumber()(Code)



isSigned
public boolean isSigned()(Code)
Determine whether this number is signed. true if this number is signed.



toNumber
public NumberT toNumber()(Code)



toString
public String toString()(Code)



write
public void write(Appendable out) throws IOException(Code)



Fields inherited from xtc.type.Type
List<Attribute> attributes(Code)(Java Doc)
Constant constant(Code)(Java Doc)
Language language(Code)(Java Doc)
String scope(Code)(Java Doc)
boolean sealed(Code)(Java Doc)
Reference shape(Code)(Java Doc)

Methods inherited from xtc.type.Type
public void addAttribute(Attribute att)(Code)(Java Doc)
public Type annotate()(Code)(Java Doc)
public Type attribute(Attribute att)(Code)(Java Doc)
public Type attribute(List<Attribute> attributes)(Code)(Java Doc)
public Type attribute(Type template)(Code)(Java Doc)
public List<Attribute> attributes()(Code)(Java Doc)
public static Type cast(Object type)(Code)(Java Doc)
protected void checkNotSealed()(Code)(Java Doc)
public Type constant(boolean value)(Code)(Java Doc)
public Type constant(Object value)(Code)(Java Doc)
abstract public Type copy()(Code)(Java Doc)
public static List<T> copy(List<T> types)(Code)(Java Doc)
public Type deannotate()(Code)(Java Doc)
public Attribute getAttribute(String name)(Code)(Java Doc)
public Attribute getAttribute(String name, boolean forward)(Code)(Java Doc)
public Constant getConstant()(Code)(Java Doc)
public Constant getConstant(boolean forward)(Code)(Java Doc)
public Language getLanguage()(Code)(Java Doc)
public Language getLanguage(boolean forward)(Code)(Java Doc)
public Location getLocation()(Code)(Java Doc)
public Location getLocation(boolean forward)(Code)(Java Doc)
public String getScope()(Code)(Java Doc)
public String getScope(boolean forward)(Code)(Java Doc)
public Reference getShape()(Code)(Java Doc)
public Reference getShape(boolean forward)(Code)(Java Doc)
public boolean hasAlias()(Code)(Java Doc)
public boolean hasAnnotated()(Code)(Java Doc)
public boolean hasAttribute(Attribute att)(Code)(Java Doc)
public boolean hasAttribute(Attribute att, boolean forward)(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttribute(String name, boolean forward)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasConstant()(Code)(Java Doc)
public boolean hasConstant(boolean forward)(Code)(Java Doc)
public boolean hasEnum()(Code)(Java Doc)
public boolean hasEnumerator()(Code)(Java Doc)
public boolean hasError()(Code)(Java Doc)
public boolean hasInstantiated()(Code)(Java Doc)
public boolean hasLanguage()(Code)(Java Doc)
public boolean hasLanguage(boolean forward)(Code)(Java Doc)
public boolean hasLocation()(Code)(Java Doc)
public boolean hasLocation(boolean forward)(Code)(Java Doc)
public boolean hasParameterized()(Code)(Java Doc)
public boolean hasScope()(Code)(Java Doc)
public boolean hasScope(boolean forward)(Code)(Java Doc)
public boolean hasShape()(Code)(Java Doc)
public boolean hasShape(boolean forward)(Code)(Java Doc)
public boolean hasStructOrUnion()(Code)(Java Doc)
public boolean hasTag(Tag tag)(Code)(Java Doc)
public boolean hasTagged()(Code)(Java Doc)
public boolean hasVariable()(Code)(Java Doc)
public boolean hasWTag(Tag tag)(Code)(Java Doc)
public boolean isAlias()(Code)(Java Doc)
public boolean isAnnotated()(Code)(Java Doc)
public boolean isArray()(Code)(Java Doc)
public boolean isBoolean()(Code)(Java Doc)
public boolean isClass()(Code)(Java Doc)
public boolean isConcrete()(Code)(Java Doc)
public boolean isDerived()(Code)(Java Doc)
public boolean isEnum()(Code)(Java Doc)
public boolean isEnumerator()(Code)(Java Doc)
public boolean isError()(Code)(Java Doc)
public boolean isFloat()(Code)(Java Doc)
public boolean isFunction()(Code)(Java Doc)
public boolean isInstantiated()(Code)(Java Doc)
public boolean isInteger()(Code)(Java Doc)
public boolean isInterface()(Code)(Java Doc)
public boolean isInternal()(Code)(Java Doc)
public boolean isLabel()(Code)(Java Doc)
public boolean isMethod()(Code)(Java Doc)
public boolean isNumber()(Code)(Java Doc)
public boolean isPackage()(Code)(Java Doc)
public boolean isParameter()(Code)(Java Doc)
public boolean isParameterized()(Code)(Java Doc)
public boolean isPointer()(Code)(Java Doc)
public boolean isSealed()(Code)(Java Doc)
public boolean isStruct()(Code)(Java Doc)
public boolean isTuple()(Code)(Java Doc)
public boolean isUnion()(Code)(Java Doc)
public boolean isUnit()(Code)(Java Doc)
public boolean isVariable()(Code)(Java Doc)
public boolean isVariant()(Code)(Java Doc)
public boolean isVoid()(Code)(Java Doc)
public boolean isWildcard()(Code)(Java Doc)
public boolean isWrapped()(Code)(Java Doc)
public Type language(Language language)(Code)(Java Doc)
public Type locate(Location location)(Code)(Java Doc)
public Type locate(Locatable locatable)(Code)(Java Doc)
public void mark(Node node)(Code)(Java Doc)
public Set<String> properties()(Code)(Java Doc)
public boolean removeAttribute(Attribute att)(Code)(Java Doc)
public Object removeProperty(String name)(Code)(Java Doc)
public Type resolve()(Code)(Java Doc)
public static Type resolve(Object type)(Code)(Java Doc)
public Type scope(String scope)(Code)(Java Doc)
public Type seal()(Code)(Java Doc)
public static List<T> seal(List<T> types)(Code)(Java Doc)
public void setLocation(Location location)(Code)(Java Doc)
public void setLocation(Locatable locatable)(Code)(Java Doc)
public Object setProperty(String name, Object value)(Code)(Java Doc)
public Type shape(boolean isStatic, String name)(Code)(Java Doc)
public Type shape(Reference shape)(Code)(Java Doc)
abstract public Tag tag()(Code)(Java Doc)
public AliasT toAlias()(Code)(Java Doc)
public AnnotatedT toAnnotated()(Code)(Java Doc)
public ArrayT toArray()(Code)(Java Doc)
public BooleanT toBoolean()(Code)(Java Doc)
public ClassT toClass()(Code)(Java Doc)
public EnumT toEnum()(Code)(Java Doc)
public EnumeratorT toEnumerator()(Code)(Java Doc)
public FloatT toFloat()(Code)(Java Doc)
public FunctionT toFunction()(Code)(Java Doc)
public InstantiatedT toInstantiated()(Code)(Java Doc)
public IntegerT toInteger()(Code)(Java Doc)
public InterfaceT toInterface()(Code)(Java Doc)
public InternalT toInternal()(Code)(Java Doc)
public LabelT toLabel()(Code)(Java Doc)
public MethodT toMethod()(Code)(Java Doc)
public NumberT toNumber()(Code)(Java Doc)
public PackageT toPackage()(Code)(Java Doc)
public Parameter toParameter()(Code)(Java Doc)
public ParameterizedT toParameterized()(Code)(Java Doc)
public PointerT toPointer()(Code)(Java Doc)
public StructT toStruct()(Code)(Java Doc)
public Tagged toTagged()(Code)(Java Doc)
public TupleT toTuple()(Code)(Java Doc)
public UnionT toUnion()(Code)(Java Doc)
public UnitT toUnit()(Code)(Java Doc)
public VariableT toVariable()(Code)(Java Doc)
public VariantT toVariant()(Code)(Java Doc)
public VoidT toVoid()(Code)(Java Doc)
public Wildcard toWildcard()(Code)(Java Doc)
public WrappedT toWrapped()(Code)(Java Doc)
public void trace(Runtime runtime)(Code)(Java Doc)
public Tag wtag()(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.