|
||||||||||
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.TextElement
public final class TextElement
Define a Text Element in the JET AST
Method Summary | |
---|---|
protected void |
accept0(JETASTVisitor visitor)
Visit the AST and its contained elements. |
org.eclipse.jet.internal.core.parser.LineInfo[] |
getLines()
|
char[] |
getRawText()
|
char[] |
getText()
Return the text content |
boolean |
isTrimFirstLine()
|
boolean |
isTrimLastLine()
|
boolean |
removeLineWhenOtherwiseEmpty()
Indicate whether the the surrounding whitespace, including the trailing new line should be removed from the template output. |
void |
setTrimFirstLine(boolean trim)
|
void |
setTrimLastLine(boolean trim)
|
Methods inherited from class org.eclipse.jet.core.parser.ast.JETASTElement |
---|
accept, getAst, getColumn, getEnd, getLine, getNextElement, getParent, getPrevElement, getStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void accept0(JETASTVisitor visitor)
JETASTElement
accept0
in class JETASTElement
JETASTElement.accept0(JETASTVisitor)
public char[] getText()
public char[] getRawText()
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 setTrimLastLine(boolean trim)
public final boolean isTrimLastLine()
public void setTrimFirstLine(boolean trim)
public final boolean isTrimFirstLine()
public final org.eclipse.jet.internal.core.parser.LineInfo[] getLines()
|
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 |