Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenJavaFile
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenJavaFile
- All Implemented Interfaces:
Closeable,Appendable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclassstatic enum -
Method Summary
Modifier and TypeMethodDescriptionappend(char character) append(CharSequence characterSequence) append(CharSequence characterSequence, int start, int end) beginPublicConstructor(String name) beginTypedefinition(String definition) voidclose()dot()endBlock()voidvoidexpression(JrpcgenJavaFile.Expression expression) intintnewLine()static JrpcgenJavaFileopen(String classname, JrpcgenContext context) println(char character) println(CharSequence characterSequence) space()writeHeader(boolean emitImports)
-
Method Details
-
open
-
getLineLength
public int getLineLength() -
getPrintWriter
-
writeHeader
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
println
-
println
-
beginLine
-
newLine
-
beginNewLine
-
space
-
dot
-
leftParenthesis
-
rightParenthesis
-
semicolon
-
keywordNew
-
keywordReturn
-
expression
-
beginTypedefinition
-
endTypedefinition
public void endTypedefinition() -
beginPublicConstructor
-
beginPrivateConstructor
-
beginPublicMethod
-
beginPrivateMethod
-
beginPublicAbstractMethod
-
beginInterfaceMethod
-
endMethod
public void endMethod() -
beginBlock
-
elseBlock
-
endBlock
-
getIndentationLength
public int getIndentationLength() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-