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


java.lang.Object
   xtc.typical.Primitives

Primitives
public class Primitives (Code)
The primitives for Typical.
author:
   Robert Grimm
version:
   $Revision: 1.48 $

Inner Class :final public static class Cons implements Function.F2<Pair<T>, T, Pair<T>>
Inner Class :final public static class Head implements Function.F1<T, Pair<T>>
Inner Class :final public static class Tail implements Function.F1<Pair<T>, Pair<T>>
Inner Class :final public static class Nth implements Function.F2<T, Pair<T>, BigInteger>
Inner Class :final public static class Exists implements Function.F2<Boolean, Function.F1<Boolean, ? super T>, Pair<T>>
Inner Class :final public static class Iter implements Function.F2<T, Function.F1<T, ? super U>, Pair<U>>
Inner Class :final public static class Map implements Function.F2<Pair<T>, Function.F1<T, ? super U>, Pair<U>>
Inner Class :final public static class FoldLeft implements Function.F3<T, Function.F2<T, ? super U, T>, Pair<U>, T>
Inner Class :final public static class Append implements Function.F2<Pair<T>, Pair<T>, Pair<T>>
Inner Class :final public static class Union implements Function.F2<Pair<T>, Pair<T>, Pair<T>>
Inner Class :final public static class Intersection implements Function.F2<Pair<T>, Pair<T>, Pair<T>>
Inner Class :final public static class Subtraction implements Function.F2<Pair<T>, Pair<T>, Pair<T>>
Inner Class :final public static class Trace implements Function.F1<T, T>
Inner Class :final public static class Trace2 implements Function.F2<T, String, T>

Field Summary
final public static  Function.F1<Float, Float>absFloat32
     Affirm a float.
final public static  Function.F1<Double, Double>absFloat64
     Affirm a double.
final public static  Function.F1<BigInteger, BigInteger>absInt
     Affirm a big integer.
final public static  Function.F2<Float, Float, Float>addFloat32
     Add two floats.
final public static  Function.F2<Double, Double, Double>addFloat64
     Add two doubles.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>addInt
     Add two big integers.
final public static  Function.F2<Boolean, Boolean, Boolean>and
     And two booleans.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>andBits
     Bitwise and two big integers.
final public static  Function.F3<Object, Node, String, Object>annotate
     The typical function for annotating nodes.
final public static  Function.F3<Object, Pair<Node>, String, Object>annotateList
     The typical function for annotating lists of nodes.
final public static  Function.F2<Pair, Pair, Pair>append
     Non-destructively append two lists.
final public static  Function.F2<String, String, String>concat
     Concatenate two strings.
final public static  Function.F2<Pair, Object, Pair>cons
     Cons a value onto a list.
final public static  Function.F2<Boolean, Object, Pair<?>>contains
     Determine whether a list contains an element.
final public static  Function.F2<Float, Float, Float>divideFloat32
     Divide two Floats.
final public static  Function.F2<Double, Double, Double>divideFloat64
     Divide two doubles.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>divideInt
     Divide two big integers.
final public static  Function.F2<Boolean, String, String>endsWith
     Check if the first string ends with the second.
final public static  Function.F2<Boolean, String, String>endsWithi
    
final public static  Function.F2<Boolean, Object, Object>equal
     Determine whether two objects are equal.
final public static  Function.F2<Boolean, Function.F1<Boolean, Object>, Pair>exists
     Determine whether a list element satisfies a predicate.
final public static  Function.F3<Object, Function.F2<Object, Object, Object>, Pair, Object>foldl
     Fold a list.
final public static  Function.F1<BigInteger, Double>ftoi
     Convert a float to an int .
final public static  Function.F1<String, Double>ftos
     Convert a float to a string.
final public static  Function.F2<Object, Object, Hashtable<Object, Object>>get
     A get function to access the hash table.
final public static  Function.F2<Object, Node, String>getAnnotation
    
final public static  Function.F2<Boolean, Float, Float>greaterEqualFloat32
     Determine whether one float is greater than another.
