|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.gluegen.opengl.BuildComposablePipeline.PipelineEmitter
protected abstract class BuildComposablePipeline.PipelineEmitter
Emits a Java source file that represents one element of the composable pipeline.
Field Summary | |
---|---|
protected Class<?> |
baseInterfaceClass
|
protected String |
baseName
|
protected String |
basePackage
|
protected Class<?> |
downstreamClass
|
protected String |
downstreamName
|
protected String |
downstreamPackage
|
protected String |
outputDir
|
protected String |
outputPackage
|
protected Class<?> |
prologClassOpt
|
protected String |
prologNameOpt
|
protected String |
prologPackageOpt
|
Method Summary | |
---|---|
protected abstract void |
constructorHook(PrintWriter output)
Emits the constructor for the pipeline; called after the preMethodEmissionHook. |
void |
emit(Iterator<BuildComposablePipeline.PlainMethod> methodsToWrap)
|
protected void |
emitBody(PrintWriter output,
Method m,
boolean runHooks)
|
protected abstract void |
emitClassDocComment(PrintWriter output)
Emit a Javadoc comment for this pipeline class. |
protected void |
emitGLGetMethod(PrintWriter output,
String type)
Emits one of the getGL* methods. |
protected void |
emitGLGetMethods(PrintWriter output)
Emits all of the getGL* methods. |
protected void |
emitGLIsMethod(PrintWriter output,
String type)
Emits one of the isGL* methods. |
protected void |
emitGLIsMethods(PrintWriter output)
Emits all of the isGL* methods. |
protected void |
emitMethodDocComment(PrintWriter output,
Method m)
|
protected void |
emitSignature(PrintWriter output,
Method m)
|
protected abstract boolean |
emptyDownstreamAllowed()
|
protected abstract boolean |
emptyMethodAllowed()
|
protected String |
getArgListAsString(Method m,
boolean includeArgTypes,
boolean includeArgNames)
|
protected String |
getBaseInterfaceName()
The name of the class around which this pipeline is being composed. |
protected String |
getDownstreamObjectName()
Get the name of the object through which API calls should be routed. |
protected abstract int |
getMode()
|
protected abstract String |
getOutputName()
Get the output name for this pipeline class. |
protected String |
getPrologObjectNameOpt()
Get the name of the object which shall be called as a prolog. |
protected abstract boolean |
hasPostDownstreamCallHook(Method m)
|
protected abstract boolean |
hasPreDownstreamCallHook(Method m)
|
protected abstract void |
postDownstreamCallHook(PrintWriter output,
Method m)
Called after the pipeline has routed the call to the downstream object, but before the calling function exits or returns a value. |
protected void |
postMethodEmissionHook(PrintWriter output)
Called after the method wrappers have been generated, but before the closing parenthesis of the class is emitted. |
protected abstract void |
preDownstreamCallHook(PrintWriter output,
Method m)
Called before the pipeline routes the call to the downstream object. |
protected void |
preMethodEmissionHook(PrintWriter output)
Called after the class headers have been generated, but before any method wrappers have been generated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String basePackage
protected String baseName
protected String downstreamPackage
protected String downstreamName
protected String prologPackageOpt
protected String prologNameOpt
protected String outputDir
protected String outputPackage
protected Class<?> baseInterfaceClass
protected Class<?> prologClassOpt
protected Class<?> downstreamClass
Method Detail |
---|
public void emit(Iterator<BuildComposablePipeline.PlainMethod> methodsToWrap) throws IOException
IOException
protected String getDownstreamObjectName()
protected String getPrologObjectNameOpt()
protected void emitMethodDocComment(PrintWriter output, Method m)
protected void emitSignature(PrintWriter output, Method m)
protected void emitBody(PrintWriter output, Method m, boolean runHooks)
protected String getArgListAsString(Method m, boolean includeArgTypes, boolean includeArgNames)
protected String getBaseInterfaceName()
protected abstract String getOutputName()
protected void preMethodEmissionHook(PrintWriter output)
protected abstract void constructorHook(PrintWriter output)
protected void postMethodEmissionHook(PrintWriter output)
protected abstract void preDownstreamCallHook(PrintWriter output, Method m)
protected abstract boolean hasPreDownstreamCallHook(Method m)
protected abstract void postDownstreamCallHook(PrintWriter output, Method m)
protected abstract boolean hasPostDownstreamCallHook(Method m)
protected abstract int getMode()
protected abstract boolean emptyMethodAllowed()
protected abstract boolean emptyDownstreamAllowed()
protected abstract void emitClassDocComment(PrintWriter output)
protected void emitGLIsMethod(PrintWriter output, String type)
protected void emitGLIsMethods(PrintWriter output)
protected void emitGLGetMethod(PrintWriter output, String type)
protected void emitGLGetMethods(PrintWriter output)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |