org.eclipse.emf.codegen.jet.editor.util
Class JETCompilerExt

java.lang.Object
  extended by org.eclipse.emf.codegen.jet.JETCompiler
      extended by org.eclipse.emf.codegen.jet.editor.util.JETCompilerExt
All Implemented Interfaces:
org.eclipse.emf.codegen.jet.JETParseEventListener

public class JETCompilerExt
extends org.eclipse.emf.codegen.jet.JETCompiler


Nested Class Summary
static class JETCompilerExt.Range
           
 
Field Summary
protected  java.lang.String METHOD_DECLARATION
           
protected  java.lang.String NL
           
protected  java.lang.String STRING_BUFFER_DECLARATION
           
 
Fields inherited from class org.eclipse.emf.codegen.jet.JETCompiler
CONSTANT_PREFIX, constantCount, constantDictionary, constants, fNoNewLineForScriptlets, fSavedLine, fUseStaticFinalConstants, generators, NULL_CHAR_ARRAY, parser, reader, sectionDepth, skeleton, skipping, skipSections, templateURI, templateURIPath, writer
 
Constructor Summary
JETCompilerExt(java.lang.String templateURI, java.io.InputStream stream)
          Constructor for JETCompilerExt.
 
Method Summary
 void addGenerator(org.eclipse.emf.codegen.jet.JETGenerator gen)
          Method addGenerator.
 void doAddCharDataGenerator(char[] chars)
          Method doAddCharDataGenerator.
 void generate(java.io.OutputStream outputStream)
          Method generate.
 JETCompilerExt.Range getJavaRange(int javaOffset)
          Method getJavaRange.
 JETCompilerExt.Range getJavaRange(JETCompilerExt.Range jetRange)
          Method getJavaRange.
 JETCompilerExt.Range getJETRange(int jetOffset, java.lang.String fileURI)
          Method getJETRange.
 JETCompilerExt.Range getJetRange(JETCompilerExt.Range javaRange)
          Method getJetRange.
 void handleExpression(org.eclipse.emf.codegen.jet.JETMark start, org.eclipse.emf.codegen.jet.JETMark stop, java.util.Map attributes)
           
 void handleScriptlet(org.eclipse.emf.codegen.jet.JETMark start, org.eclipse.emf.codegen.jet.JETMark stop, java.util.Map attributes)
           
 void parse()
           
 
Methods inherited from class org.eclipse.emf.codegen.jet.JETCompiler
addCharDataGenerator, beginPageProcessing, endPageProcessing, find, findLocation, generate, getResolvedTemplateURI, getSkeleton, handleCharData, handleDirective, handleNewSkeleton, openStream, parse, resolveLocation, resolveLocation, stripFirstNewLineWithBlanks, stripLastNewLineWithBlanks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL

protected final java.lang.String NL

METHOD_DECLARATION

protected final java.lang.String METHOD_DECLARATION
See Also:
Constant Field Values

STRING_BUFFER_DECLARATION

protected final java.lang.String STRING_BUFFER_DECLARATION
Constructor Detail

JETCompilerExt

public JETCompilerExt(java.lang.String templateURI,
                      java.io.InputStream stream)
               throws org.eclipse.emf.codegen.jet.JETException
Constructor for JETCompilerExt.

Parameters:
templateURI - String
stream - InputStream
Throws:
org.eclipse.emf.codegen.jet.JETException
Method Detail

getJETRange

public JETCompilerExt.Range getJETRange(int jetOffset,
                                        java.lang.String fileURI)
Method getJETRange.

Parameters:
jetOffset - int
fileURI - String
Returns:
Range

getJavaRange

public JETCompilerExt.Range getJavaRange(int javaOffset)
Method getJavaRange.

Parameters:
javaOffset - int
Returns:
Range

getJavaRange

public JETCompilerExt.Range getJavaRange(JETCompilerExt.Range jetRange)
Method getJavaRange.

Parameters:
jetRange - Range
Returns:
Range

getJetRange

public JETCompilerExt.Range getJetRange(JETCompilerExt.Range javaRange)
Method getJetRange.

Parameters:
javaRange - Range
Returns:
Range

handleExpression

public void handleExpression(org.eclipse.emf.codegen.jet.JETMark start,
                             org.eclipse.emf.codegen.jet.JETMark stop,
                             java.util.Map attributes)
                      throws org.eclipse.emf.codegen.jet.JETException
Specified by:
handleExpression in interface org.eclipse.emf.codegen.jet.JETParseEventListener
Overrides:
handleExpression in class org.eclipse.emf.codegen.jet.JETCompiler
Throws:
org.eclipse.emf.codegen.jet.JETException

handleScriptlet

public void handleScriptlet(org.eclipse.emf.codegen.jet.JETMark start,
                            org.eclipse.emf.codegen.jet.JETMark stop,
                            java.util.Map attributes)
                     throws org.eclipse.emf.codegen.jet.JETException
Specified by:
handleScriptlet in interface org.eclipse.emf.codegen.jet.JETParseEventListener
Overrides:
handleScriptlet in class org.eclipse.emf.codegen.jet.JETCompiler
Throws:
org.eclipse.emf.codegen.jet.JETException

parse

public void parse()
           throws org.eclipse.emf.codegen.jet.JETException
Overrides:
parse in class org.eclipse.emf.codegen.jet.JETCompiler
Throws:
org.eclipse.emf.codegen.jet.JETException

doAddCharDataGenerator

public void doAddCharDataGenerator(char[] chars)
                            throws org.eclipse.emf.codegen.jet.JETException
Method doAddCharDataGenerator.

Overrides:
doAddCharDataGenerator in class org.eclipse.emf.codegen.jet.JETCompiler
Parameters:
chars - char[]
Throws:
org.eclipse.emf.codegen.jet.JETException

addGenerator

public void addGenerator(org.eclipse.emf.codegen.jet.JETGenerator gen)
                  throws org.eclipse.emf.codegen.jet.JETException
Method addGenerator.

Overrides:
addGenerator in class org.eclipse.emf.codegen.jet.JETCompiler
Parameters:
gen - JETEditorGenerator
Throws:
org.eclipse.emf.codegen.jet.JETException

generate

public void generate(java.io.OutputStream outputStream)
              throws org.eclipse.emf.codegen.jet.JETException
Method generate.

Overrides:
generate in class org.eclipse.emf.codegen.jet.JETCompiler
Parameters:
outputStream - OutputStream
Throws:
org.eclipse.emf.codegen.jet.JETException

Copyright 2006 IBM Corporation and others.
All Rights Reserved.