Java Doc for JMLClassSpec.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.logic.TermBuilder
      de.uka.ilkd.key.jml.JMLSpec
         de.uka.ilkd.key.jml.JMLClassSpec

JMLClassSpec
public class JMLClassSpec extends JMLSpec (Code)
wraps specifications that are valid for the entire class (e.g. invariants or history constraints) or interface


Field Summary
protected static  TermfalseTerm
    
protected  booleanstaticInit
    
protected static  TermtrueTerm
    

Constructor Summary
public  JMLClassSpec(Services services, TypeDeclaration cd, NamespaceSet nss, String javaPath)
    

Method Summary
public  TermaddClassSpec2Post(Term post, boolean constraints, boolean invariants, ProgramMethod md, JMLClassSpec cSpec)
     Adds invariants and history constraints to the postcondition iff md isn't declared with the modifier helper.
public  TermaddClassSpec2Pre(Term pre, ProgramMethod md, JMLClassSpec cSpec)
     Adds the applicable invariants of cSpec to the precondition of md iff md isn't declared with the modifier helper.
public  voidaddInstanceConstraint(Term t)
    
public  voidaddInstanceInvariant(Term t)
    
public  voidaddModelMethod(ProgramMethod pm)
    
public  voidaddModelVariable(ProgramVariable v)
    
public  voidaddRepresents(Term loc, Term rep)
     adds the representation rep for the model variable var.
public  voidaddRepresents(ProgramVariable v, Term rep)
     adds the representation rep for the model variable var.
public  voidaddStaticConstraint(Term t)
    
public  voidaddStaticInvariant(Term t)
    
public  voidaddSuchThat(Term t_loc, Term axiom)
    
public  HashMapbuildModelMethod2Specs()
     returns a mapping from modelmethods to their specifications.
public  booleancontainsInvOrConst()
    
public  TermgetAllLocalInvariants()
     Returns the Term ((self!=null & self.created=true) -> instanceInvariants ) & staticInvariants, which is sometimes needed in POs.
public  SetOfTermgetAllQuantifiedInvariants()
    
public  TypeDeclarationgetClassDeclaration()
     returns the class or interfacedeclaration this specification refers to.
public  TermgetExTermForModelVar(Term modelVar, Term axiom)
     generates \exists x .
public  TermgetInstanceConstraints()
    
public  TermgetInstanceInvariants()
     returns locally declared and inherited instance invariants.
public  ReferencePrefixgetInstancePrefix()
    
public  TermgetLocalInstanceConstraints()
    
public  TermgetLocalInstanceInvariants()
    
public  TermgetLocalStaticConstraints()
    
public  TermgetLocalStaticInvariants()
    
public  NamespacegetModelMethods()
    
public  NamespacegetModelVars()
    
public  TermgetPreservesInvariantBehavior(ProgramMethod md, boolean allInv)
     returns a term of the form inv -> <{try{ m();}catch(Exception e)}>inv If allInv is true, inv is a conjunction of all (static and instance) invariants of every existing type or just the invariants of this type specification otherwise.
public  SetOfTermgetQuantifiedInstanceInvariants()
    
public  HashMapgetRepresents()
     returns a HashMap that contains the locally defined and inherited represents relations.
public  ServicesgetServices()
    
public  TermgetStaticConstraints()
    
public  TermgetStaticInvariants()
    
public  ReferencePrefixgetStaticPrefix()
    
public  LinkedHashMapgetTerm2Old()
    
protected  TermgetTermForModelMethod(ProgramMethod pm)
    
public  ProgramVariablelookupModelField(Name name)
    
public  ProgramMethodlookupModelMethod(Name name)
    
public  ProgramMethodlookupModelMethodLocally(String name)
     returns the model method with the name name, iff it is loacally declared within the type that is specified by this specification.
public  StringtoString()
    

Field Detail
falseTerm
protected static Term falseTerm(Code)



staticInit
protected boolean staticInit(Code)



trueTerm
protected static Term trueTerm(Code)




