Package manifold.api.gen
Class SrcAnnotationExpression
- java.lang.Object
-
- manifold.api.gen.SrcElement
-
- manifold.api.gen.SrcAnnotated<T>
-
- manifold.api.gen.SrcExpression<SrcAnnotationExpression>
-
- manifold.api.gen.SrcAnnotationExpression
-
- Direct Known Subclasses:
SrcAnnotationArrayExpression
public class SrcAnnotationExpression extends SrcExpression<SrcAnnotationExpression>
-
-
Field Summary
-
Fields inherited from class manifold.api.gen.SrcAnnotated
NON_SEALED, SEALED
-
Fields inherited from class manifold.api.gen.SrcElement
INDENT
-
-
Constructor Summary
Constructors Constructor Description SrcAnnotationExpression(Class type)SrcAnnotationExpression(String fqn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SrcAnnotationExpressionaddArgument(String paramName, Class type, Object value)SrcAnnotationExpressionaddArgument(String paramName, SrcType type, Object value)SrcAnnotationExpressionaddArgument(SrcArgument arg)SrcAnnotationExpressioncopy()StringgetAnnotationType()SrcArgumentgetArgument(String paramName)List<SrcArgument>getArguments()StringBuilderrender(StringBuilder sb, int indent)StringBuilderrender(StringBuilder sb, int indent, boolean sameLine)-
Methods inherited from class manifold.api.gen.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, withUserData
-
Methods inherited from class manifold.api.gen.SrcElement
getOwner, indent, makeCompileTimeConstantValue, setOwner, toString
-
-
-
-
Method Detail
-
addArgument
public SrcAnnotationExpression addArgument(SrcArgument arg)
-
addArgument
public SrcAnnotationExpression addArgument(String paramName, Class type, Object value)
-
addArgument
public SrcAnnotationExpression addArgument(String paramName, SrcType type, Object value)
-
copy
public SrcAnnotationExpression copy()
- Specified by:
copyin classSrcExpression<SrcAnnotationExpression>
-
getAnnotationType
public String getAnnotationType()
-
getArguments
public List<SrcArgument> getArguments()
-
getArgument
public SrcArgument getArgument(String paramName)
-
render
public StringBuilder render(StringBuilder sb, int indent)
- Specified by:
renderin classSrcElement
-
render
public StringBuilder render(StringBuilder sb, int indent, boolean sameLine)
-
-