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


java.lang.Object
   de.uka.ilkd.key.proof.mgt.AbstractContract
      de.uka.ilkd.key.proof.mgt.DefaultOperationContract
         de.uka.ilkd.key.proof.mgt.DLMethodContract

DLMethodContract
public class DLMethodContract extends DefaultOperationContract (Code)
represents a contract on the DynamicLogic level, that is pre-condition, program, post-condition, and modifies clause. It is the starting point to create both proof obligation (to ensure that the contract is valid) as well as a taclet (that allows to use the contract in a proof). DLMethodContracts are created from UserKeYProblemFiles using the \contract section. Moreover they are created when a contract of another input like JML or OCL is configured.



Constructor Summary
public  DLMethodContract(Term fma, SetOfLocationDescriptor modifies, String name, String displayName, Services services, NamespaceSet namespaces)
    
public  DLMethodContract(Term pre, Term post, Term extraPre, Collection atPreFunctions, Statement mbs, SetOfLocationDescriptor modifies, Modality modality, String name, String displayName, Services services, NamespaceSet namespaces)
     Creates a DLMethodContract with separate parts and possible additional preconditions which are not to be proven in the precondition branch of the created proof.

Method Summary
public  voidaddPost(Term t)
    
public  voidaddPre(Term t)
    
public  booleanapplicableForModality(Modality mod)
    
public  DLMethodContractcopy()
    
public  DLMethodContractcreateDLMethodContract(Proof proof)
    
public  StringcreateProgramVarsSection()
    
public  booleanequals(Object cmp)
    
protected  TermgetAdditionalAxioms()
    
public  CatchAllStatementgetCatchAllStatement()
    
public  StringgetHTMLText()
    
public  StringgetHeader()
    
public  MethodBodyStatementgetMethodBodyStatement()
    
public  ModalitygetModality()
    
public  ModelMethodgetModelMethod()
    
public  SetOfLocationDescriptorgetModifies()
    
public  StringgetModifiesText()
    
public  StringgetName()
    
public  ObjectgetObjectOfContract()
     returns the object on which this contract is, in this case it is the program statement of the contract; or in case that this is a method body statement the according program method is returned.
public  TermgetPost()
    
public  StringgetPostText()
    
public  TermgetPre()
    
public  StringgetPreText()
    
public  ProgramMethodgetProgramMethod()
    
public  NamespacegetProgramVariables()
    
public  ProofOblInputgetProofOblInput(Proof proof)
     returns a proof obligation input needed to show the corretcness of this contract.
public  StatementgetStatement()
    
public  inthashCode()
    
protected  voidinstantiateAtPreSymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)
    
protected  voidinstantiateAuxiliarySymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables, Services services)
    
protected  voidinstantiateMethodParameters(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)
    
protected  voidinstantiateMethodReceiver(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)
    
protected  voidinstantiateMethodReturnVariable(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)
    
public  voidsetHeader(String s)
    
public  StringtoString()
    
static  StatementunwrapBlocks(Statement s, boolean stopAtCatchAll)
    


Constructor Detail
DLMethodContract
public DLMethodContract(Term fma, SetOfLocationDescriptor modifies, String name, String displayName, Services services, NamespaceSet namespaces)(Code)
Creates a DLMethodContract with one implication formula of the form pre -> \ post and a modifies clause
Parameters:
  fma - the implication formula
Parameters:
  modifies - a set of location descriptors defining the modifies clause forthis DLMethodContract
Parameters:
  name - a unique identifying name for a contract in the proof
Parameters:
  displayName - the name displayed for this contract
Parameters:
  services - the services object
Parameters:
  namespaces - the namespaces for looking up atpre functions



DLMethodContract
public DLMethodContract(Term pre, Term post, Term extraPre, Collection atPreFunctions, Statement mbs, SetOfLocationDescriptor modifies, Modality modality, String name, String displayName, Services services, NamespaceSet namespaces)(Code)
Creates a DLMethodContract with separate parts and possible additional preconditions which are not to be proven in the precondition branch of the created proof.
Parameters:
  pre - the precondition of the contract
Parameters:
  post - the postcondition of the contract
Parameters:
  extraPre - the additional preconditions
Parameters:
  atPreFunctions - a Collection with all functions used to model @pre for function symbols
Parameters:
  mbs - the statement of the proof, either this is a method bodystatement or a catch all statement
Parameters:
  modifies - a set of location descriptors defining the modifies clause forthis DLMethodContract
Parameters:
  name - a unique identifying name for a contract in the proof
Parameters:
  displayName - the name displayed for this contract
Parameters:
  services - the services object
Parameters:
  namespaces - the namespaces for looking up atpre functions




Method Detail
addPost
public void addPost(Term t)(Code)



addPre
public void addPre(Term t)(Code)



applicableForModality
public boolean applicableForModality(Modality mod)(Code)



copy
public DLMethodContract copy()(Code)



createDLMethodContract
public DLMethodContract createDLMethodContract(Proof proof)(Code)



createProgramVarsSection
public String createProgramVarsSection()(Code)



equals
public boolean equals(Object cmp)(Code)



getAdditionalAxioms
protected Term getAdditionalAxioms()(Code)



getCatchAllStatement
public CatchAllStatement getCatchAllStatement()(Code)



getHTMLText
public String getHTMLText()(Code)



getHeader
public String getHeader()(Code)



getMethodBodyStatement
public MethodBodyStatement getMethodBodyStatement()(Code)



getModality
public Modality getModality()(Code)



getModelMethod
public ModelMethod getModelMethod()(Code)



getModifies
public SetOfLocationDescriptor getModifies()(Code)



getModifiesText
public String getModifiesText()(Code)



getName
public String getName()(Code)



getObjectOfContract
public Object getObjectOfContract()(Code)
returns the object on which this contract is, in this case it is the program statement of the contract; or in case that this is a method body statement the according program method is returned.



getPost
public Term getPost()(Code)



getPostText
public String getPostText()(Code)



getPre
public Term getPre()(Code)



getPreText
public String getPreText()(Code)



getProgramMethod
public ProgramMethod getProgramMethod()(Code)



getProgramVariables
public Namespace getProgramVariables()(Code)



getProofOblInput
public ProofOblInput getProofOblInput(Proof proof)(Code)
returns a proof obligation input needed to show the corretcness of this contract.



getStatement
public Statement getStatement()(Code)



hashCode
public int hashCode()(Code)



instantiateAtPreSymbols
protected void instantiateAtPreSymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)

Parameters:
  replacementMap -
Parameters:
  localFunctions -
Parameters:
  localProgramVariables -



instantiateAuxiliarySymbols
protected void instantiateAuxiliarySymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables, Services services)(Code)



instantiateMethodParameters
protected void instantiateMethodParameters(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)

Parameters:
  insts -
Parameters:
  replacementMap -
Parameters:
  localProgramVariables -
Parameters:
  localFunctions -



instantiateMethodReceiver
protected void instantiateMethodReceiver(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)

Parameters:
  insts -
Parameters:
  replacementMap -
Parameters:
  localProgramVariables -
Parameters:
  localFunctions -



instantiateMethodReturnVariable
protected void instantiateMethodReturnVariable(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)

Parameters:
  insts -
Parameters:
  replacementMap -
Parameters:
  localProgramVariables -
Parameters:
  localFunctions -



setHeader
public void setHeader(String s)(Code)



toString
public String toString()(Code)



unwrapBlocks
static Statement unwrapBlocks(Statement s, boolean stopAtCatchAll)(Code)



Methods inherited from de.uka.ilkd.key.proof.mgt.DefaultOperationContract
abstract protected Term getAdditionalAxioms()(Code)(Java Doc)
abstract public CatchAllStatement getCatchAllStatement()(Code)(Java Doc)
public InstantiatedMethodContract instantiate(MethodContractInstantiation insts, Proof proof)(Code)(Java Doc)
abstract protected void instantiateAtPreSymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)(Java Doc)
abstract protected void instantiateAuxiliarySymbols(Map replacementMap, Namespace localFunctions, Namespace localProgramVariables, Services services)(Code)(Java Doc)
protected ProgramVariable instantiateCatchAllStatement(CatchAllStatement ca, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables, Services services)(Code)(Java Doc)
abstract protected void instantiateMethodParameters(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)(Java Doc)
abstract protected void instantiateMethodReceiver(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)(Java Doc)
abstract protected void instantiateMethodReturnVariable(MethodContractInstantiation insts, Map replacementMap, Namespace localFunctions, Namespace localProgramVariables)(Code)(Java Doc)

Fields inherited from de.uka.ilkd.key.proof.mgt.AbstractContract
protected ProofEnvironment env(Code)(Java Doc)
protected String header(Code)(Java Doc)
protected List proofs(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.proof.mgt.AbstractContract
public void addCompoundProof(ProofAggregate pl)(Code)(Java Doc)
public ProofEnvironment getProofEnv()(Code)(Java Doc)
public List getProofs()(Code)(Java Doc)
public void removeCompoundProof(ProofAggregate pl)(Code)(Java Doc)
public void setHeader(String s)(Code)(Java Doc)
public void setProofEnv(ProofEnvironment env)(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.