Package com.cloudimpl.codegen4j
Class FunctionBlock
- java.lang.Object
-
- com.cloudimpl.codegen4j.CodeBlock
-
- com.cloudimpl.codegen4j.PermissionBlock
-
- com.cloudimpl.codegen4j.FunctionBlock
-
public final class FunctionBlock extends PermissionBlock
- Author:
- nuwansa
-
-
Field Summary
Fields Modifier and Type Field Description protected StringfunctionNameprotected StringreturnType-
Fields inherited from class com.cloudimpl.codegen4j.PermissionBlock
isFinal, isStatic, level
-
-
Constructor Summary
Constructors Constructor Description FunctionBlock(String functionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StatementgenerateHeader()FunctionBlockwithArgs(String... args)FunctionBlockwithReturnType(String returnType)-
Methods inherited from class com.cloudimpl.codegen4j.PermissionBlock
withAccess, withFinal, withStatic
-
Methods inherited from class com.cloudimpl.codegen4j.CodeBlock
addStmt, createName, generateCode, pushBlock, stmt, var, withAnnotation
-
-
-
-
Constructor Detail
-
FunctionBlock
public FunctionBlock(String functionName)
-
-
Method Detail
-
withArgs
public FunctionBlock withArgs(String... args)
-
withReturnType
public FunctionBlock withReturnType(String returnType)
-
generateHeader
protected Statement generateHeader()
- Specified by:
generateHeaderin classCodeBlock
-
-