final public static  Function.F2<Boolean, Double, Double>greaterEqualFloat64
     Determine whether one double is greater than another.
final public static  Function.F2<Boolean, BigInteger, BigInteger>greaterEqualInt
     Determine whether one big integer is greater equal than another.
final public static  Function.F2<Boolean, Float, Float>greaterFloat32
     Determine whether one float is greater than another.
final public static  Function.F2<Boolean, Double, Double>greaterFloat64
     Determine whether one double is greater than another.
final public static  Function.F2<Boolean, BigInteger, BigInteger>greaterInt
     Determine whether one big integer is greater than another.
final public static  Function.F2<Boolean, Node, String>hasAnnotation
    
final public static  Function.F1<Object, Pair<?>>head
     Get a list's head.
final public static  Function.F2<Pair, Pair, Pair>intersection
     Determine the set intersection of two lists.
final public static  Function.F1<Boolean, Object>isBottom
     Test a value for bottom.
final public static  Function.F1<Boolean, Pair<?>>isEmpty
     Determine whether a list is empty.
final public static  Function.F1<Boolean, Object>isNotBottom
     Test a value for not being bottom.
final public static  Function.F2<Object, Function.F1<Object, Object>, Pair>iter
     Iterate a function over a list.
final public static  Function.F1<Double, BigInteger>itof
     Convert an int to a float.
final public static  Function.F1<String, BigInteger>itos
     Convert an interger to a string.
final public static  Function.F1<String, Pair<String>>joinStrings
    
final public static  Function.F1<BigInteger, Pair<?>>length
     Get a list's length.
final public static  Function.F2<Boolean, Float, Float>lessEqualFloat32
     Determine whether one float is greater than another.
final public static  Function.F2<Boolean, Double, Double>lessEqualFloat64
     Determine whether one double is greater than another.
final public static  Function.F2<Boolean, BigInteger, BigInteger>lessEqualInt
     Determine whether one big integer is less equal than another.
final public static  Function.F2<Boolean, Float, Float>lessFloat32
     Determine whether one float is less than another.
final public static  Function.F2<Boolean, Double, Double>lessFloat64
     Determine whether one double is less than another.
final public static  Function.F2<Boolean, BigInteger, BigInteger>lessInt
     Determine whether one big integer is less than another.
final public static  Function.F2<Pair, Function.F1<Object, Object>, Pair>map
     Map a function over a list.
final public static  Function.F2<Float, Float, Float>modFloat32
     Determine the modulo of two floats.
final public static  Function.F2<Double, Double, Double>modFloat64
     Determine the modulo of two doubles.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>modInt
     Determine the modulo of two big integers.
final public static  Function.F2<Float, Float, Float>multiplyFloat32
     Multiply two floats.
final public static  Function.F2<Double, Double, Double>multiplyFloat64
     Multiply two doubles.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>multiplyInt
     Multiply two big integers.
final public static  Function.F1<BigInteger, BigInteger>negateBits
     Bitwise negate a big integer.
final public static  Function.F1<Float, Float>negateFloat32
     Negate a float.
final public static  Function.F1<Double, Double>negateFloat64
     Negate a double.
final public static  Function.F1<BigInteger, BigInteger>negateInt
     Negate a big integer.
final public static  Function.F1<String, Object>node_name
     The function to get the name of a node.
final public static  Function.F0<BigInteger>nonce
     Create a nonce.
protected static  BigIntegernonceCounter
     The nonce counter.
final public static  Function.F1<Boolean, Boolean>not
     Negate a boolean.
final public static  Function.F2<Object, Pair<?>, BigInteger>nth
     Get a list's nth element.
final public static  Function.F2<Boolean, Boolean, Boolean>or
     Or two booleans.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>orBits
     Bitwise or two big integers.
final public static  Function.F3<Void, Object, Object, Hashtable<Object, Object>>put
     A put function to access the hash table.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>shiftLeft
     Shift left a big integer.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>shiftRight
     Shift right a big integer.
final public static  Function.F1<BigInteger, String>ssize
    
final public static  Function.F2<Boolean, String, String>startsWith
     Check if the first string starts with the second.
