|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.scape_project.xa.tw.tmpl.Code
public abstract class Code
Abstract class for code templates that can be evaluated by the Velocity template engine. Evaluation is performed by applying the Velocity context to the source code content.
Constructor Summary | |
---|---|
Code(String templateFilePath)
Constructs a Code object from a template file |
Method Summary | |
---|---|
void |
evaluate()
Apply the Velocity evaluation |
String |
getCode()
Get the code (after the Velocity evaluation is completed) |
org.apache.velocity.VelocityContext |
getCtx()
|
void |
put(String key,
String val)
Add a key value pair to the Velocity context |
void |
put(org.apache.velocity.VelocityContext context)
|
void |
setCode(String code)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Code(String templateFilePath) throws IOException
templateFilePath
- the strin path to the template file
IOException
Method Detail |
---|
public String getCode()
public void put(String key, String val)
key
- Keyval
- Valuepublic void put(org.apache.velocity.VelocityContext context)
context
- public void evaluate()
context
- public org.apache.velocity.VelocityContext getCtx()
public void setCode(String code)
code
- the code to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |