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


java.lang.Object
   de.uka.ilkd.key.java.JavaSourceElement
      de.uka.ilkd.key.java.JavaProgramElement
         de.uka.ilkd.key.java.JavaNonTerminalProgramElement
            de.uka.ilkd.key.java.declaration.JavaDeclaration
               de.uka.ilkd.key.java.declaration.MethodDeclaration

All known Subclasses:   de.uka.ilkd.key.java.declaration.ConstructorDeclaration,
MethodDeclaration
public class MethodDeclaration extends JavaDeclaration implements MemberDeclaration,TypeReferenceContainer,NamedProgramElement,ParameterContainer,Method,VariableScope(Code)
Method declaration. taken from COMPOST and changed to achieve an immutable structure


Field Summary
final protected  StatementBlockbody
     Body.
final protected  Throwsexceptions
     Exceptions.
final protected  ProgramElementNamename
     Name.
final protected  ArrayOfParameterDeclarationparameters
     Parameters.
final protected  booleanparentIsInterfaceDeclaration
    
final protected  TypeReferencereturnType
     Return type.

Constructor Summary
public  MethodDeclaration(ExtList children, boolean parentIsInterfaceDeclaration)
     Method declaration.
Parameters:
  children - an ExtList of children.
public  MethodDeclaration(Modifier[] modifiers, TypeReference returnType, ProgramElementName name, ParameterDeclaration[] parameters, Throws exceptions, StatementBlock body, boolean parentIsInterfaceDeclaration)
     Method declaration.
Parameters:
  modifiers - a modifier array
Parameters:
  returnType - a type reference.
Parameters:
  name - an identifier.
Parameters:
  parameters - a parameter declaration mutable list.
Parameters:
  exceptions - a throws.
public  MethodDeclaration(Modifier[] modifiers, TypeReference returnType, ProgramElementName name, ArrayOfParameterDeclaration parameters, Throws exceptions, StatementBlock body, boolean parentIsInterfaceDeclaration)
     Method declaration.
Parameters:
  modifiers - a modifier array
Parameters:
  returnType - a type reference.
Parameters:
  name - an identifier.
Parameters:
  parameters - a parameter declaration mutable list.
Parameters:
  exceptions - a throws.

Method Summary
public  StatementBlockgetBody()
     Get body.
public  ProgramElementgetChildAt(int index)
    
public  intgetChildCount()
     Returns the number of children of this node.
public  Comment[]getComments()
     returns the comments belonging to this MethodDeclaration.
public  SourceElementgetFirstElement()
    
public  StringgetFullName()
    
public  SourceElementgetLastElement()
    
final public  StringgetName()
    
public  ParameterDeclarationgetParameterDeclarationAt(int index)
    
public  intgetParameterDeclarationCount()
     Get the number of parameters in this container.
public  ArrayOfParameterDeclarationgetParameters()
     Get parameters.
public  ProgramElementNamegetProgramElementName()
    
public  StatementgetStatementAt(int index)
    
public  intgetStatementCount()
     Get the number of statements in this container.
public  ThrowsgetThrown()
     Get thrown.
public  TypeReferencegetTypeReference()
     Get return type.
public  TypeReferencegetTypeReferenceAt(int index)
    
public  intgetTypeReferenceCount()
     Get the number of type references in this container.
public  booleanisAbstract()
     Test whether the declaration is abstract.
public  booleanisFinal()
     Test whether the declaration is final.
public  booleanisModel()
     Test whether the declaration is model (the jml modifier is meant).
public  booleanisNative()
     Test whether the declaration is native.
public  booleanisPrivate()
     Test whether the declaration is private.
public  booleanisProtected()
     Test whether the declaration is protected.
public  booleanisPublic()
     Test whether the declaration is public.
public  booleanisStatic()
     Test whether the declaration is static.
public  booleanisStrictFp()
     Test whether the declaration is strictfp.
public  booleanisSynchronized()
     Test whether the declaration is synchronized.
public  voidprettyPrint(PrettyPrinter p)
    
public  voidvisit(Visitor v)
    

Field Detail
body
final protected StatementBlock body(Code)
Body.



exceptions
final protected Throws exceptions(Code)
Exceptions.



name
final protected ProgramElementName name(Code)
Name.



parameters
final protected ArrayOfParameterDeclaration parameters(Code)
Parameters.



parentIsInterfaceDeclaration
final protected boolean parentIsInterfaceDeclaration(Code)
this field stores if parent is an InterfaceDeclaration because we will be unable to walk the tree upwards to check this



returnType
final protected TypeReference returnType(Code)
Return type.




Constructor Detail
MethodDeclaration
public MethodDeclaration(ExtList children, boolean parentIsInterfaceDeclaration)(Code)
Method declaration.
Parameters:
  children - an ExtList of children. Mayinclude: a TypeReference (as a reference to the return type), ade.uka.ilkd.key.logic.ProgramElementName (as Name of the method),several ParameterDeclaration (as parameters of the declared method), aStatementBlock (as body of the declared method), several Modifier (taken as modifiers of the declaration), a Comment
Parameters:
  parentIsInterfaceDeclaration - a boolean set true iffparent is an InterfaceDeclaration



MethodDeclaration
public MethodDeclaration(Modifier[] modifiers, TypeReference returnType, ProgramElementName name, ParameterDeclaration[] parameters, Throws exceptions, StatementBlock body, boolean parentIsInterfaceDeclaration)(Code)
Method declaration.
Parameters:
  modifiers - a modifier array
Parameters:
  returnType - a type reference.
Parameters:
  name - an identifier.
Parameters:
  parameters - a parameter declaration mutable list.
Parameters:
  exceptions - a throws.
Parameters:
  body - a statement block.
Parameters:
  parentIsInterfaceDeclaration - a boolean set true iffparent is an InterfaceDeclaration



MethodDeclaration
public MethodDeclaration(Modifier[] modifiers, TypeReference returnType, ProgramElementName name, ArrayOfParameterDeclaration parameters, Throws exceptions, StatementBlock body, boolean parentIsInterfaceDeclaration)(Code)
Method declaration.
Parameters:
  modifiers - a modifier array
Parameters:
  returnType - a type reference.
Parameters:
  name - an identifier.
Parameters:
  parameters - a parameter declaration mutable list.
Parameters:
  exceptions - a throws.
Parameters:
  body - a statement block.
Parameters:
  parentIsInterfaceDeclaration - a boolean set true iffparent is an InterfaceDeclaration




Method Detail
getBody
public StatementBlock getBody()(Code)
Get body. the statement block.



getChildAt
public ProgramElement getChildAt(int index)(Code)
Returns the child at the specified index in this node's "virtual" child array
Parameters:
  index - an index into this node's "virtual" child array the program element at the given position
exception:
  ArrayIndexOutOfBoundsException - if index is outof bounds



getChildCount
public int getChildCount()(Code)
Returns the number of children of this node. an int giving the number of children of this node



getComments
public Comment[] getComments()(Code)
returns the comments belonging to this MethodDeclaration. the comments.



getFirstElement
public SourceElement getFirstElement()(Code)



getFullName
public String getFullName()(Code)



getLastElement
public SourceElement getLastElement()(Code)



getName
final public String getName()(Code)



getParameterDeclarationAt
public ParameterDeclaration getParameterDeclarationAt(int index)(Code)



getParameterDeclarationCount
public int getParameterDeclarationCount()(Code)
Get the number of parameters in this container. the number of parameters.



getParameters
public ArrayOfParameterDeclaration getParameters()(Code)
Get parameters. the parameter declaration array wrapper.



getProgramElementName
public ProgramElementName getProgramElementName()(Code)



getStatementAt
public Statement getStatementAt(int index)(Code)



getStatementCount
public int getStatementCount()(Code)
Get the number of statements in this container. the number of statements.



getThrown
public Throws getThrown()(Code)
Get thrown. the throws.



getTypeReference
public TypeReference getTypeReference()(Code)
Get return type. the type reference.



getTypeReferenceAt
public TypeReference getTypeReferenceAt(int index)(Code)



getTypeReferenceCount
public int getTypeReferenceCount()(Code)
Get the number of type references in this container. the number of type references.



isAbstract
public boolean isAbstract()(Code)
Test whether the declaration is abstract. Methods of interfaces are always abstract.



isFinal
public boolean isFinal()(Code)
Test whether the declaration is final.



isModel
public boolean isModel()(Code)
Test whether the declaration is model (the jml modifier is meant).



isNative
public boolean isNative()(Code)
Test whether the declaration is native. Constructors are never native.



isPrivate
public boolean isPrivate()(Code)
Test whether the declaration is private.



isProtected
public boolean isProtected()(Code)
Test whether the declaration is protected.



isPublic
public boolean isPublic()(Code)
Test whether the declaration is public. Methods of interfaces are always public.



isStatic
public boolean isStatic()(Code)
Test whether the declaration is static.



isStrictFp
public boolean isStrictFp()(Code)
Test whether the declaration is strictfp.



isSynchronized
public boolean isSynchronized()(Code)
Test whether the declaration is synchronized.



prettyPrint
public void prettyPrint(PrettyPrinter p) throws java.io.IOException(Code)



visit
public void visit(Visitor v)(Code)
calls the corresponding method of a visitor in order to perform some action/transformation on this element
Parameters:
  v - the Visitor



Fields inherited from de.uka.ilkd.key.java.declaration.JavaDeclaration
final protected ArrayOfModifier modArray(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.java.declaration.JavaDeclaration
public ArrayOfModifier getModifiers()(Code)(Java Doc)
public VisibilityModifier getVisibilityModifier()(Code)(Java Doc)
protected boolean isAbstract()(Code)(Java Doc)
protected boolean isFinal()(Code)(Java Doc)
protected boolean isModel()(Code)(Java Doc)
protected boolean isNative()(Code)(Java Doc)
protected boolean isPrivate()(Code)(Java Doc)
protected boolean isProtected()(Code)(Java Doc)
protected boolean isPublic()(Code)(Java Doc)
protected boolean isStatic()(Code)(Java Doc)
protected boolean isStrictFp()(Code)(Java Doc)
protected boolean isSynchronized()(Code)(Java Doc)
protected boolean isTransient()(Code)(Java Doc)
protected boolean isVolatile()(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.java.JavaNonTerminalProgramElement
protected boolean compatibleBlockSize(int pos, int max)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public boolean equalsModRenaming(SourceElement se, NameAbstractionTable nat)(Code)(Java Doc)
protected int getArrayPos(ArrayOfProgramElement arr, ProgramElement el)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public MatchConditions match(SourceData source, MatchConditions matchCond)(Code)(Java Doc)
protected MatchConditions matchChildren(SourceData source, MatchConditions matchCond, int offset)(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.java.JavaProgramElement
public boolean equals(Object o)(Code)(Java Doc)
public boolean equalsModRenaming(SourceElement se, NameAbstractionTable nat)(Code)(Java Doc)
public int getAnnotationCount()(Code)(Java Doc)
public Annotation[] getAnnotations()(Code)(Java Doc)
public Comment[] getComments()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public MatchConditions match(SourceData source, MatchConditions matchCond)(Code)(Java Doc)
public void prettyPrint(PrettyPrinter w) throws IOException(Code)(Java Doc)
protected void prettyPrintMain(PrettyPrinter w) throws IOException(Code)(Java Doc)
public String reuseSignature(Services services, ExecutionContext ec)(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.java.JavaSourceElement
public Position getEndPosition()(Code)(Java Doc)
public SourceElement getFirstElement()(Code)(Java Doc)
public SourceElement getLastElement()(Code)(Java Doc)
public String getParentClass()(Code)(Java Doc)
public PositionInfo getPositionInfo()(Code)(Java Doc)
public Position getRelativePosition()(Code)(Java Doc)
public Position getStartPosition()(Code)(Java Doc)
abstract public void prettyPrint(PrettyPrinter w) throws IOException(Code)(Java Doc)
protected void setParentClass(String s)(Code)(Java Doc)
public String toSource()(Code)(Java Doc)
public String toString()(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.