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


java.lang.Object
   de.uka.ilkd.key.java.KeYJavaASTFactory
      de.uka.ilkd.key.java.CreateArrayMethodBuilder

All known Subclasses:   de.uka.ilkd.key.java.CreateTransientArrayMethodBuilder,
CreateArrayMethodBuilder
public class CreateArrayMethodBuilder extends KeYJavaASTFactory (Code)
This class creates the <createArray> method for array creation and in particular its helper method <createArrayHelper>. This class hould be replaced by a recoder transformation as soon as we port our array data structures to RecodeR.


Field Summary
final public static  StringIMPLICIT_ARRAY_CREATE
    
final public static  StringIMPLICIT_ARRAY_CREATE_TRANSIENT
    
final public static  StringIMPLICIT_ARRAY_CREATION_HELPER
    
final public static  StringIMPLICIT_ARRAY_TRANSIENT_CREATION_HELPER
    
final protected  KeYJavaTypeintegerType
    
final protected  KeYJavaTypeobjectType
    

Constructor Summary
public  CreateArrayMethodBuilder(KeYJavaType integerType, KeYJavaType objectType)
    

Method Summary
protected  LinkedListcreateArray(ListOfField fields)
    
protected  ListOfFieldfilterField(ArrayOfMemberDeclaration list)
     extracts all field specifications out of the given list.
final protected  ListOfFieldfilterField(FieldDeclaration field)
    
protected  ListOfFieldfilterImplicitFields(ListOfField list)
    
protected  ProgramVariablefind(String name, ListOfField fields)
    
protected  ProgramVariablefindInObjectFields(String name)
    
public  ProgramMethodgetArrayInstanceAllocatorMethod(TypeReference arrayTypeReference)
    
protected  StatementBlockgetCreateArrayBody(TypeReference arrayRef, ProgramVariable paramLength)
    
protected  StatementBlockgetCreateArrayHelperBody(ProgramVariable length, ProgramVariable paramLength, ListOfField fields, boolean createTransient, ProgramVariable transientType)
     creates the body of method <createArrayHelper(int paramLength)> therefore it first adds the statements responsible to take the correct one out of the list, then the arrays length attribute is set followed by a call to <prepare>() setting the arrays fields on their default value.
public  ProgramMethodgetCreateArrayHelperMethod(TypeReference arrayTypeReference, ProgramVariable length, ListOfField fields)
    
public  ProgramMethodgetCreateArrayMethod(TypeReference arrayTypeReference, ProgramMethod prepare, ListOfField fields)
    
protected  ExpressiongetDefaultValue(Type type)
    
public  ProgramMethodgetPrepareArrayMethod(TypeRef arrayRef, ProgramVariable length, Expression defaultValue, ListOfField fields)
    

Field Detail
IMPLICIT_ARRAY_CREATE
final public static String IMPLICIT_ARRAY_CREATE(Code)



IMPLICIT_ARRAY_CREATE_TRANSIENT
final public static String IMPLICIT_ARRAY_CREATE_TRANSIENT(Code)



IMPLICIT_ARRAY_CREATION_HELPER
final public static String IMPLICIT_ARRAY_CREATION_HELPER(Code)



IMPLICIT_ARRAY_TRANSIENT_CREATION_HELPER
final public static String IMPLICIT_ARRAY_TRANSIENT_CREATION_HELPER(Code)



integerType
final protected KeYJavaType integerType(Code)
keeps the currently used integer type



objectType
final protected KeYJavaType objectType(Code)
stores the currently used object type




Constructor Detail
CreateArrayMethodBuilder
public CreateArrayMethodBuilder(KeYJavaType integerType, KeYJavaType objectType)(Code)
create the method builder for array implict creation methods




Method Detail
createArray
protected LinkedList createArray(ListOfField fields)(Code)
creates the statements which take the next object out of the list of available objects the statements which take the next object out of the list ofavailable objects



filterField
protected ListOfField filterField(ArrayOfMemberDeclaration list)(Code)
extracts all field specifications out of the given list. Therefore it descends into field declarations.
Parameters:
  list - the ArrayOfMemberDeclaration with the members of a typedeclaration a ListOfField the includes all field specifications found int thefield declaration of the given list



filterField
final protected ListOfField filterField(FieldDeclaration field)(Code)
extracts all fields out of fielddeclaration
Parameters:
  field - the FieldDeclaration of which the field specifications have tobe extracted a ListOfField the includes all field specifications found int thefield declaration of the given list



filterImplicitFields
protected ListOfField filterImplicitFields(ListOfField list)(Code)
extracts all implicit field specifications out of the given list
Parameters:
  list - the ListOfField from which the implicit ones have to beselected a list with all implicit fields found in 'list'



find
protected ProgramVariable find(String name, ListOfField fields)(Code)
retrieves a field with the given name out of the list
Parameters:
  name - a String with the name of the field to be looked for
Parameters:
  fields - the ListOfField where we have to look for the field the program variable of the given name or null if not found



