public abstract class GeneratedProcedure extends GeneratedMember implements MetaProcedure, GeneratedCode
| Modifier and Type | Field and Description |
|---|---|
protected List<Format> |
statements |
enclosing, name| Modifier | Constructor and Description |
|---|---|
protected |
GeneratedProcedure(GeneratedClass enclosing,
int modifiers,
String name) |
addTypeVariable, addTypeVariable, getEnclosingClass, getName, getTypeVariablesgetModifiers, setModifiersaddAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModifiersprotected GeneratedProcedure(GeneratedClass enclosing, int modifiers, String name)
public GeneratedParameter addParameter(GeneratedParameter newParameter)
public GeneratedParameter addParameter(MetaType type, String name)
public GeneratedParameter addParameter(Class type, String name)
public GeneratedParameter addParameter(int modifiers, MetaType type, String name)
public GeneratedParameter addParameter(int modifiers, Class type, String name)
public GeneratedParameter addParameterEllipsis(MetaType type, String name)
public GeneratedParameter addParameterEllipsis(Class type, String name)
public List<GeneratedParameter> getParameters()
public GeneratedParameter getParameter(int index)
public List<MetaType> getParameterTypes()
getParameterTypes in interface MetaProcedurepublic void addTypeParameter(GeneratedTypeVariable var)
public List<GeneratedTypeVariable> getTypeParameters()
public void addExceptionType(Class exception)
public void addExceptionType(MetaClass exception)
public Collection<MetaClass> getExceptionTypes()
getExceptionTypes in interface MetaProcedurepublic void addStatement(String template, Formattable... args)
addStatement in interface GeneratedCodepublic void addStatement(Format statement)
addStatement in interface GeneratedCodepublic void clearStatements()
public Format getCode()
see also the complete user documentation .