Java Doc for JMLMethodSpec.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.JMLMethodSpec

All known Subclasses:   de.uka.ilkd.key.jml.JMLNormalMethodSpec,  de.uka.ilkd.key.jml.JMLPuritySpec,  de.uka.ilkd.key.jml.JMLExceptionalMethodSpec,
JMLMethodSpec
public class JMLMethodSpec extends JMLSpec implements JMLLemmaMethodSpec,AssignableSpec(Code)
A generic jml methodspecification used for encapsulating lightweight and behavioral methodspecifications

Inner Class :protected class ModTermKey

Field Summary
protected static  TermBOOL_FALSE
    
protected static  TermBOOL_TRUE
    
final public static  StringEVERYTHING
    
protected  StringassignableMode
    
protected  SetOfLocationDescriptorassignableVariables
    
protected  JMLClassSpeccSpec
    
protected  TypeDeclarationcd
    
protected  Termdiverges
    
protected  KeYJavaTypeexc
    
protected static  intexcCondCount
    
protected  ProgramVariableexcVar
    
protected static  intexceptionVarCount
    
protected  intid
    
protected  StringinhFrom
    
protected  ReferencePrefixinheritedPrefix
    
protected  JavaInfoji
    
protected static  intlogicVarCount
    
protected  TreeMaplv2old
    
protected  StatementBlockmBS
    
protected  LinkedHashMapmodalityTermForEnsuresCache
    
protected  NamespaceSetnss
    
protected static  TermnullTerm
    
protected  Namespaceparams
    
protected  ProgramMethodpm
    
protected  ProgramVariableresultVar
    
protected static  intresultVarCount
    
protected  ProgramVariableself
    
protected  Servicesservices
    
protected  SetOfSignalssignals
    
protected  booleanstaticInit
    
protected  TermBuildertb
    
protected  LinkedHashMapterm2old
    

Constructor Summary
protected  JMLMethodSpec()
    
public  JMLMethodSpec(ProgramMethod pm, Services services, Namespace params, LinkedHashMap term2old, JMLClassSpec cSpec, NamespaceSet nss, String javaPath)
    

Method Summary
public  voidaddAssignable(SetOfLocationDescriptor locations)
    
public  voidaddDiverges(Term t)
    
public static  TermaddOldQuantifiers(Term a, Map term2old, boolean useQuantifiers, Namespace params)
     Applies the transformation tau_update to a iff useQuantifiers == false or tau_old otherwise.
public  voidaddPost(Term t)
    
public  voidaddPre(Term t)
    
public  voidaddSignals(KeYJavaType exc, ProgramVariable v, Term cond)
    
public  TermbindSpecVars(Term t)
    
protected  JavaBlockcatchAllJB(boolean desugar)
    
public  voidclearModalityTermForEnsuresCache()
    
public  JMLMethodSpeccloneFor(ProgramMethod pm, JMLClassSpec cSpec)
     This is used for modelling specification inheritance for overwritten methods.
protected  JMLMethodSpeccloneForHelper(JMLMethodSpec clone, ProgramMethod pm, JMLClassSpec cSpec)
    
public  booleancontainsQuantifiedAssignableLocation()
    
public  JMLMethodSpeccopy()
    
protected  JMLMethodSpeccopyHelper(JMLMethodSpec copy)
     copys several fields to the incomplete copy copy of this.
public  TermcreateDLFormula(boolean withPostInvariant, boolean allInvariants)
     Creates a DL formula from this method specification: ((pre & inv) -> [{methodbody}]post) & ((pre & inv & !diverges) -> <{methodbody}>post) (This is the DL formula that is needed for an "ensured postcondition proofobligation") withInvariant: iff true the invariant of the containing typeis added to the postcondition which is needed for JMLPostAndInvPOs created by JMLMethodContracts.
protected  TermcreateDiverges()
    
protected static  TermcreateEqualityTermForOldLV(Term t, Term old, LinkedList l, LinkedList oldFS, Map lv2old)
    
protected  TermcreateModalityTermForEnsures(Term post, boolean desugar, boolean withInv, boolean allInv)
    
public  SetOfLocationDescriptorgetAssignable()
    
public  StringgetAssignableMode()
    
public  CatchAllStatementgetCatchAllStatement()
    
public  TypeDeclarationgetClassDeclaration()
    
public  TermgetCompletePost(boolean withClassSpec, boolean allInv)
    
public  TermgetCompletePostFunctional(boolean withClassSpec, boolean allInv)
    
public  TermgetCompletePre(boolean withClassSpec, boolean allInv, boolean terminationCase)
     returns the precondition + represents for model fields (+ invariants iff withClassSpec = true, + the negation of the diverges clause in order to retrieve a precondition under which the method must terminate).
public  ProgramVariablegetExceptionVariable()
     returns the ProgramVariable that is used for expressing the excetional behavior of a method.
public  ReferencePrefixgetInheritedPrefix()
    
public  StringgetJavaPath()
    
public  MapgetLv2Const()
    
public  MethodDeclarationgetMethodDeclaration()
    
public  JavaModelMethodgetModelMethod()
    
public  NamespaceSetgetNamespaces()
    
public  ListOfOperatorgetOldFuncSymbols()
    
public  ListOfQuantifierPrefixEntrygetOldLVs()
    
public  ProgramVariablegetParameterAt(int i)
    
public  TermgetPi1()
    
public  TermgetPi1Functional()
    
public  TermgetPost()
    
public  TermgetPre()
    
public  ReferencePrefixgetPrefix()
    
public  ProgramMethodgetProgramMethod()
    
public  ProgramElementgetProofStatement()
    
public  ProgramVariablegetResultVar()
    
public  ProgramVariablegetSelf()
    
public  ServicesgetServices()
    
public  SetOfSignalsgetSignals()
    
public  ListOfNamedgetSpecVars()
    
public  LinkedHashMapgetTerm2Old()
    
public  intid()
    
public  CollectionintroducedConstants()
    
public  booleanisCloneableFor(ProgramMethod method)
     Checks if name, signature, accessibility and so on are equal for this.pm and pm.
public  StatementBlockmakeMBS()
    
public  TermreplaceFreeVarsWithConsts(Term t)
    
public  SetOfLocationDescriptorreplaceModelFieldsInAssignable()
    
public  SetOfLocationDescriptorreplaceModelFieldsInAssignable(JMLClassSpec cs)
    
public  voidsetAssignableMode(String s)
    
public  voidsetId(int id)
    
public  voidsetSpecVars(ListOfNamed svs)
    
public  booleanterminates()
     returns true if this specification demands termination of the method, which means in this case that terminating by throwing an exception is also considered to be a termination.
public  StringtoString()
    
protected  StringtoStringHelper(String s)
    
protected  TermupdateParameters(ArrayOfParameterDeclaration oldParams, ArrayOfParameterDeclaration newParams, Term target)
    
protected  TermupdatePrefix(Term t)
    

Field Detail
BOOL_FALSE
protected static Term BOOL_FALSE(Code)



BOOL_TRUE
protected static Term BOOL_TRUE(Code)



EVERYTHING
final public static String EVERYTHING(Code)



assignableMode
protected String assignableMode(Code)



assignableVariables
protected SetOfLocationDescriptor assignableVariables(Code)



cSpec
protected JMLClassSpec cSpec(Code)



cd
protected TypeDeclaration cd(Code)



diverges
protected Term diverges(Code)



exc
protected KeYJavaType exc(Code)



excCondCount
protected static int excCondCount(Code)



excVar
protected ProgramVariable excVar(Code)



exceptionVarCount
protected static int exceptionVarCount(Code)



id
protected int id(Code)



inhFrom
protected String inhFrom(Code)



inheritedPrefix
protected ReferencePrefix inheritedPrefix(Code)



ji
protected JavaInfo ji(Code)



logicVarCount
protected static int logicVarCount(Code)



lv2old
protected TreeMap lv2old(Code)



mBS
protected StatementBlock mBS(Code)



modalityTermForEnsuresCache
protected LinkedHashMap modalityTermForEnsuresCache(Code)



nss
protected NamespaceSet nss(Code)



nullTerm
protected static Term nullTerm(Code)



params
protected Namespace params(Code)



pm
protected ProgramMethod pm(Code)



resultVar
protected ProgramVariable resultVar(Code)



resultVarCount
protected static int resultVarCount(Code)



self
protected ProgramVariable self(Code)



services
protected Services services(Code)



signals
protected SetOfSignals signals(Code)



staticInit
protected boolean staticInit(Code)



tb
protected TermBuilder tb(Code)



term2old
protected LinkedHashMap term2old(Code)




Constructor Detail
JMLMethodSpec
protected JMLMethodSpec()(Code)



JMLMethodSpec
public JMLMethodSpec(ProgramMethod pm, Services services, Namespace params, LinkedHashMap term2old, JMLClassSpec cSpec, NamespaceSet nss, String javaPath)(Code)




Method Detail
addAssignable
public void addAssignable(SetOfLocationDescriptor locations)(Code)



addDiverges
public void addDiverges(Term t)(Code)



addOldQuantifiers
public static Term addOldQuantifiers(Term a, Map term2old, boolean useQuantifiers, Namespace params)(Code)
Applies the transformation tau_update to a iff useQuantifiers == false or tau_old otherwise.



addPost
public void addPost(Term t)(Code)



addPre
public void addPre(Term t)(Code)



addSignals
public void addSignals(KeYJavaType exc, ProgramVariable v, Term cond)(Code)



bindSpecVars
public Term bindSpecVars(Term t)(Code)



catchAllJB
protected JavaBlock catchAllJB(boolean desugar)(Code)



clearModalityTermForEnsuresCache
public void clearModalityTermForEnsuresCache()(Code)



cloneFor
public JMLMethodSpec cloneFor(ProgramMethod pm, JMLClassSpec cSpec)(Code)
This is used for modelling specification inheritance for overwritten methods.



cloneForHelper
protected JMLMethodSpec cloneForHelper(JMLMethodSpec clone, ProgramMethod pm, JMLClassSpec cSpec)(Code)



containsQuantifiedAssignableLocation
public boolean containsQuantifiedAssignableLocation()(Code)



