Class MethodDeclaration

All Implemented Interfaces:
DeclarationHolder, HasType, Persistable, IVisitable<de.fraunhofer.aisec.cpg.graph.Node>
Direct Known Subclasses:
ConstructorDeclaration

public class MethodDeclaration
extends FunctionDeclaration
A method declaration is a FunctionDeclaration tied to a specific RecordDeclaration.
  • Constructor Details

    • MethodDeclaration

      public MethodDeclaration()
  • Method Details

    • isStatic

      public boolean isStatic()
    • setStatic

      public void setStatic​(boolean isStatic)
    • getRecordDeclaration

      public @Nullable RecordDeclaration getRecordDeclaration()
    • setRecordDeclaration

      public void setRecordDeclaration​(@Nullable RecordDeclaration recordDeclaration)
    • getReceiver

      public @Nullable VariableDeclaration getReceiver()
    • setReceiver

      public void setReceiver​(@Nullable VariableDeclaration receiver)