final public static  Function.F2<Boolean, String, String>startsWithi
     Check if the first string starts with the second.
final public static  Function.F1<Double, String>stof
     Convert a string to a double.
final public static  Function.F2<BigInteger, String, BigInteger>stoi
     Convert a string to a big integer.
final public static  Function.F2<String, String, BigInteger>substring
    
final public static  Function.F3<String, String, BigInteger, BigInteger>substring2
    
final public static  Function.F2<Float, Float, Float>subtractFloat32
     Subtract two floats.
final public static  Function.F2<Double, Double, Double>subtractFloat64
     Subtract two doubles.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>subtractInt
     Subtract two big integers.
final public static  Function.F2<Pair, Pair, Pair>subtraction
     Determine the set subtraction of two lists.
final public static  Function.F1<Pair<?>, Pair<?>>tail
     Get a list's tail.
final public static  Function.F1<Object, Object>trace
     Trace a value.
final public static  Function.F2<Object, String, Object>trace2
     Trace a value.
final public static  Function.F2<Pair, Pair, Pair>union
     Determine the set union of two lists.
final public static  Function.F2<BigInteger, BigInteger, BigInteger>xorBits
     Bitwise xor two big integers.


Method Summary
public static  StringconvertName(String name)
     Convert a name from ML style to Java style.
Parameters:
  name - The name to convert.
final public static  Pair<T>copyPair(Pair<R> left)
     Copy a list.
Parameters:
  left - The list to copy.
final public static  TfindInPair(Object o, Pair<T> p)
     Find an object in a pair.
Parameters:
  o - The object to find.
Parameters:
  p - The list.
final public static  Pair<T>getChildren(Node n, int from, int to)
     Get children of a node by indice.
Parameters:
  n - The node to get children.
Parameters:
  from - The start index.
Parameters:
  to - The end index.
public static  booleanhasIntegerType(String name)
    
public static  booleanisPrimitive(String name)
    
final public static  Pair<T>removeFromPair(Object o, Pair<T> left)
     Remove an object from a list.
Parameters:
  o - The object to remove.
Parameters:
  left - The list to remove an object from.
final public static  inttoInt(BigInteger val)
     Convert the specified big integer to an int value.
Parameters:
  val - The big integer.
final public static  voidtrace(String msg, Object o)
     Trace the specified object.
final public static  Pair<T>wrapAppend(Pair<T> l, Pair<T> r)
     Magic cast wrapper for append
Parameters:
  l - The left pair.
Parameters:
  r - The right pair.
final public static  Pair<T>wrapCons(T head, Pair<T> p)
     Magic cast wrapper for Primitives.cons
Parameters:
  head - The head of the pair.
Parameters:
  p - The tail of the pair.
final public static  TwrapHead(Pair<T> p)
     Magic cast wrapper for head
Parameters:
  p - The pair.
final public static  Pair<T>wrapTail(Pair<T> p)
     Magic cast wrapper for Primitives.tail
Parameters:
  p - The pair.
final public static  Pair<T>wrapUnion(Pair<T> l, Pair<T> r)
     Magic cast wrapper for Primitives.union
Parameters:
  l - The left pair.
Parameters:
  r - The right pair.

Field Detail
absFloat32
final public static Function.F1<Float, Float> absFloat32(Code)
Affirm a float.



absFloat64
final public static Function.F1<Double, Double> absFloat64(Code)
Affirm a double.



absInt
final public static Function.F1<BigInteger, BigInteger> absInt(Code)
Affirm a big integer.



addFloat32
final public static Function.F2<Float, Float, Float> addFloat32(Code)
Add two floats.



addFloat64
final public static Function.F2<Double, Double, Double> addFloat64(Code)
Add two doubles.



addInt
final public static Function.F2<BigInteger, BigInteger, BigInteger> addInt(Code)
Add two big integers.



and
final public static Function.F2<Boolean, Boolean, Boolean> and(Code)
And two booleans.



andBits
final public static Function.F2<BigInteger, BigInteger, BigInteger> andBits(Code)
Bitwise and two big integers.



