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

JavaInfo
public class JavaInfo (Code)
an instance serves as representation of a Java model underlying a DL formula. This class provides calls to access the elements of the Java model using the KeY datastructures only. Implementation specific details like the use of Recoder is hidden in the field of type KeYProgModelInfo . This class can be extended to provide further services.

Inner Class :public class CacheKey
Inner Class :abstract static class Filter

Field Summary
final static  StringDEFAULT_EXECUTION_CONTEXT_CLASS
    

Constructor Summary
 JavaInfo(KeYProgModelInfo kpmi, Services s)
     creates a new JavaInfo object by giving a KeYProgModelInfo to access the Recoder SourceInfo and using the given Services object.

Method Summary
public  JavaInfocopy(Services serv)
    
public  ListOfKeYJavaTypecreateSignature(ArrayOfExpression arguments)
    
public  TypeReferencecreateTypeReference(KeYJavaType kjt)
    
public  ListOfProgramVariablegetAllAttributes(String programName, KeYJavaType type)
    
public  ListOfFieldgetAllFields(ClassDeclaration classDecl)
     retrieves all attributes locally declared in class cl (inclusive the implicit attributes) The returned list is in source code order.
public  SetgetAllKeYJavaTypes()
    
public  ListOfMethodgetAllMethods(KeYJavaType kjt)
    
public  ListOfProgramMethodgetAllProgramMethods(KeYJavaType kjt)
    
public  ListOfProgramMethodgetAllProgramMethodsLocallyDeclared(KeYJavaType kjt)
    
public  ListOfKeYJavaTypegetAllSubtypes(KeYJavaType type)
    
public  ListOfKeYJavaTypegetAllSupertypes(KeYJavaType type)
    
public  ProgramVariablegetArrayLength()
    
public  ProgramVariablegetAttribute(String fullyQualifiedName)
     returns the programvariable for the specified attribute.
public  ProgramVariablegetAttribute(String programName, String qualifiedClassName)
    
public  ProgramVariablegetAttribute(String name, KeYJavaType classType)
    
public  ProgramVariablegetAttribute(String attributeName, ObjectSort s)
    
public  ListOfKeYJavaTypegetCommonSubtypes(KeYJavaType k1, KeYJavaType k2)
     returns the list of all common subtypes of types k1 and k2 (inclusive one of them if they are equal or subtypes themselves) attention: Null is not a jav atype only a logic sort, i.e.
public  ExecutionContextgetDefaultExecutionContext()
     returns the default execution context.
public  ListOfKeYJavaTypegetDirectSuperTypes(KeYJavaType type)
    
public  StringgetFullName(KeYJavaType t)
     returns the full name of a given de.uka.ilkd.key.java.abstraction.KeYJavaType .
public  ListOfFieldgetImplicitFields(ClassDeclaration cl)
     retrieves all implicit attributes locally declared in the given class The returned list is in source code order.
public  FunctiongetInReachableState()
    
public  KeYJavaTypegetJavaIoSerializable()
    
public  SortgetJavaIoSerializableAsSort()
    
public  KeYJavaTypegetJavaLangCloneable()
    
public  SortgetJavaLangCloneableAsSort()
    
public  KeYJavaTypegetJavaLangObject()
    
public  SortgetJavaLangObjectAsSort()
    
public  StringgetJavaSourcePath()
    
public  KeYJavaTypegetKeYJavaType(String fullName)
    
public  KeYJavaTypegetKeYJavaType(Sort sort)
    
public  KeYJavaTypegetKeYJavaType(Type t)
    
public  KeYJavaTypegetKeYJavaTypeByClassName(String className)
    
public  KeYProgModelInfogetKeYProgModelInfo()
     returns the underlying KeYProgModelInfo providing access to the Recoder structures.
public  ListOfMethodgetMethods(KeYJavaType kjt)
    
public  TermgetNullConst()
    
public  TermgetNullTerm()
    
public  KeYJavaTypegetNullType()
    
public  NamespacegetObjectSorts()
    
public  KeYJavaTypegetPrimitiveKeYJavaType(String typename)
     returns a primitive KeYJavaType matching the given typename making use of the LDTs of the current type converter in the services.
public  KeYJavaTypegetPrimitiveKeYJavaType(Expression e)
    
public  ProgramMethodgetProgramMethod(KeYJavaType classType, String methodName, ListOfType signature, KeYJavaType context)
    
public  ProgramMethodgetProgramMethod(KeYJavaType ct, String methodName, ListOfKeYJavaType signature, KeYJavaType context)
    
public  ProgramMethodgetProgramMethod(KeYJavaType classType, String methodName, ProgramVariable[] args, KeYJavaType context)
     returns the program method defined in the KeYJavaType of the program variable clv, with the name m, and the KeYJavaTypes of the given array of program variables as signatures.
public  TermgetProgramMethodTerm(Term prefix, String methodName, Term[] args, String className)
    
public  ServicesgetServices()
    
public  KeYJavaTypegetSuperclass(KeYJavaType type)
    
public  KeYJavaTypegetTypeByClassName(String className)
     looks up a KeYJavaType with given name.
public  KeYJavaTypegetTypeByName(String fullName)
    
public  TypeDeclarationgetTypeDeclaration(String fullName)
    
public  booleanisAJavaCommonSort(Sort sort)
    
public  booleanisPackage(String name)
    
public  booleanisSubtype(KeYJavaType subType, KeYJavaType superType)
     returns true iff the given subType KeYJavaType is a sub type of the given KeYJavaType superType.
public  ProgramVariablelookupVisibleAttribute(String programName, KeYJavaType classType)
     looks up for a field of the given program name visible in the specified class type belonging to the type or one of its supertypes
Parameters:
  programName - the String containing the name of the field to be looked up.
public  ProgramElementreadJava(String java)
    
public  JavaBlockreadJavaBlock(String java, TypeDeclaration asIn)
     reads a Java block given as a string java as it was in the given TypeDeclaration asIn.
public  JavaBlockreadJavaBlock(String java)
    
public  KeYRecoderMappingrec2key()
    
public  voidresetCaches()
    
public  voidsetJavaSourcePath(String path)
    
 voidsetKeYProgModelInfo(KeYProgModelInfo kpmi)
    

Field Detail
DEFAULT_EXECUTION_CONTEXT_CLASS
final static String DEFAULT_EXECUTION_CONTEXT_CLASS(Code)
the name of the class used as default execution context




Constructor Detail
JavaInfo
JavaInfo(KeYProgModelInfo kpmi, Services s)(Code)
creates a new JavaInfo object by giving a KeYProgModelInfo to access the Recoder SourceInfo and using the given Services object.




Method Detail
copy
public JavaInfo copy(Services serv)(Code)
copies this JavaInfo and uses the given Services object as the Services object of the copied JavaInfo
Parameters:
  serv - the Services the copy will use and vice versa a copy of the JavaInfo



createSignature
public ListOfKeYJavaType createSignature(ArrayOfExpression arguments)(Code)
retrieves the signature according to the given expressions
Parameters:
  arguments - ArrayOfExpression of which we try to construct asignature the signature



createTypeReference
public TypeReference createTypeReference(KeYJavaType kjt)(Code)
creates a new TypeReference for the given KeYJavaType



getAllAttributes
public ListOfProgramVariable getAllAttributes(String programName, KeYJavaType type)(Code)
returns a list of all attributes with the given program name declared in one of type's sub- or supertype including its own attributes Attention: The type must not denote the null type
Parameters:
  programName - the String with name of the attribute as declared in a program
Parameters:
  type - the KeYJavaType specifying the part of the hierarchy where to look for list of found attributes with name programName



getAllFields
public ListOfField getAllFields(ClassDeclaration classDecl)(Code)
retrieves all attributes locally declared in class cl (inclusive the implicit attributes) The returned list is in source code order.
Parameters:
  classDecl - the ClassDeclaration whose attributes shall be collected all attributes declared in class cl



getAllKeYJavaTypes
public Set getAllKeYJavaTypes()(Code)
returns all known KeYJavaTypes of the current program type model all known KeYJavaTypes of the currentprogram type model



getAllMethods
public ListOfMethod getAllMethods(KeYJavaType kjt)(Code)
returns all methods from the given Type



getAllProgramMethods
public ListOfProgramMethod getAllProgramMethods(KeYJavaType kjt)(Code)
returns all methods from the given Type as ProgramMethods



getAllProgramMethodsLocallyDeclared
public ListOfProgramMethod getAllProgramMethodsLocallyDeclared(KeYJavaType kjt)(Code)
returns all methods declared in the given Type as ProgramMethods



getAllSubtypes
public ListOfKeYJavaType getAllSubtypes(KeYJavaType type)(Code)
returns all proper subtypes of a given type
Parameters:
  type - the KeYJavaType whose subtypes are returned list of all subtypes



getAllSupertypes
public ListOfKeYJavaType getAllSupertypes(KeYJavaType type)(Code)
returns all supertypes of a given type
Parameters:
  type - the KeYJavaType whose supertypes are returned list of all supertypes



getArrayLength
public ProgramVariable getArrayLength()(Code)
returns the length attribute for arrays



getAttribute
public ProgramVariable getAttribute(String fullyQualifiedName)(Code)
returns the programvariable for the specified attribute. The attribute has to be fully qualified, i.e. declarationType::attributeName
Parameters:
  fullyQualifiedName - the String with the fully qualified attribute name an attribute program variable of the given name
