Java Doc for JMLListValueNode.java in  » Testing » KeY » org » jmlspecs » models » 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 » Testing » KeY » org.jmlspecs.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jmlspecs.models.JMLListValueNode

JMLListValueNode
class JMLListValueNode implements JMLValueType(Code)
An implementation class used in various models. These are singly-linked list nodes containing values. The empty list is represented by null, which makes dealing with these lists tricky. Normal users should use JMLValueSequence instead of this type to avoid these difficulties.

This type uses ".equals" to compare elements. The cons method clones elements that are passed into the list.
version:
   $Revision: 1.1.1.1 $
author:
   Gary T. Leavens
author:
   Albert L. Baker
See Also:   JMLValueSequence
See Also:   JMLValueBag
See Also:   JMLValueSet



Field Summary
final public  JMLListValueNodenext
     The next node in this list.
final public  JMLTypeval
     The data contained in this list node.

Constructor Summary
public  JMLListValueNode(JMLType item, JMLListValueNode nxt)
     Initialize this list to have the given item as its first element followed by the given list.

Method Summary
public  JMLListValueNodeappend(JMLType item)
     Return a list that consists of this list and the given element.
public  Objectclone()
     Return a clone of this object.
public  JMLListValueNodeconcat(JMLListValueNode ls2)
     Return a list that is the concatenation of this with the given lists.
Parameters:
  ls2 - the list to place at the end of this list in theresult.
public static  JMLListValueNodecons(JMLType hd, JMLListValueNode tl)
     Return a JMLListValueNode containing the given element followed by the given list. Note that cons() adds elements to the front of a list.
public  booleanequals(Object ls2)
     Test whether this object's value is equal to the given argument.
public  JMLTypegetItem(JMLType item)
    
public  booleanhas(JMLType item)
     Tells whether the given element is ".equals" to an element in the list.
public  inthashCode()
     Return a hash code for this object.
public  JMLTypehead()
     Return the first element in this list.
public  booleanheadEquals(JMLType item)
     Tell if the head of the list is ".equals" to the given item.
public  intindexOf(JMLType item)
    
public  JMLListValueNodeinsertBefore(int n, JMLType item)
     Return a list that is like this list but with the given item inserted before the given index.
public  intint_length()
     Tells the number of elements in the list; a synonym for size.
public  intint_size()
     Tells the number of elements in the list; a synonym for length.
public  booleanisPrefixOf(JMLListValueNode ls2)
     Tells whether the elements of this list occur, in order, at the beginning of the given list, using ".equals" for comparisons.
public  JMLTypeitemAt(int i)
     Return the ith element of a list.
public  JMLTypelast()
    
public  JMLListValueNodeprefix(int n)
     Return a list containing the first n elements in this list.
Parameters:
  n - the number of elements to leave in the result.
public  JMLListValueNodeprepend(JMLType item)
     Return a list that is like this, but with the given item at the front.
public  JMLListValueNoderemove(JMLType item)
     Return a list that is like this list but without the first occurrence of the given item.
public  JMLListValueNoderemoveItemAt(int n)
    
public  JMLListValueNoderemoveLast()
    
public  JMLListValueNoderemovePrefix(int n)
    
public  JMLListValueNodereplaceItemAt(int n, JMLType item)
     Return a list like this, but with item replacing the element at the given zero-based index.
public  JMLListValueNodereverse()
     Return a list that is the reverse of this list.
public  StringtoString()
     Return a string representation for this list.

Field Detail
next
final public JMLListValueNode next(Code)
The next node in this list.



val
final public JMLType val(Code)
The data contained in this list node.




Constructor Detail
JMLListValueNode
public JMLListValueNode(JMLType item, JMLListValueNode nxt)(Code)
Initialize this list to have the given item as its first element followed by the given list. This does not do any cloning.
Parameters:
  item - the value to place at the head of this list.
Parameters:
  nxt - the _JMLListValueNode to make the tail of this list.




Method Detail
append
public JMLListValueNode append(JMLType item)(Code)
Return a list that consists of this list and the given element.



clone
public Object clone()(Code)
Return a clone of this object.



concat
public JMLListValueNode concat(JMLListValueNode ls2)(Code)
Return a list that is the concatenation of this with the given lists.
Parameters:
  ls2 - the list to place at the end of this list in theresult. the concatenation of this list and ls2.



cons
public static JMLListValueNode cons(JMLType hd, JMLListValueNode tl)(Code)
Return a JMLListValueNode containing the given element followed by the given list. Note that cons() adds elements to the front of a list. It handles any necessary cloning for value lists and it handles inserting null elements.
Parameters:
  hd - the value to place at the head of the result.
Parameters:
  tl - the JMLListValueNode to make the tail of the result.



equals
public boolean equals(Object ls2)(Code)
Test whether this object's value is equal to the given argument.



getItem
public JMLType getItem(JMLType item) throws JMLListException(Code)



has
public boolean has(JMLType item)(Code)
Tells whether the given element is ".equals" to an element in the list.



hashCode
public int hashCode()(Code)
Return a hash code for this object.



head
public JMLType head()(Code)
Return the first element in this list. Note that head() handles any cloning necessary for value lists.



headEquals
public boolean headEquals(JMLType item)(Code)
Tell if the head of the list is ".equals" to the given item.
See Also:   JMLListValueNode.has(JMLType)



indexOf
public int indexOf(JMLType item)(Code)



insertBefore
public JMLListValueNode insertBefore(int n, JMLType item) throws JMLListException(Code)
Return a list that is like this list but with the given item inserted before the given index.



int_length
public int int_length()(Code)
Tells the number of elements in the list; a synonym for size.



int_size
public int int_size()(Code)
Tells the number of elements in the list; a synonym for length.



isPrefixOf
public boolean isPrefixOf(JMLListValueNode ls2)(Code)
Tells whether the elements of this list occur, in order, at the beginning of the given list, using ".equals" for comparisons.



itemAt
public JMLType itemAt(int i) throws JMLListException(Code)
Return the ith element of a list.
See Also:   JMLListValueNode.getItem(int)



last
public JMLType last()(Code)



prefix
public JMLListValueNode prefix(int n)(Code)
Return a list containing the first n elements in this list.
Parameters:
  n - the number of elements to leave in the result. null if n is not positive or greater than the length of this list.



prepend
public JMLListValueNode prepend(JMLType item)(Code)
Return a list that is like this, but with the given item at the front. Note that this clones the item if necessary.
Parameters:
  item - the element to place at the front of the result.



remove
public JMLListValueNode remove(JMLType item)(Code)
Return a list that is like this list but without the first occurrence of the given item.



removeItemAt
public JMLListValueNode removeItemAt(int n)(Code)



removeLast
public JMLListValueNode removeLast()(Code)



removePrefix
public JMLListValueNode removePrefix(int n)(Code)



replaceItemAt
public JMLListValueNode replaceItemAt(int n, JMLType item)(Code)
Return a list like this, but with item replacing the element at the given zero-based index.
Parameters:
  n - the zero-based index into this list.
Parameters:
  item - the item to put at index index



reverse
public JMLListValueNode reverse()(Code)
Return a list that is the reverse of this list.



toString
public String toString()(Code)
Return a string representation for this list. The output is ML style.



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, 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.