Interface CodeFunction
- All Superinterfaces:
CodeItem, CodeItemWithVariables, CodeMutable, CodeMutableItem, CodeNode, CodeNodeItem, CodeWithContext
- All Known Subinterfaces:
CodeConstructor, CodeLambdaExpression, CodeMethod, CodeOperation
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeItemWithVariables
getVariableMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeNodeItem
copy, copyMethods inherited from interface CodeWithContext
getContext, getSource
-
Method Details
-
getBody
CodeBlockBody getBody()- Returns:
- the
CodeBlockBodyof this function. May be empty (have nostatements) but nevernull.
-
canHaveBody
-
setBody
-