annotate
final public static Function.F3<Object, Node, String, Object> annotate(Code)
The typical function for annotating nodes.



annotateList
final public static Function.F3<Object, Pair<Node>, String, Object> annotateList(Code)
The typical function for annotating lists of nodes.



append
final public static Function.F2<Pair, Pair, Pair> append(Code)
Non-destructively append two lists.



concat
final public static Function.F2<String, String, String> concat(Code)
Concatenate two strings.



cons
final public static Function.F2<Pair, Object, Pair> cons(Code)
Cons a value onto a list.



contains
final public static Function.F2<Boolean, Object, Pair<?>> contains(Code)
Determine whether a list contains an element.



divideFloat32
final public static Function.F2<Float, Float, Float> divideFloat32(Code)
Divide two Floats.



divideFloat64
final public static Function.F2<Double, Double, Double> divideFloat64(Code)
Divide two doubles.



divideInt
final public static Function.F2<BigInteger, BigInteger, BigInteger> divideInt(Code)
Divide two big integers.



endsWith
final public static Function.F2<Boolean, String, String> endsWith(Code)
Check if the first string ends with the second.



endsWithi
final public static Function.F2<Boolean, String, String> endsWithi(Code)
Check if the first string ends with - ignoring case



equal
final public static Function.F2<Boolean, Object, Object> equal(Code)
Determine whether two objects are equal.



exists
final public static Function.F2<Boolean, Function.F1<Boolean, Object>, Pair> exists(Code)
Determine whether a list element satisfies a predicate.



foldl
final public static Function.F3<Object, Function.F2<Object, Object, Object>, Pair, Object> foldl(Code)
Fold a list.



ftoi
final public static Function.F1<BigInteger, Double> ftoi(Code)
Convert a float to an int .



ftos
final public static Function.F1<String, Double> ftos(Code)
Convert a float to a string.



get
final public static Function.F2<Object, Object, Hashtable<Object, Object>> get(Code)
A get function to access the hash table.



getAnnotation
final public static Function.F2<Object, Node, String> getAnnotation(Code)
The typical function for getting node annotation



greaterEqualFloat32
final public static Function.F2<Boolean, Float, Float> greaterEqualFloat32(Code)
Determine whether one float is greater than another.



greaterEqualFloat64
final public static Function.F2<Boolean, Double, Double> greaterEqualFloat64(Code)
Determine whether one double is greater than another.



greaterEqualInt
final public static Function.F2<Boolean, BigInteger, BigInteger> greaterEqualInt(Code)
Determine whether one big integer is greater equal than another.



greaterFloat32
final public static Function.F2<Boolean, Float, Float> greaterFloat32(Code)
Determine whether one float is greater than another.



greaterFloat64
final public static Function.F2<Boolean, Double, Double> greaterFloat64(Code)
Determine whether one double is greater than another.



greaterInt
final public static Function.F2<Boolean, BigInteger, BigInteger> greaterInt(Code)
Determine whether one big integer is greater than another.



hasAnnotation
final public static Function.F2<Boolean, Node, String> hasAnnotation(Code)
The typical function for checking if a node has an annotation



head
final public static Function.F1<Object, Pair<?>> head(Code)
Get a list's head.



intersection
final public static Function.F2<Pair, Pair, Pair> intersection(Code)
Determine the set intersection of two lists.



isBottom
final public static Function.F1<Boolean, Object> isBottom(Code)
Test a value for bottom.



isEmpty
final public static Function.F1<Boolean, Pair<?>> isEmpty(Code)
Determine whether a list is empty.



isNotBottom
final public static Function.F1<Boolean, Object> isNotBottom(Code)
Test a value for not being bottom.



iter
final public static Function.F2<Object, Function.F1<Object, Object>, Pair> iter(Code)
Iterate a function over a list.



itof
final public static Function.F1<Double, BigInteger> itof(Code)
Convert an int to a float.



itos
final public static Function.F1<String, BigInteger> itos(Code)
Convert an interger to a string.



joinStrings
final public static Function.F1<String, Pair<String>> joinStrings(Code)
Join strings



length
final public static Function.F1<BigInteger, Pair<?>> length(Code)
Get a list's length.



lessEqualFloat32
final public static Function.F2<Boolean, Float, Float> lessEqualFloat32(Code)
Determine whether one float is greater than another.



lessEqualFloat64
final public static Function.F2<Boolean, Double, Double> lessEqualFloat64(Code)
Determine whether one double is greater than another.



lessEqualInt
final public static Function.F2<Boolean, BigInteger, BigInteger> lessEqualInt(Code)
Determine whether one big integer is less equal than another.



lessFloat32
final public static Function.F2<Boolean, Float, Float> lessFloat32(Code)
Determine whether one float is less than another.



lessFloat64
final public static Function.F2<Boolean, Double, Double> lessFloat64(Code)
Determine whether one double is less than another.



lessInt
final public static Function.F2<Boolean, BigInteger, BigInteger> lessInt(Code)
Determine whether one big integer is less than another.



map
final public static Function.F2<Pair, Function.F1<Object, Object>, Pair> map(Code)
Map a function over a list.



modFloat32
final public static Function.F2<Float, Float, Float> modFloat32(Code)
Determine the modulo of two floats.



modFloat64
final public static Function.F2<Double, Double, Double> modFloat64(Code)
Determine the modulo of two doubles.



modInt
final public static Function.F2<BigInteger, BigInteger, BigInteger> modInt(Code)
Determine the modulo of two big integers.



multiplyFloat32
final public static Function.F2<Float, Float, Float> multiplyFloat32(Code)
Multiply two floats.



multiplyFloat64
final public static Function.F2<Double, Double, Double> multiplyFloat64(Code)
Multiply two doubles.



multiplyInt
final public static Function.F2<BigInteger, BigInteger, BigInteger> multiplyInt(Code)
Multiply two big integers.



negateBits
final public static Function.F1<BigInteger, BigInteger> negateBits(Code)
Bitwise negate a big integer.



negateFloat32
final public static Function.F1<Float, Float> negateFloat32(Code)
Negate a float.



negateFloat64
final public static Function.F1<Double, Double> negateFloat64(Code)
Negate a double.



negateInt
final public static Function.F1<BigInteger, BigInteger> negateInt(Code)
Negate a big integer.



node_name
final public static Function.F1<String, Object> node_name(Code)
The function to get the name of a node.



nonce
final public static Function.F0<BigInteger> nonce(Code)
Create a nonce. The implementation is not thread-safe.



nonceCounter
protected static BigInteger nonceCounter(Code)
The nonce counter.



not
final public static Function.F1<Boolean, Boolean> not(Code)
Negate a boolean.



nth
final public static Function.F2<Object, Pair<?>, BigInteger> nth(Code)
Get a list's nth element.



or
final public static Function.F2<Boolean, Boolean, Boolean> or(Code)
Or two booleans.



orBits
final public static Function.F2<BigInteger, BigInteger, BigInteger> orBits(Code)
Bitwise or two big integers.



put
final public static Function.F3<Void, Object, Object, Hashtable<Object, Object>> put(Code)
A put function to access the hash table.



shiftLeft
final public static Function.F2<BigInteger, BigInteger, BigInteger> shiftLeft(Code)
Shift left a big integer.



shiftRight
final public static Function.F2<BigInteger, BigInteger, BigInteger> shiftRight(Code)
Shift right a big integer.



ssize
final public static Function.F1<BigInteger, String> ssize(Code)
Get a string's size



startsWith
final public static Function.F2<Boolean, String, String> startsWith(Code)
Check if the first string starts with the second.



startsWithi
final public static Function.F2<Boolean, String, String> startsWithi(Code)
Check if the first string starts with the second.



stof
final public static Function.F1<Double, String> stof(Code)
Convert a string to a double.



stoi
final public static Function.F2<BigInteger, String, BigInteger> stoi(Code)
Convert a string to a big integer.



substring
final public static Function.F2<String, String, BigInteger> substring(Code)
Get the substrng starting at the specified index



substring2
final public static Function.F3<String, String, BigInteger, BigInteger> substring2(Code)
Get the substrng at the specified range



subtractFloat32
final public static Function.F2<Float, Float, Float> subtractFloat32(Code)
Subtract two floats.



subtractFloat64
final public static Function.F2<Double, Double, Double> subtractFloat64(Code)
Subtract two doubles.



subtractInt
final public static Function.F2<BigInteger, BigInteger, BigInteger> subtractInt(Code)
Subtract two big integers.



subtraction
final public static Function.F2<Pair, Pair, Pair> subtraction(Code)
Determine the set subtraction of two lists.



tail
final public static Function.F1<Pair<?>, Pair<?>> tail(Code)
Get a list's tail.



trace
final public static Function.F1<Object, Object> trace(Code)
Trace a value.



trace2
final public static Function.F2<Object, String, Object> trace2(Code)
Trace a value.



union
final public static Function.F2<Pair, Pair, Pair> union(Code)
Determine the set union of two lists.



xorBits
final public static Function.F2<BigInteger, BigInteger, BigInteger> xorBits(Code)
Bitwise xor two big integers.





Method Detail
convertName
public static String convertName(String name)(Code)
Convert a name from ML style to Java style.
Parameters:
  name - The name to convert. The converted name.



copyPair
final public static Pair<T> copyPair(Pair<R> left)(Code)
Copy a list.
Parameters:
  left - The list to copy. The copy.



findInPair
final public static T findInPair(Object o, Pair<T> p)(Code)
Find an object in a pair.
Parameters:
  o - The object to find.
Parameters:
  p - The list. The object or null if the list does notcontain the object.



getChildren
final public static Pair<T> getChildren(Node n, int from, int to)(Code)
Get children of a node by indice.
Parameters:
  n - The node to get children.
Parameters:
  from - The start index.
Parameters:
  to - The end index. null if the indice are out of range, otherwise return a pair of nodes.



hasIntegerType
public static boolean hasIntegerType(String name)(Code)
Check if a machine dependent constant has integer type
Parameters:
  name - The name of the constant true if that constant has integer type, otherwise false



isPrimitive
public static boolean isPrimitive(String name)(Code)
Check if a function is a primitive function
Parameters:
  name - The function name true or false



removeFromPair
final public static Pair<T> removeFromPair(Object o, Pair<T> left)(Code)
Remove an object from a list.
Parameters:
  o - The object to remove.
Parameters:
  left - The list to remove an object from. The resulted list.



toInt
final public static int toInt(BigInteger val)(Code)
Convert the specified big integer to an int value.
Parameters:
  val - The big integer. The corresponding int value.
throws:
  IllegalArgumentException - Signals that the big integer'svalue is too large.



trace
final public static void trace(String msg, Object o)(Code)
Trace the specified object.
Parameters:
  msg - The message prefix.
Parameters:
  o - The object.



wrapAppend
final public static Pair<T> wrapAppend(Pair<T> l, Pair<T> r)(Code)
Magic cast wrapper for append
Parameters:
  l - The left pair.
Parameters:
  r - The right pair. The concatenation of the two pairs.



wrapCons
final public static Pair<T> wrapCons(T head, Pair<T> p)(Code)
Magic cast wrapper for Primitives.cons
Parameters:
  head - The head of the pair.
Parameters:
  p - The tail of the pair. The consed pair.



wrapHead
final public static T wrapHead(Pair<T> p)(Code)
Magic cast wrapper for head
Parameters:
  p - The pair. The head of the pair.



wrapTail
final public static Pair<T> wrapTail(Pair<T> p)(Code)
Magic cast wrapper for Primitives.tail
Parameters:
  p - The pair. The tail of the pair.



wrapUnion
final public static Pair<T> wrapUnion(Pair<T> l, Pair<T> r)(Code)
Magic cast wrapper for Primitives.union
Parameters:
  l - The left pair.
Parameters:
  r - The right pair. The union of the two pairs.



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.