Packages

c

ch.usi.inf.reveal.parsing.model.java

MethodDeclarationNode

case class MethodDeclarationNode(modifiers: Seq[ModifierNode], typeParameters: Option[TypeParametersNode], returnType: Option[TypeNode], identifier: IdentifierNode, parameters: FormalParametersNode, arrayReturnType: Seq[ArrayDimensionNode], thrownExceptions: Option[ThrownExceptionsNode], body: Option[MethodBodyNode], documentation: Option[JavadocCommentNode] = None, comments: Seq[CommentNode] = Seq()) extends MemberDeclarationNode with JavadocDocumentableEntity with Product with Serializable

A method/constructor declaration node.

Many attributes are optional because this class encloses also partial, incomplete declarations found in fragments.

modifiers

the modifiers for this method.

typeParameters

the optional type parameters for this method.

returnType

the (optional) return type of the method. If not defined, the method is a constructor.

identifier

the method name.

parameters

the formal parameter list

arrayReturnType

the optional array return type found in old java grammar at the end of the method declaration.

thrownExceptions

optional list of thrown exceptions.

body

the optional body (implementation) of the method.

See also

#isConstructor

Linear Supertypes
Serializable, Serializable, JavadocDocumentableEntity, MemberDeclarationNode, JavaASTNode, HASTNode, JsonSerializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MethodDeclarationNode
  2. Serializable
  3. Serializable
  4. JavadocDocumentableEntity
  5. MemberDeclarationNode
  6. JavaASTNode
  7. HASTNode
  8. JsonSerializable
  9. Product
  10. Equals
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MethodDeclarationNode(modifiers: Seq[ModifierNode], typeParameters: Option[TypeParametersNode], returnType: Option[TypeNode], identifier: IdentifierNode, parameters: FormalParametersNode, arrayReturnType: Seq[ArrayDimensionNode], thrownExceptions: Option[ThrownExceptionsNode], body: Option[MethodBodyNode], documentation: Option[JavadocCommentNode] = None, comments: Seq[CommentNode] = Seq())

    builds a new node (used only in parsing)

    builds a new node (used only in parsing)

    modifiers

    the modifiers for this method.

    typeParameters

    the optional type parameters for this method.

    returnType

    the (optional) return type of the method. If not defined, the method is a constructor.

    identifier

    the method name.

    parameters

    the formal parameter list

    arrayReturnType

    the optional array return type found in old java grammar at the end of the method declaration.

    thrownExceptions

    optional list of thrown exceptions.

    body

    the optional body (implementation) of the method.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val annotations: Seq[AnnotationNode]

    The annotations for this member.

    The annotations for this member.

    Definition Classes
    MemberDeclarationNode
  5. val arrayReturnType: Seq[ArrayDimensionNode]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bindDocumentation(newDocumentation: Some[JavadocCommentNode]): MethodDeclarationNode

    Binds some new documentation to the specific entity.

    Binds some new documentation to the specific entity.

    newDocumentation

    a new Javadoc documentation node.

    Definition Classes
    MethodDeclarationNodeJavadocDocumentableEntity
  8. def bindModifiers(newModifiers: Seq[ModifierNode]): MethodDeclarationNode

    Binds an additional set of modifiers for this node, constructing a new Member Declaration.

    Binds an additional set of modifiers for this node, constructing a new Member Declaration.

    newModifiers

    a new set of modifiers to add.

    returns

    a new member declaration node with the same attributes of this but an additional set of modifiers.

    Definition Classes
    MethodDeclarationNodeMemberDeclarationNode
  9. val body: Option[MethodBodyNode]
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val comments: Seq[CommentNode]
  12. val documentation: Option[JavadocCommentNode]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. val identifier: IdentifierNode
  17. def isConstructor: Boolean

    Returns true iff the method is a constructor.

  18. def isIncomplete: Boolean

    Returns true iff the body is not defined.

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def javadocContents: Option[JavadocContentsNode]

    Utility method to access directly to javadoc documentation.

    Utility method to access directly to javadoc documentation.

    Definition Classes
    JavadocDocumentableEntity
  21. lazy val keywordModifiers: Seq[KeywordModifierNode]

    The keyword modifiers for this member.

    The keyword modifiers for this member.

    Definition Classes
    MemberDeclarationNode
  22. val modifiers: Seq[ModifierNode]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. val parameters: FormalParametersNode
  27. val returnType: Option[TypeNode]
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. val thrownExceptions: Option[ThrownExceptionsNode]
  30. val typeParameters: Option[TypeParametersNode]
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from JavadocDocumentableEntity

Inherited from MemberDeclarationNode

Inherited from JavaASTNode

Inherited from HASTNode

Inherited from JsonSerializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped