| 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,
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. |
exceptions | final protected Throws exceptions(Code) | | Exceptions.
|
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
|
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 |
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. |
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. |
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. |
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.
|
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)
|
|
|