copy
public JMLMethodSpec copy()(Code)



copyHelper
protected JMLMethodSpec copyHelper(JMLMethodSpec copy)(Code)
copys several fields to the incomplete copy copy of this.



createDLFormula
public Term createDLFormula(boolean withPostInvariant, boolean allInvariants)(Code)
Creates a DL formula from this method specification: ((pre & inv) -> [{methodbody}]post) & ((pre & inv & !diverges) -> <{methodbody}>post) (This is the DL formula that is needed for an "ensured postcondition proofobligation") withInvariant: iff true the invariant of the containing typeis added to the postcondition which is needed for JMLPostAndInvPOs created by JMLMethodContracts. allInvariants: iff true all existing invariants for every existing type are added to the precondition (and postcondition if withInvariant is also true).



createDiverges
protected Term createDiverges()(Code)

Parameters:
  t1 - the precondition.
Parameters:
  jb - the JavaBlock used in the modality.



createEqualityTermForOldLV
protected static Term createEqualityTermForOldLV(Term t, Term old, LinkedList l, LinkedList oldFS, Map lv2old)(Code)



createModalityTermForEnsures
protected Term createModalityTermForEnsures(Term post, boolean desugar, boolean withInv, boolean allInv)(Code)



getAssignable
public SetOfLocationDescriptor getAssignable()(Code)



getAssignableMode
public String getAssignableMode()(Code)



getCatchAllStatement
public CatchAllStatement getCatchAllStatement()(Code)



getClassDeclaration
public TypeDeclaration getClassDeclaration()(Code)



getCompletePost
public Term getCompletePost(boolean withClassSpec, boolean allInv)(Code)



getCompletePostFunctional
public Term getCompletePostFunctional(boolean withClassSpec, boolean allInv)(Code)



getCompletePre
public Term getCompletePre(boolean withClassSpec, boolean allInv, boolean terminationCase)(Code)
returns the precondition + represents for model fields (+ invariants iff withClassSpec = true, + the negation of the diverges clause in order to retrieve a precondition under which the method must terminate).



getExceptionVariable
public ProgramVariable getExceptionVariable()(Code)
returns the ProgramVariable that is used for expressing the excetional behavior of a method.



getInheritedPrefix
public ReferencePrefix getInheritedPrefix()(Code)



getJavaPath
public String getJavaPath()(Code)



getLv2Const
public Map getLv2Const()(Code)



getMethodDeclaration
public MethodDeclaration getMethodDeclaration()(Code)



getModelMethod
public JavaModelMethod getModelMethod()(Code)



getNamespaces
public NamespaceSet getNamespaces()(Code)



getOldFuncSymbols
public ListOfOperator getOldFuncSymbols()(Code)



getOldLVs
public ListOfQuantifierPrefixEntry getOldLVs()(Code)



getParameterAt
public ProgramVariable getParameterAt(int i)(Code)



getPi1
public Term getPi1()(Code)



getPi1Functional
public Term getPi1Functional()(Code)



getPost
public Term getPost()(Code)
returns the locally declared postcondition



getPre
public Term getPre()(Code)
returns the locally declared precondition



getPrefix
public ReferencePrefix getPrefix()(Code)



getProgramMethod
public ProgramMethod getProgramMethod()(Code)



getProofStatement
public ProgramElement getProofStatement()(Code)



getResultVar
public ProgramVariable getResultVar()(Code)



getSelf
public ProgramVariable getSelf()(Code)



getServices
public Services getServices()(Code)



getSignals
public SetOfSignals getSignals()(Code)



getSpecVars
public ListOfNamed getSpecVars()(Code)



getTerm2Old
public LinkedHashMap getTerm2Old()(Code)



id
public int id()(Code)



introducedConstants
public Collection introducedConstants()(Code)



isCloneableFor
public boolean isCloneableFor(ProgramMethod method)(Code)
Checks if name, signature, accessibility and so on are equal for this.pm and pm. If this.pm and pm occur on the same branch in the class hierarchy must be checked somewhere else!



makeMBS
public StatementBlock makeMBS()(Code)



replaceFreeVarsWithConsts
public Term replaceFreeVarsWithConsts(Term t)(Code)



replaceModelFieldsInAssignable
public SetOfLocationDescriptor replaceModelFieldsInAssignable()(Code)



replaceModelFieldsInAssignable
public SetOfLocationDescriptor replaceModelFieldsInAssignable(JMLClassSpec cs)(Code)



setAssignableMode
public void setAssignableMode(String s)(Code)



setId
public void setId(int id)(Code)



setSpecVars
public void setSpecVars(ListOfNamed svs)(Code)



terminates
public boolean terminates()(Code)
returns true if this specification demands termination of the method, which means in this case that terminating by throwing an exception is also considered to be a termination.



toString
public String toString()(Code)



toStringHelper
protected String toStringHelper(String s)(Code)



updateParameters
protected Term updateParameters(ArrayOfParameterDeclaration oldParams, ArrayOfParameterDeclaration newParams, Term target)(Code)



updatePrefix
protected Term updatePrefix(Term t)(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.