Constructor Detail
JMLClassSpec
public JMLClassSpec(Services services, TypeDeclaration cd, NamespaceSet nss, String javaPath)(Code)




Method Detail
addClassSpec2Post
public Term addClassSpec2Post(Term post, boolean constraints, boolean invariants, ProgramMethod md, JMLClassSpec cSpec)(Code)
Adds invariants and history constraints to the postcondition iff md isn't declared with the modifier helper.



addClassSpec2Pre
public Term addClassSpec2Pre(Term pre, ProgramMethod md, JMLClassSpec cSpec)(Code)
Adds the applicable invariants of cSpec to the precondition of md iff md isn't declared with the modifier helper. md must be a member method of cSpec.



addInstanceConstraint
public void addInstanceConstraint(Term t)(Code)



addInstanceInvariant
public void addInstanceInvariant(Term t)(Code)



addModelMethod
public void addModelMethod(ProgramMethod pm)(Code)



addModelVariable
public void addModelVariable(ProgramVariable v)(Code)



addRepresents
public void addRepresents(Term loc, Term rep)(Code)
adds the representation rep for the model variable var.



addRepresents
public void addRepresents(ProgramVariable v, Term rep)(Code)
adds the representation rep for the model variable var.



addStaticConstraint
public void addStaticConstraint(Term t)(Code)



addStaticInvariant
public void addStaticInvariant(Term t)(Code)



addSuchThat
public void addSuchThat(Term t_loc, Term axiom)(Code)



buildModelMethod2Specs
public HashMap buildModelMethod2Specs()(Code)
returns a mapping from modelmethods to their specifications.



containsInvOrConst
public boolean containsInvOrConst()(Code)



getAllLocalInvariants
public Term getAllLocalInvariants()(Code)
Returns the Term ((self!=null & self.created=true) -> instanceInvariants ) & staticInvariants, which is sometimes needed in POs.



getAllQuantifiedInvariants
public SetOfTerm getAllQuantifiedInvariants()(Code)



getClassDeclaration
public TypeDeclaration getClassDeclaration()(Code)
returns the class or interfacedeclaration this specification refers to.



getExTermForModelVar
public Term getExTermForModelVar(Term modelVar, Term axiom)(Code)
generates \exists x . p(x) where p is the relation for modelvar described by its represents-such_that clause.



getInstanceConstraints
public Term getInstanceConstraints()(Code)



getInstanceInvariants
public Term getInstanceInvariants()(Code)
returns locally declared and inherited instance invariants.



getInstancePrefix
public ReferencePrefix getInstancePrefix()(Code)



getLocalInstanceConstraints
public Term getLocalInstanceConstraints()(Code)



getLocalInstanceInvariants
public Term getLocalInstanceInvariants()(Code)



getLocalStaticConstraints
public Term getLocalStaticConstraints()(Code)



getLocalStaticInvariants
public Term getLocalStaticInvariants()(Code)



getModelMethods
public Namespace getModelMethods()(Code)
returns the model methods declared in this class



getModelVars
public Namespace getModelVars()(Code)
returns the model variables declared in this class



getPreservesInvariantBehavior
public Term getPreservesInvariantBehavior(ProgramMethod md, boolean allInv)(Code)
returns a term of the form inv -> <{try{ m();}catch(Exception e)}>inv If allInv is true, inv is a conjunction of all (static and instance) invariants of every existing type or just the invariants of this type specification otherwise.



getQuantifiedInstanceInvariants
public SetOfTerm getQuantifiedInstanceInvariants()(Code)



getRepresents
public HashMap getRepresents()(Code)
returns a HashMap that contains the locally defined and inherited represents relations.



getServices
public Services getServices()(Code)



getStaticConstraints
public Term getStaticConstraints()(Code)



getStaticInvariants
public Term getStaticInvariants()(Code)



getStaticPrefix
public ReferencePrefix getStaticPrefix()(Code)



getTerm2Old
public LinkedHashMap getTerm2Old()(Code)



