Java Doc for UsefulTools.java in  » Testing » KeY » de » uka » ilkd » key » jml » 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 » de.uka.ilkd.key.jml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.jml.UsefulTools

UsefulTools
public class UsefulTools (Code)




Method Summary
public static  TermaddRepresents(Term t, Services services, ProgramVariable self)
     adds updates for represents clauses if necessary.
public static  TermallInvariants(Implementation2SpecMap ism)
     Returns a conjunction of the terms returned by getAllInvariants() for every JMLClassSpec.
public static  NamespacebuildParamNamespace(MethodDeclaration md)
    
public static  SetOfTermcollectModelVariables(Term b, boolean ignoreMod)
     Collects the model variables in b.
public static  TermcreateQuantifierTermWithPV(Quantifier q, Term vTerm, LogicVariable lv, Term body)
    
public static  TermcreateTermForQuery(ProgramMethod pm, ListOfTerm args, ReferencePrefix prefix)
    
public static  ParameterDeclarationgetParameterDeclForVar(Term var, Services serv)
    
public static  ListOfNamedgetParameters(MethodDeclaration md)
    
public static  ListOfTermgetProgramVariablesFromTerm(Term t, ListOfTerm result)
    
public static  booleanisClassSpec(Comment c)
    
public static  TermisCreated(Term objectToGuard, Services s)
    
public static  TermmakeConjunction(Term t1, Term t2)
    
public static  ListOfTermoccursAsAttr(ProgramVariable attr, Term b, boolean ignoreMod)
     Checks whether attr occurs in b and returns the terms of the form t.attr that have been found in b.
public static  booleanoccursIn(Term a, Term b, boolean ignoreMod)
     Checks whether a occurs in b or not.
public static  ProgramMethodpurityCheck(JMLMethodSpec spec, Implementation2SpecMap ism)
     Checks whether only pure methods have been used in this specification or not.
public static  ProgramMethodpurityCheck(Term t, Implementation2SpecMap ism)
     Checks whether only pure methods have been used in this term or not.
public static  TermquantifyProgramVariable(Term t, ProgramVariable v, Quantifier q, Services serv)
     Returns q lv .
public static  TermquantifyProgramVariables(Term t, Namespace ns, Quantifier q, Services serv)
     Creates a quantified LogicVariable lv_i for ProgramVariabes p_i in t that aren't contained in the Namespace ns.
public static  TermquantifyProgramVariables(Term t, IteratorOfNamed it, Quantifier q, Services serv)
    
public static  TermquantifySelf(Term t, MethodDeclaration md, ProgramVariable self)
     Returns forall self_lv( {self:=self_lv} t ) if t is neither static nor a constructor or t otherwise.



Method Detail
addRepresents
public static Term addRepresents(Term t, Services services, ProgramVariable self)(Code)
adds updates for represents clauses if necessary. These Updates have the form {m := m()}t where m is a modelfield and m() is a query generated from the represents clause for m.



allInvariants
public static Term allInvariants(Implementation2SpecMap ism)(Code)
Returns a conjunction of the terms returned by getAllInvariants() for every JMLClassSpec.



buildParamNamespace
public static Namespace buildParamNamespace(MethodDeclaration md)(Code)



collectModelVariables
public static SetOfTerm collectModelVariables(Term b, boolean ignoreMod)(Code)
Collects the model variables in b. If ignoreMod is true, subterms with a modality as top operant are ignored.



createQuantifierTermWithPV
public static Term createQuantifierTermWithPV(Quantifier q, Term vTerm, LogicVariable lv, Term body)(Code)
creates <{typeof(vTerm) v;}> q lv ({vTerm := lv} body) where v = vTerm.op()



createTermForQuery
public static Term createTermForQuery(ProgramMethod pm, ListOfTerm args, ReferencePrefix prefix)(Code)



getParameterDeclForVar
public static ParameterDeclaration getParameterDeclForVar(Term var, Services serv)(Code)



getParameters
public static ListOfNamed getParameters(MethodDeclaration md)(Code)



getProgramVariablesFromTerm
public static ListOfTerm getProgramVariablesFromTerm(Term t, ListOfTerm result)(Code)



isClassSpec
public static boolean isClassSpec(Comment c)(Code)
returns true if c contains a jml keyword that does not occur in methodspecs



isCreated
public static Term isCreated(Term objectToGuard, Services s)(Code)



makeConjunction
public static Term makeConjunction(Term t1, Term t2)(Code)



occursAsAttr
public static ListOfTerm occursAsAttr(ProgramVariable attr, Term b, boolean ignoreMod)(Code)
Checks whether attr occurs in b and returns the terms of the form t.attr that have been found in b. If ignoreMod is true, subterms with a modality as top operant are ignored.



occursIn
public static boolean occursIn(Term a, Term b, boolean ignoreMod)(Code)
Checks whether a occurs in b or not. If ignoreMod is true, subterms with a modality as top operant are ignored.



purityCheck
public static ProgramMethod purityCheck(JMLMethodSpec spec, Implementation2SpecMap ism)(Code)
Checks whether only pure methods have been used in this specification or not. null iff every method used in this term is declared with the jml-modifier pure or a method that isn't declared with pure otherwise.



purityCheck
public static ProgramMethod purityCheck(Term t, Implementation2SpecMap ism)(Code)
Checks whether only pure methods have been used in this term or not. null iff every method used in this term is declared with the jml-modifier pure or a method that isn't declared with pure otherwise.



quantifyProgramVariable
public static Term quantifyProgramVariable(Term t, ProgramVariable v, Quantifier q, Services serv)(Code)
Returns q lv . {v := lv}t



quantifyProgramVariables
public static Term quantifyProgramVariables(Term t, Namespace ns, Quantifier q, Services serv)(Code)
Creates a quantified LogicVariable lv_i for ProgramVariabes p_i in t that aren't contained in the Namespace ns. q lv_1...lv_n {p_1 := lv_1}..{p_n := lv_n} t.



quantifyProgramVariables
public static Term quantifyProgramVariables(Term t, IteratorOfNamed it, Quantifier q, Services serv)(Code)



quantifySelf
public static Term quantifySelf(Term t, MethodDeclaration md, ProgramVariable self)(Code)
Returns forall self_lv( {self:=self_lv} t ) if t is neither static nor a constructor or t otherwise.



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.