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


java.lang.Object
   de.uka.ilkd.key.logic.Visitor
      de.uka.ilkd.key.proof.decproc.translation.TranslationVisitor

All known Subclasses:   de.uka.ilkd.key.proof.decproc.translation.TermTranslationVisitor,  de.uka.ilkd.key.proof.decproc.translation.PreTranslationVisitor,
TranslationVisitor
abstract public class TranslationVisitor extends Visitor (Code)
This class representing a visitor intended to be used for the translation of KeY Terms.

The translate a Term, a TranslationVisitor instance will be passed to either the execPostOrder or the execPreOrder method of the given Term. These methods then call the visit method of the passed TranslationVisitor recursively, with the appropriate subterms of the given Term as arguments
author:
   akuwertz
version:
   1.0, 12/10/2006



Field Summary
final protected static  StringNoReuseStateException
    
final protected static  Loggerlogger
    
protected  StringloggingSubclass
    
final protected static  StringtranslationNotFinishedException
    
protected  IOperatorTranslation[]translationRules
     The array of translation rules represented by exactly one instance of an IOperatorTranslation subclass per rule.


Method Summary
public static synchronized  TranslationVisitorgetInstance()
     A factory method for returning an instance of a TranslationVisitor implementing subclass.
abstract protected  ObjectgetResult()
     This methods provides a hook for implementing subclasses to forward their translation results.
final public  ObjectgetTranslationResult()
     Returns the result of the translation process and resets this TranslationVisitor for reuse.
protected  booleanisReusable()
    
final protected  StringlogThis(String toLog)
    
public  voidreset()
    
final protected  voidsetTranslationRules(ListOfIOperatorTranslation rules)
    
final public  voidsubtreeEntered(Term subtreeRoot)
    
final public  voidsubtreeLeft(Term subtreeRoot)
    
abstract public  voidvisit(Term t)
     The visit method of this TranslationVisitor.

Field Detail
NoReuseStateException
final protected static String NoReuseStateException(Code)



logger
final protected static Logger logger(Code)
A Logger for logging and debugging the translation process



loggingSubclass
protected String loggingSubclass(Code)
A short String identifying the implementing TranslationVisitor subclass which has produced the current log statement



translationNotFinishedException
final protected static String translationNotFinishedException(Code)



translationRules
protected IOperatorTranslation[] translationRules(Code)
The array of translation rules represented by exactly one instance of an IOperatorTranslation subclass per rule.





Method Detail
getInstance
public static synchronized TranslationVisitor getInstance()(Code)
A factory method for returning an instance of a TranslationVisitor implementing subclass. It therefore must be implemented in that subclass.

This method intends the reuse of already created subclass instances. Subclasses overriding this method should therefore use the Singleton pattern, enabling time and memory savings.

To reuse TranslationVisitor instances, they have to be in a well-defined, resuable state. To ensure this state, the isReusable should be called by an overriding implementation.
To reset an instance to a reusable state, the reset method should be used a TranslationVisitor instance
See Also:   TranslationVisitor.isReusable()
See Also:   TranslationVisitor.reset()




getResult
abstract protected Object getResult()(Code)
This methods provides a hook for implementing subclasses to forward their translation results.

It is intended to be called exclusively by the getTranslationResult method

After calling this method on a TranslationVisitor subclass instance, the instance has to be in the reusable state the translation result provided by an implementing subclass
See Also:   TranslationVisitor.getTranslationResult()




getTranslationResult
final public Object getTranslationResult()(Code)
Returns the result of the translation process and resets this TranslationVisitor for reuse.

The result is actually fetched by calling the getResult method of the implementing subclass.

After calling this method, this TranslationVisitor instance is in reusable state. the Object resulting from current Term translation
throws:
  IllegalStateException - if this method is called during an unfinished translationprocess or before any translation was initiated
See Also:   TranslationVisitor.getResult()
See Also:   




isReusable
protected boolean isReusable()(Code)
Returns true if this TranslationVisitor is ready for the next translation process true if this TranslationVisitor is ready to be reused; otherwise false



logThis
final protected String logThis(String toLog)(Code)
Take a String which should be logged and adds a subclass identifying tag to it
Parameters:
  toLog - the String to be logged the given String extended by a subclass tag



reset
public void reset()(Code)
Resets this TranslationVisitor for reuse.
After execution of this method, the state of this TranslationVisistor is equal to that of a newly created TranslationVisitor



setTranslationRules
final protected void setTranslationRules(ListOfIOperatorTranslation rules)(Code)
Sets the translation rules by converting rules to an IOperatorTranslation array
Parameters:
  rules - the rules to be set



subtreeEntered
final public void subtreeEntered(Term subtreeRoot)(Code)
This method is intended to be called only by the execPostOrder method of class de.uka.ilkd.key.logic.Term
See Also:   de.uka.ilkd.key.logic.Visitor.subtreeEntered(de.uka.ilkd.key.logic.Term)



subtreeLeft
final public void subtreeLeft(Term subtreeRoot)(Code)
This method is intended to be called only by the execPostOrder method of class de.uka.ilkd.key.logic.Term
See Also:   de.uka.ilkd.key.logic.Visitor.subtreeLeft(de.uka.ilkd.key.logic.Term)



visit
abstract public void visit(Term t)(Code)
The visit method of this TranslationVisitor. Takes a KeY Term and tries to translate it

Has to be implemented by a specific subclass
See Also:   de.uka.ilkd.key.logic.Visitor.visit(de.uka.ilkd.key.logic.Term)




Methods inherited from de.uka.ilkd.key.logic.Visitor
public void subtreeEntered(Term subtreeRoot)(Code)(Java Doc)
public void subtreeLeft(Term subtreeRoot)(Code)(Java Doc)
abstract public void visit(Term visited)(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.