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


java.lang.Object
   de.uka.ilkd.key.logic.VariableNamer

All known Subclasses:   de.uka.ilkd.key.logic.InnerVariableNamer,
VariableNamer
abstract public class VariableNamer implements InstantiationProposer(Code)
Responsible for program variable naming issues.

Inner Class :protected static interface Globals
Inner Class :protected static class BasenameAndIndex

Field Summary
protected  HashMapmap
    
protected  HashMaprenamingHistory
    

Constructor Summary
public  VariableNamer(Services services)
    

Method Summary
protected  ProgramElementNamecreateName(String basename, int index, NameCreationInfo creationInfo)
    
protected  BasenameAndIndexgetBasenameAndIndex(ProgramElementName name)
    
protected  intgetMaxCounterInGlobals(String basename, Globals globals)
    
protected  intgetMaxCounterInProgram(String basename, ProgramElement program, PosInProgram posOfDeclaration)
    
protected  NameCreationInfogetMethodStack(PosInOccurrence posOfFind)
    
protected  ProgramElementNamegetNameProposalForSchemaVariable(String basename, SortedSchemaVariable sv, PosInOccurrence posOfFind, PosInProgram posOfDeclaration, ListOfString previousProposals)
    
protected  ProgramElementgetProgramFromPIO(PosInOccurrence pio)
    
public  StringgetProposal(TacletApp app, SchemaVariable var, Services services, Node undoAnchor, ListOfString previousProposals)
    
public  HashMapgetRenamingMap()
    
public  StringgetSuggestiveNameProposalForProgramVariable(SortedSchemaVariable sv, TacletApp app, Goal goal, Services services, ListOfString previousProposals)
    
public  StringgetSuggestiveNameProposalForSchemaVariable(Expression e)
    
public  ProgramElementNamegetTemporaryNameProposal(String basename)
    
protected  booleanisUniqueInGlobals(String name, Globals globals)
    
protected  booleanisUniqueInProgram(String name, ProgramElement program, PosInProgram posOfDeclaration)
    
public  booleanisUniqueNameForSchemaVariable(String name, SortedSchemaVariable sv, PosInOccurrence posOfFind, PosInProgram posOfDeclaration)
    
public static  ProgramElementNameparseName(String name, NameCreationInfo creationInfo, Comment[] comments)
    
public static  ProgramElementNameparseName(String name, NameCreationInfo creationInfo)
    
public static  ProgramElementNameparseName(String name, Comment[] comments)
    
public static  ProgramElementNameparseName(String name)
    
abstract public  ProgramVariablerename(ProgramVariable var, Goal goal, PosInOccurrence posOfFind)
    
public static  voidsetSuggestiveEnabled(boolean enabled)
    
protected  GlobalswrapGlobals(ListOfNamed globals)
    
protected  GlobalswrapGlobals(SetOfProgramVariable globals)
    

Field Detail
map
protected HashMap map(Code)



renamingHistory
protected HashMap renamingHistory(Code)




Constructor Detail
VariableNamer
public VariableNamer(Services services)(Code)

Parameters:
  services - pointer to services object




Method Detail
createName
protected ProgramElementName createName(String basename, int index, NameCreationInfo creationInfo)(Code)
creates a ProgramElementName object to be used for permanent names



getBasenameAndIndex
protected BasenameAndIndex getBasenameAndIndex(ProgramElementName name)(Code)
determines the passed ProgramElementName's basename and index (ignoring temporary indices)



getMaxCounterInGlobals
protected int getMaxCounterInGlobals(String basename, Globals globals)(Code)
returns the maximum counter value already associated with the passed basename in the passed list of global variables, or -1



getMaxCounterInProgram
protected int getMaxCounterInProgram(String basename, ProgramElement program, PosInProgram posOfDeclaration)(Code)
returns the maximum counter value already associated with the passed basename in the passed program (ignoring temporary counters), or -1



getMethodStack
protected NameCreationInfo getMethodStack(PosInOccurrence posOfFind)(Code)
returns a NameCreationInfo representing the method stack of a PosInOccurrence



