Package com.cloudimpl.codegen4j
Class PermissionBlock
- java.lang.Object
-
- com.cloudimpl.codegen4j.CodeBlock
-
- com.cloudimpl.codegen4j.PermissionBlock
-
- Direct Known Subclasses:
ClassBlock,ConstructorBlock,FunctionBlock
public abstract class PermissionBlock extends CodeBlock
- Author:
- nuwansa
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisFinalprotected booleanisStaticprotected AccessLevellevel-
Fields inherited from class com.cloudimpl.codegen4j.CodeBlock
codeBlocks
-
-
Constructor Summary
Constructors Constructor Description PermissionBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends PermissionBlock>
TwithAccess(AccessLevel level)<T extends PermissionBlock>
TwithFinal()<T extends PermissionBlock>
TwithStatic()-
Methods inherited from class com.cloudimpl.codegen4j.CodeBlock
addStmt, collectImports, createBlock, createElse, createElseIf, createIf, createName, createSwitch, createSynchronousBlock, disableBlockSpace, generateCode, generateHeader, pushBlock, stmt, var, withAnnotation, withImports, withReturnStatment
-
-
-
-
Field Detail
-
level
protected AccessLevel level
-
isStatic
protected boolean isStatic
-
isFinal
protected boolean isFinal
-
-
Method Detail
-
withAccess
public <T extends PermissionBlock> T withAccess(AccessLevel level)
-
withStatic
public <T extends PermissionBlock> T withStatic()
-
withFinal
public <T extends PermissionBlock> T withFinal()
-
-