|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.codegen.jet.JETCompiler
org.eclipse.emf.codegen.jet.editor.util.JETCompilerExt
public class JETCompilerExt
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 |
---|
protected final java.lang.String NL
protected final java.lang.String METHOD_DECLARATION
protected final java.lang.String STRING_BUFFER_DECLARATION
Constructor Detail |
---|
public JETCompilerExt(java.lang.String templateURI, java.io.InputStream stream) throws org.eclipse.emf.codegen.jet.JETException
templateURI
- Stringstream
- InputStream
org.eclipse.emf.codegen.jet.JETException
Method Detail |
---|
public JETCompilerExt.Range getJETRange(int jetOffset, java.lang.String fileURI)
jetOffset
- intfileURI
- String
public JETCompilerExt.Range getJavaRange(int javaOffset)
javaOffset
- int
public JETCompilerExt.Range getJavaRange(JETCompilerExt.Range jetRange)
jetRange
- Range
public JETCompilerExt.Range getJetRange(JETCompilerExt.Range javaRange)
javaRange
- Range
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
handleExpression
in interface org.eclipse.emf.codegen.jet.JETParseEventListener
handleExpression
in class org.eclipse.emf.codegen.jet.JETCompiler
org.eclipse.emf.codegen.jet.JETException
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
handleScriptlet
in interface org.eclipse.emf.codegen.jet.JETParseEventListener
handleScriptlet
in class org.eclipse.emf.codegen.jet.JETCompiler
org.eclipse.emf.codegen.jet.JETException
public void parse() throws org.eclipse.emf.codegen.jet.JETException
parse
in class org.eclipse.emf.codegen.jet.JETCompiler
org.eclipse.emf.codegen.jet.JETException
public void doAddCharDataGenerator(char[] chars) throws org.eclipse.emf.codegen.jet.JETException
doAddCharDataGenerator
in class org.eclipse.emf.codegen.jet.JETCompiler
chars
- char[]
org.eclipse.emf.codegen.jet.JETException
public void addGenerator(org.eclipse.emf.codegen.jet.JETGenerator gen) throws org.eclipse.emf.codegen.jet.JETException
addGenerator
in class org.eclipse.emf.codegen.jet.JETCompiler
gen
- JETEditorGenerator
org.eclipse.emf.codegen.jet.JETException
public void generate(java.io.OutputStream outputStream) throws org.eclipse.emf.codegen.jet.JETException
generate
in class org.eclipse.emf.codegen.jet.JETCompiler
outputStream
- OutputStream
org.eclipse.emf.codegen.jet.JETException
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |