|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Template
public class Template
Template is the main container node for Tea templates.
| Constructor Summary | |
|---|---|
Template()
|
|
Template(SourceInfo info,
Name name,
Variable[] params,
boolean subParam,
Statement statement,
List<Directive> directiveList)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
List<Directive> |
getDirectives()
|
Name |
getName()
|
Variable[] |
getParams()
|
Object |
getProperty(String propertyName)
|
Type |
getReturnType()
The return type is set by a type checker. |
Statement |
getStatement()
Will likely return a StatementList or Block in order to hold many statements. |
boolean |
hasSubstitutionParam()
|
void |
setName(Name name)
|
void |
setParams(Variable[] params)
|
void |
setProperty(String propertyName,
Object value)
|
void |
setReturnType(Type type)
|
void |
setStatement(Statement stmt)
|
| Methods inherited from class org.teatrove.tea.parsetree.Node |
|---|
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Template()
public Template(SourceInfo info,
Name name,
Variable[] params,
boolean subParam,
Statement statement,
List<Directive> directiveList)
| Method Detail |
|---|
public Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).
accept in class Nodevisitor - A visitor of this Node
NodeVisitorpublic Object clone()
Node
clone in class Nodepublic Name getName()
public void setName(Name name)
public Variable[] getParams()
public void setParams(Variable[] params)
public Object getProperty(String propertyName)
public void setProperty(String propertyName,
Object value)
public boolean hasSubstitutionParam()
public Statement getStatement()
StatementList,
Blockpublic void setStatement(Statement stmt)
public List<Directive> getDirectives()
public Type getReturnType()
getReturnType in interface Returnablepublic void setReturnType(Type type)
setReturnType in interface Returnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||