public class AbstractSrcMethod<T extends AbstractSrcMethod<T>> extends SrcStatement<T>
INDENT
Constructor and Description |
---|
AbstractSrcMethod(AbstractSrcClass srcClass) |
Modifier and Type | Method and Description |
---|---|
void |
addThrowType(SrcType type) |
void |
addTypeVar(SrcType typeVar) |
T |
body(SrcStatementBlock body) |
T |
body(String rawText) |
SrcType |
getReturnType() |
List<SrcType> |
getThrowTypes() |
List<SrcType> |
getTypeVariables() |
boolean |
isConstructor() |
boolean |
isPrimaryConstructor() |
StringBuilder |
render(StringBuilder sb,
int indent) |
T |
returns(Class returns) |
T |
returns(SrcType returns) |
T |
returns(String returns) |
void |
setConstructor(boolean isConstructor) |
void |
setPrimaryConstructor(boolean primary) |
String |
signature() |
T |
throwsList(Class<? extends Throwable>... list) |
T |
throwsList(SrcType... list) |
addAnnotation, addAnnotation, addAnnotation, addParam, addParam, addParam, addParam, clearUserData, computeOrGetUserData, forwardParameters, getAnnotation, getAnnotations, getModifiers, getParameters, getSimpleName, getUserData, hasAnnotation, hasAnnotation, insertParam, modifiers, modifiers, modifiersFrom, name, removeUserData, renderAnnotations, renderArgumenets, renderModifiers, renderModifiers, renderParameters, renderParameters, withUserData
getOwner, indent, makeCompileTimeConstantValue, setOwner, toString
public AbstractSrcMethod(AbstractSrcClass srcClass)
public boolean isConstructor()
public void setConstructor(boolean isConstructor)
public boolean isPrimaryConstructor()
public void setPrimaryConstructor(boolean primary)
public void addTypeVar(SrcType typeVar)
@SafeVarargs public final T throwsList(Class<? extends Throwable>... list)
public void addThrowType(SrcType type)
public T body(SrcStatementBlock body)
public SrcType getReturnType()
public String signature()
public StringBuilder render(StringBuilder sb, int indent)
render
in class SrcElement
Copyright © 2024. All rights reserved.