Class AbstractSrcMethod<T extends AbstractSrcMethod<T>>
java.lang.Object
manifold.api.gen.SrcElement
manifold.api.gen.SrcAnnotated<T>
manifold.api.gen.SrcStatement<T>
manifold.api.gen.AbstractSrcMethod<T>
- Direct Known Subclasses:
SrcConstructor, SrcGetProperty, SrcMethod, SrcSetProperty
-
Field Summary
Fields inherited from class SrcAnnotated
NON_SEALED, SEALEDFields inherited from class SrcElement
INDENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThrowType(SrcType type) voidaddTypeVar(SrcType typeVar) body(SrcStatementBlock body) booleanbooleanrender(StringBuilder sb, int indent) voidsetConstructor(boolean isConstructor) voidsetDefaultValue(String defaultValue) voidsetPrimaryConstructor(boolean primary) final TthrowsList(Class<? extends Throwable>... list) throwsList(SrcType... list) Methods inherited from class SrcAnnotated
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, renderAnnotations, renderArgumenets, renderModifiers, renderModifiers, renderParameters, renderParameters, withUserDataMethods inherited from class SrcElement
getOwner, indent, makeCompileTimeConstantValue, setOwner, toString
-
Constructor Details
-
AbstractSrcMethod
-
-
Method Details
-
isConstructor
public boolean isConstructor() -
setConstructor
public void setConstructor(boolean isConstructor) -
isPrimaryConstructor
public boolean isPrimaryConstructor() -
setPrimaryConstructor
public void setPrimaryConstructor(boolean primary) -
returns
-
returns
-
returns
-
addTypeVar
-
throwsList
-
throwsList
-
addThrowType
-
body
-
body
-
getDefaultValue
-
setDefaultValue
-
getReturnType
-
getTypeVariables
-
getThrowTypes
-
signature
-
render
- Specified by:
renderin classSrcElement
-