getTermForModelMethod
protected Term getTermForModelMethod(ProgramMethod pm)(Code)



lookupModelField
public ProgramVariable lookupModelField(Name name) throws AmbigiousModelElementException(Code)



lookupModelMethod
public ProgramMethod lookupModelMethod(Name name) throws AmbigiousModelElementException(Code)



lookupModelMethodLocally
public ProgramMethod lookupModelMethodLocally(String name)(Code)
returns the model method with the name name, iff it is loacally declared within the type that is specified by this specification.



toString
public String toString()(Code)



Fields inherited from de.uka.ilkd.key.jml.JMLSpec
protected Namespace funcNS(Code)(Java Doc)
protected NotSupportedExpressionException nsEx(Code)(Java Doc)
protected Namespace progVarNS(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.jml.JMLSpec
public Namespace getFunctionNS()(Code)(Java Doc)
public Namespace getProgramVariableNS()(Code)(Java Doc)
abstract public LinkedHashMap getTerm2Old()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public void setInvalid(NotSupportedExpressionException nsEx)(Code)(Java Doc)

Fields inherited from de.uka.ilkd.key.logic.TermBuilder
final public static TermBuilder DF(Code)(Java Doc)
final protected static TermFactory tf(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.logic.TermBuilder
public Term FALSE(Services services)(Code)(Java Doc)
public Term NULL(Services services)(Code)(Java Doc)
public Term TRUE(Services services)(Code)(Java Doc)
public Term all(QuantifiableVariable lv, Term t2)(Code)(Java Doc)
public Term all(QuantifiableVariable[] lv, Term t2)(Code)(Java Doc)
public Term and(Term t1, Term t2)(Code)(Java Doc)
public Term and(Term[] subTerms)(Code)(Java Doc)
public Term and(ListOfTerm subTerms)(Code)(Java Doc)
public Term array(Term ref, Term idx)(Code)(Java Doc)
public Term box(JavaBlock jb, Term t)(Code)(Java Doc)
public Term dia(JavaBlock jb, Term t)(Code)(Java Doc)
public Term dot(Term o, ProgramVariable a)(Code)(Java Doc)
public Term equals(Term t1, Term t2)(Code)(Java Doc)
public Term equiv(Term t1, Term t2)(Code)(Java Doc)
public Term ex(QuantifiableVariable lv, Term t2)(Code)(Java Doc)
public Term ex(QuantifiableVariable[] lv, Term t2)(Code)(Java Doc)
public Term ff()(Code)(Java Doc)
public Term func(TermSymbol op)(Code)(Java Doc)
public Term func(TermSymbol op, Term s)(Code)(Java Doc)
public Term func(TermSymbol op, Term s1, Term s2)(Code)(Java Doc)
public Term func(TermSymbol op, Term[] s)(Code)(Java Doc)
public Term geq(Term t1, Term t2, Services services)(Code)(Java Doc)
public Term gt(Term t1, Term t2, Services services)(Code)(Java Doc)
public Term ife(Term cond, Term _then, Term _else)(Code)(Java Doc)
public Term imp(Term t1, Term t2)(Code)(Java Doc)
public Term leq(Term t1, Term t2, Services services)(Code)(Java Doc)
public Term lt(Term t1, Term t2, Services services)(Code)(Java Doc)
public Term not(Term t)(Code)(Java Doc)
public Term one(Services services)(Code)(Java Doc)
public Term or(Term t1, Term t2)(Code)(Java Doc)
public Term or(Term[] subTerms)(Code)(Java Doc)
public Term or(ListOfTerm subTerms)(Code)(Java Doc)
public TermFactory tf()(Code)(Java Doc)
public Term tt()(Code)(Java Doc)
public Term var(LogicVariable v)(Code)(Java Doc)
public Term var(ProgramVariable v)(Code)(Java Doc)
public Term var(ParsableVariable v)(Code)(Java Doc)
public Term zTerm(Services services, String numberString)(Code)(Java Doc)
public Term zero(Services services)(Code)(Java Doc)

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.