getNameProposalForSchemaVariable
protected ProgramElementName getNameProposalForSchemaVariable(String basename, SortedSchemaVariable sv, PosInOccurrence posOfFind, PosInProgram posOfDeclaration, ListOfString previousProposals)(Code)
proposes a unique name for the instantiation of a schema variable (like getProposal(), but somewhat less nicely)
Parameters:
  basename - desired base name, or null to use default
Parameters:
  sv - the schema variable
Parameters:
  posOfFind - the PosInOccurrence containing the name's target program
Parameters:
  posOfDeclaration - the PosInProgram where the name will be declared(or null to just be pessimistic about the scope)
Parameters:
  previousProposals - list of names which should be considered taken,or null the name proposal, or null if no proposal is available



getProgramFromPIO
protected ProgramElement getProgramFromPIO(PosInOccurrence pio)(Code)
returns the program contained in a PosInOccurrence



getProposal
public String getProposal(TacletApp app, SchemaVariable var, Services services, Node undoAnchor, ListOfString previousProposals)(Code)
proposes a unique name for the instantiation of a schema variable
Parameters:
  app - the taclet app
Parameters:
  var - the schema variable to be instantiated
Parameters:
  services - not used
Parameters:
  undoAnchor - not used
Parameters:
  previousProposals - list of names which should be considered taken,or null the name proposal, or null if no proposal is available



getRenamingMap
public HashMap getRenamingMap()(Code)



getSuggestiveNameProposalForProgramVariable
public String getSuggestiveNameProposalForProgramVariable(SortedSchemaVariable sv, TacletApp app, Goal goal, Services services, ListOfString previousProposals)(Code)



getSuggestiveNameProposalForSchemaVariable
public String getSuggestiveNameProposalForSchemaVariable(Expression e)(Code)



getTemporaryNameProposal
public ProgramElementName getTemporaryNameProposal(String basename)(Code)
proposes a unique name; intended for use in places where the information required by getProposal() is not available
Parameters:
  basename - desired base name, or null to use default the name proposal



isUniqueInGlobals
protected boolean isUniqueInGlobals(String name, Globals globals)(Code)
tells whether a name is unique in the passed list of global variables



isUniqueInProgram
protected boolean isUniqueInProgram(String name, ProgramElement program, PosInProgram posOfDeclaration)(Code)
tells whether a name is unique in the passed program



isUniqueNameForSchemaVariable
public boolean isUniqueNameForSchemaVariable(String name, SortedSchemaVariable sv, PosInOccurrence posOfFind, PosInProgram posOfDeclaration)(Code)
tells whether a name for instantiating a schema variable is unique within its scope
Parameters:
  name - the name to be checked
Parameters:
  sv - the schema variable
Parameters:
  posOfFind - the PosInOccurrence of the name's target program
Parameters:
  posOfDeclaration - the PosInProgram where the name will be declared true if the name is unique or if its uniqueness cannot bechecked, else false



parseName
public static ProgramElementName parseName(String name, NameCreationInfo creationInfo, Comment[] comments)(Code)
parses the passed string and creates a suitable program element name (this does *not* make the name unique - if that is necessary, use either getTemporaryNameProposal() or getProposal())
Parameters:
  name - the name as a string
Parameters:
  creationInfo - optional name creation info the name should carry
Parameters:
  comments - any comments the name should carry the name as a ProgramElementName



parseName
public static ProgramElementName parseName(String name, NameCreationInfo creationInfo)(Code)



parseName
public static ProgramElementName parseName(String name, Comment[] comments)(Code)



parseName
public static ProgramElementName parseName(String name)(Code)



rename
abstract public ProgramVariable rename(ProgramVariable var, Goal goal, PosInOccurrence posOfFind)(Code)
intended to be called when symbolically executing a variable declaration; resolves any naming conflicts between the new variable and other global variables by renaming the new variable and / or other variables
Parameters:
  var - the new program variable
Parameters:
  goal - the goal
Parameters:
  posOfFind - the PosInOccurrence of the currently executed program the renamed version of the var parameter



setSuggestiveEnabled
public static void setSuggestiveEnabled(boolean enabled)(Code)



wrapGlobals
protected Globals wrapGlobals(ListOfNamed globals)(Code)
creates a Globals object for use with other internal methods



wrapGlobals
protected Globals wrapGlobals(SetOfProgramVariable globals)(Code)
creates a Globals object for use with other internal methods



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.