throws:
  IllegalArgumentException - if the given name is not fully qualified



getAttribute
public ProgramVariable getAttribute(String programName, String qualifiedClassName)(Code)
returns the programvariable for the specified attribute declared in the specified class
Parameters:
  programName - the String with the name of the attribute
Parameters:
  qualifiedClassName - the String with the full (inclusive package) qualifiedclass name the attribute program variable of the given name
throws:
  IllegalArgumentException - if the qualified class name is empty ornull



getAttribute
public ProgramVariable getAttribute(String name, KeYJavaType classType)(Code)
returns the program variable representing the attribute of the given name declared locally in class classType the attribute of the given name declared in classType



getAttribute
public ProgramVariable getAttribute(String attributeName, ObjectSort s)(Code)
returns an attribute named attributeName declared locally in object type s



getCommonSubtypes
public ListOfKeYJavaType getCommonSubtypes(KeYJavaType k1, KeYJavaType k2)(Code)
returns the list of all common subtypes of types k1 and k2 (inclusive one of them if they are equal or subtypes themselves) attention: Null is not a jav atype only a logic sort, i.e. if null is the only element shared between k1 and k2 the returned list will be empty
Parameters:
  k1 - the first KeYJavaType denoting a class type
Parameters:
  k2 - the second KeYJavaType denoting a classtype the list of common subtypes of types k1 and k2



getDefaultExecutionContext
public ExecutionContext getDefaultExecutionContext()(Code)
returns the default execution context. This is equiavlent to executing the program in a static method of a class placed in the default package the default execution context



getDirectSuperTypes
public ListOfKeYJavaType getDirectSuperTypes(KeYJavaType type)(Code)
returns all direct supertypes (local declared types in extends and implements) if extends is not given explict java.lang.Object is added (it is not added for interfaces)



getFullName
public String getFullName(KeYJavaType t)(Code)
returns the full name of a given de.uka.ilkd.key.java.abstraction.KeYJavaType .
Parameters:
  t - the KeYJavaType including the package prefix the full name



getImplicitFields
public ListOfField getImplicitFields(ClassDeclaration cl)(Code)
retrieves all implicit attributes locally declared in the given class The returned list is in source code order.
Parameters:
  cl - the ClassDeclaration where to look for the implicitattributes all implicit attributes declared in cl



getInReachableState
public Function getInReachableState()(Code)
returns the predicate expressing that we are in a state reachable by executing a a java program



getJavaIoSerializable
public KeYJavaType getJavaIoSerializable()(Code)
returns the KeYJavaType for class java.io.Serializable



getJavaIoSerializableAsSort
public Sort getJavaIoSerializableAsSort()(Code)
returns the KeYJavaType for class java.io.Serializable



getJavaLangCloneable
public KeYJavaType getJavaLangCloneable()(Code)
returns the KeYJavaType for class java.lang.Clonable



getJavaLangCloneableAsSort
public Sort getJavaLangCloneableAsSort()(Code)
returns the KeYJavaType for class java.lang.Cloneable



getJavaLangObject
public KeYJavaType getJavaLangObject()(Code)
returns the KeYJavaType for class java.lang.Object



getJavaLangObjectAsSort
public Sort getJavaLangObjectAsSort()(Code)
returns the KeYJavaType for class java.lang.Object



getJavaSourcePath
public String getJavaSourcePath()(Code)



getKeYJavaType
public KeYJavaType getKeYJavaType(String fullName)(Code)
returns a KeYJavaType (either primitive of object type) having the full name of the given String fullName
Parameters:
  fullName - a String with the type name to lookup



getKeYJavaType
public KeYJavaType getKeYJavaType(Sort sort)(Code)
returns a KeYJavaType having the given sort



getKeYJavaType
public KeYJavaType getKeYJavaType(Type t)(Code)
returns the KeYJavaType belonging to the given Type t



getKeYJavaTypeByClassName
public KeYJavaType getKeYJavaTypeByClassName(String className)(Code)
this is an alias for getTypeByClassName



getKeYProgModelInfo
public KeYProgModelInfo getKeYProgModelInfo()(Code)
returns the underlying KeYProgModelInfo providing access to the Recoder structures.



getMethods
public ListOfMethod getMethods(KeYJavaType kjt)(Code)
returns all locally declared methods from the given Type



getNullConst
public Term getNullConst()(Code)
returns a term representing the null constant in logic



getNullTerm
public Term getNullTerm()(Code)
returns a term representing 'null' in logic



getNullType
public KeYJavaType getNullType()(Code)
returns the KeYJavaType representing the type of 'null'



getObjectSorts
public Namespace getObjectSorts()(Code)
returns all ObjectSorts of the underlying Java model a namespace containing the object sorts



