java.lang.Object
io.helidon.codegen.classmodel.Executable
io.helidon.codegen.classmodel.Method

public final class Method extends Executable
Model of the method which should be created in the specific type.
  • Method Details

    • builder

      public static Method.Builder builder()
      Create new Method.Builder instance.
      Returns:
      new builder instance
    • isStatic

      public boolean isStatic()
      Is this a static method.
      Returns:
      whether this method is static
    • isFinal

      public boolean isFinal()
      Is this a final method.
      Returns:
      whether this method is final
    • isAbstract

      public boolean isAbstract()
      Is this an abstract method.
      Returns:
      whether this method is abstract
    • isDefault

      public boolean isDefault()
      Is this a default method (of an interface).
      Returns:
      whether this method is default
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • annotations

      public List<Annotation> annotations()
      List of annotations on this component.
      Returns:
      annotations
    • name

      public String name()
      Name of this component.
      Returns:
      component name
    • accessModifier

      public AccessModifier accessModifier()
      Access modifier of this component.
      Returns:
      access modifier
    • description

      public List<String> description()
      Description (javadoc) of this component.
      Returns:
      description lines
    • typeName

      public TypeName typeName()
      Type name of this component.
      Returns:
      type name