Class AbstractSrcMethod<T extends AbstractSrcMethod<T>>

Direct Known Subclasses:
SrcConstructor, SrcGetProperty, SrcMethod, SrcSetProperty

public class AbstractSrcMethod<T extends AbstractSrcMethod<T>> extends SrcStatement<T>
  • Constructor Details

  • Method Details

    • isConstructor

      public boolean isConstructor()
    • setConstructor

      public void setConstructor(boolean isConstructor)
    • isPrimaryConstructor

      public boolean isPrimaryConstructor()
    • setPrimaryConstructor

      public void setPrimaryConstructor(boolean primary)
    • returns

      public T returns(SrcType returns)
    • returns

      public T returns(Class returns)
    • returns

      public T returns(String returns)
    • addTypeVar

      public void addTypeVar(SrcType typeVar)
    • throwsList

      @SafeVarargs public final T throwsList(Class<? extends Throwable>... list)
    • throwsList

      public T throwsList(SrcType... list)
    • addThrowType

      public void addThrowType(SrcType type)
    • body

      public T body(SrcStatementBlock body)
    • body

      public T body(String rawText)
    • getDefaultValue

      public String getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • getReturnType

      public SrcType getReturnType()
    • getTypeVariables

      public List<SrcType> getTypeVariables()
    • getThrowTypes

      public List<SrcType> getThrowTypes()
    • signature

      public String signature()
    • render

      public StringBuilder render(StringBuilder sb, int indent)
      Specified by:
      render in class SrcElement