getPrimitiveKeYJavaType
public KeYJavaType getPrimitiveKeYJavaType(String typename)(Code)
returns a primitive KeYJavaType matching the given typename making use of the LDTs of the current type converter in the services.



getPrimitiveKeYJavaType
public KeYJavaType getPrimitiveKeYJavaType(Expression e)(Code)
returns the KeYJavaType of the expression if it can be determined else null is returned



getProgramMethod
public ProgramMethod getProgramMethod(KeYJavaType classType, String methodName, ListOfType signature, KeYJavaType context)(Code)
returns the program methods defined in the given KeYJavaType with name m and the list of types as signature of the method
Parameters:
  classType - the KeYJavaType of the class where to look for the method
Parameters:
  methodName - the name of the method
Parameters:
  signature - a ListOfType with the arguments types
Parameters:
  context - the KeYJavaType of the class context from wherethe method is called a matching program method



getProgramMethod
public ProgramMethod getProgramMethod(KeYJavaType ct, String methodName, ListOfKeYJavaType signature, KeYJavaType context)(Code)
returns the program methods defined in the given KeYJavaType with name m and the list of types as signature of the method
Parameters:
  ct - the KeYJavaType of the class where to look for the method
Parameters:
  methodName - the name of the method
Parameters:
  signature - a ListOfKeYJavaType with the arguments types
Parameters:
  context - the KeYJavaType of the class context from wherethe method is called a matching program method



getProgramMethod
public ProgramMethod getProgramMethod(KeYJavaType classType, String methodName, ProgramVariable[] args, KeYJavaType context)(Code)
returns the program method defined in the KeYJavaType of the program variable clv, with the name m, and the KeYJavaTypes of the given array of program variables as signatures.
Parameters:
  classType - the KeYJavaType of the class where to look for the method
Parameters:
  methodName - the name of the method
Parameters:
  args - an array of ProgramVariables as the arguments of the method
Parameters:
  context - the KeYJavaType of the class context from wherethe method is called a matching program method



getProgramMethodTerm
public Term getProgramMethodTerm(Term prefix, String methodName, Term[] args, String className)(Code)



getServices
public Services getServices()(Code)
returns the services associated with this JavaInfo



getSuperclass
public KeYJavaType getSuperclass(KeYJavaType type)(Code)
retrieves the direct extended superclass for the given class
Parameters:
  type - the KeYJavaType of the type whose superclasshas to be determined KeYJavaType of the extended supertype



getTypeByClassName
public KeYJavaType getTypeByClassName(String className)(Code)
looks up a KeYJavaType with given name. If the name is a fully qualifying name with package prefix an element with this full name is taken. If the name does not contain a full package prefix some KeYJavaType with this short name is taken.
Parameters:
  className - the name to look for (either full or short) a class matching the name



getTypeByName
public KeYJavaType getTypeByName(String fullName)(Code)
looks up the fully qualifying name given by a String in the list of all available KeYJavaTypes in the Java model
Parameters:
  fullName - the String the KeYJavaType with the name of the String



getTypeDeclaration
public TypeDeclaration getTypeDeclaration(String fullName)(Code)
returns a type declaration with the full name of the given String fullName



isAJavaCommonSort
public boolean isAJavaCommonSort(Sort sort)(Code)
tests if sort represents java.lang.Object, java.lang.Cloneable or java.io.Serializable



isPackage
public boolean isPackage(String name)(Code)
checks if name refers to a package
Parameters:
  name - a String with the name to be checked true iff name refers to a package



isSubtype
public boolean isSubtype(KeYJavaType subType, KeYJavaType superType)(Code)
returns true iff the given subType KeYJavaType is a sub type of the given KeYJavaType superType.



lookupVisibleAttribute
public ProgramVariable lookupVisibleAttribute(String programName, KeYJavaType classType)(Code)
looks up for a field of the given program name visible in the specified class type belonging to the type or one of its supertypes
Parameters:
  programName - the String containing the name of the field to be looked up. The name is in short notation, i.e. not fully qualified
Parameters:
  classType - the KeYJavaType of the class used as context the field of the given name



readJava
public ProgramElement readJava(String java)(Code)
reads a Java statement not necessarily a block



readJavaBlock
public JavaBlock readJavaBlock(String java, TypeDeclaration asIn)(Code)
reads a Java block given as a string java as it was in the given TypeDeclaration asIn.



readJavaBlock
public JavaBlock readJavaBlock(String java)(Code)
reads a Java block given as a String



rec2key
public KeYRecoderMapping rec2key()(Code)
convenience method that returns the Recoder-to-KeY mapping underlying the KeYProgModelInfo of this JavaInfo



resetCaches
public void resetCaches()(Code)



setJavaSourcePath
public void setJavaSourcePath(String path)(Code)



setKeYProgModelInfo
void setKeYProgModelInfo(KeYProgModelInfo kpmi)(Code)



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.