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, getTypeVariables
getModifiers, setModifiers
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModifiers
protected 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 MetaProcedure
public 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 MetaProcedure
public void addStatement(String template, Formattable... args)
addStatement
in interface GeneratedCode
public void addStatement(Format statement)
addStatement
in interface GeneratedCode
public void clearStatements()
public Format getCode()
see also the complete user documentation .