findInObjectFields
protected ProgramVariable findInObjectFields(String name)(Code)



getArrayInstanceAllocatorMethod
public ProgramMethod getArrayInstanceAllocatorMethod(TypeReference arrayTypeReference)(Code)
creates the implicit method <allocate> which is a stump and given meaning by a contract



getCreateArrayBody
protected StatementBlock getCreateArrayBody(TypeReference arrayRef, ProgramVariable paramLength)(Code)



getCreateArrayHelperBody
protected StatementBlock getCreateArrayHelperBody(ProgramVariable length, ProgramVariable paramLength, ListOfField fields, boolean createTransient, ProgramVariable transientType)(Code)
creates the body of method <createArrayHelper(int paramLength)> therefore it first adds the statements responsible to take the correct one out of the list, then the arrays length attribute is set followed by a call to <prepare>() setting the arrays fields on their default value.
Parameters:
  length - the final public ProgramVariablelength of the array
Parameters:
  paramLength - the ProgramVariable which is the parameter ofthe <createArray> method
Parameters:
  prepare - the ProgramMethod <prepare>()which will be called when executing<createArray>
Parameters:
  fields - the ListOfFields of the current array
Parameters:
  createTransient - a boolean indicating if a transient array has to be created (this is special to JavaCard)
Parameters:
  transientType - a ProgramVariable identifying the kind of transient the StatementBlock which is the method's body

{this. = this..;this. = false;this. = true;this.length = paramLength;this.();this. = transientType;this. = true;return this;}



getCreateArrayHelperMethod
public ProgramMethod getCreateArrayHelperMethod(TypeReference arrayTypeReference, ProgramVariable length, ListOfField fields)(Code)
create the method declaration of the <createArrayHelper> method



getCreateArrayMethod
public ProgramMethod getCreateArrayMethod(TypeReference arrayTypeReference, ProgramMethod prepare, ListOfField fields)(Code)
creates the implicit method <createArray> it fulfills a similar purpose as <createObject> in addition it sets the arrays length and calls the prepare method



getDefaultValue
protected Expression getDefaultValue(Type type)(Code)
returns the default value of the given type according to JLS \S 4.5.5 the default value of the given type according to JLS \S 4.5.5



getPrepareArrayMethod
public ProgramMethod getPrepareArrayMethod(TypeRef arrayRef, ProgramVariable length, Expression defaultValue, ListOfField fields)(Code)
returns the prepare method for arrays initialising all array fields with their default value



Methods inherited from de.uka.ilkd.key.java.KeYJavaASTFactory
public static Statement assign(Expression lhs, Expression rhs)(Code)(Java Doc)
public static Expression attribute(ReferencePrefix prefix, ProgramVariable field)(Code)(Java Doc)
public static Break breakStatement(Label l)(Code)(Java Doc)
public static Catch catchClause(ParameterDeclaration param, StatementBlock body)(Code)(Java Doc)
public static Catch catchClause(JavaInfo javaInfo, String param, KeYJavaType kjt, StatementBlock body)(Code)(Java Doc)
public static Catch catchClause(JavaInfo javaInfo, String param, String type, StatementBlock body)(Code)(Java Doc)
public static LocalVariableDeclaration declare(ProgramElementName name, TypeReference typeRef)(Code)(Java Doc)
public static LocalVariableDeclaration declare(ProgramElementName name, Expression init, KeYJavaType type)(Code)(Java Doc)
public static LocalVariableDeclaration declare(ProgramVariable var, Expression init, KeYJavaType type)(Code)(Java Doc)
public static LocalVariableDeclaration declare(ProgramVariable var, KeYJavaType type)(Code)(Java Doc)
public static LocalVariableDeclaration declare(String name, KeYJavaType type)(Code)(Java Doc)
public static EmptyStatement emptyStatement()(Code)(Java Doc)
public static If ifElse(Expression guard, Then then, Else els)(Code)(Java Doc)
public static If ifThen(Expression guard, Statement then)(Code)(Java Doc)
public static StatementBlock insertStatementInBlock(Statement[] stmnt, StatementBlock b)(Code)(Java Doc)
public static StatementBlock insertStatementInBlock(StatementBlock stmnt, StatementBlock b)(Code)(Java Doc)
public static ProgramVariable localVariable(String name, KeYJavaType kjt)(Code)(Java Doc)
public static ProgramVariable localVariable(ProgramElementName name, KeYJavaType kjt)(Code)(Java Doc)
public static ParameterDeclaration parameterDeclaration(JavaInfo javaInfo, KeYJavaType kjt, String name)(Code)(Java Doc)
public static ParameterDeclaration parameterDeclaration(JavaInfo javaInfo, KeYJavaType kjt, ProgramVariable var)(Code)(Java Doc)
public static ParameterDeclaration parameterDeclaration(JavaInfo javaInfo, String type, String name)(Code)(Java Doc)
public static Return returnClause(Expression e)(Code)(Java Doc)
public static Throw throwClause(Expression e)(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.