|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.core.parser.ast.JETASTElement
org.eclipse.jet.core.parser.ast.BodyElement
org.eclipse.jet.core.parser.ast.IncludedContent
public final class IncludedContent
Container for content included as a result of a JET V1 <%@include %> directive.
Method Summary | |
---|---|
protected void |
accept0(JETASTVisitor visitor)
Visit the AST and its contained elements. |
void |
addBodyElement(BodyElement bodyElement)
Add an JET AST element to the body of the include |
BodyElement |
elementAfter(JETASTElement element)
Find the element after the given element in the directly contained elements |
BodyElement |
elementBefore(JETASTElement element)
Find the element before the given element in the directly contained elements |
java.net.URI |
getBaseLocationURI()
Return the base location URI of the template |
java.util.List |
getBodyElements()
Return a read-only list of JET elements contained by this element. |
JETASTElement |
getNextElement()
|
java.lang.String |
getTemplatePath()
Return the template Path of the include content |
boolean |
removeLineWhenOtherwiseEmpty()
Indicate whether the the surrounding whitespace, including the trailing new line should be removed from the template output. |
Methods inherited from class org.eclipse.jet.core.parser.ast.JETASTElement |
---|
accept, getAst, getColumn, getEnd, getLine, getParent, getPrevElement, getStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected final void accept0(JETASTVisitor visitor)
JETASTElement
accept0
in class JETASTElement
public java.net.URI getBaseLocationURI()
public final java.util.List getBodyElements()
JETASTElement
instances. The empty list is returned if there are no elements.public java.lang.String getTemplatePath()
public boolean removeLineWhenOtherwiseEmpty()
JETASTElement
false
, while element
that do should should return true
.
removeLineWhenOtherwiseEmpty
in class JETASTElement
true
if the containing line should be removed if
otherwise empty.public void addBodyElement(BodyElement bodyElement)
bodyElement
- public BodyElement elementAfter(JETASTElement element)
element
- a JET AST element
BodyElement
or null
public BodyElement elementBefore(JETASTElement element)
element
- a JET AST element
BodyElement
or null
public JETASTElement getNextElement()
getNextElement
in class JETASTElement
|
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 |