|
org.eclipse.jet.core.parser.ast
Class JETDirective
java.lang.Object
org.eclipse.jet.core.parser.ast.JETASTElement
org.eclipse.jet.core.parser.ast.BodyElement
org.eclipse.jet.core.parser.ast.JETDirective
-
public final class JETDirective
- extends
BodyElement
Define a Directive Element in the JET AST
Method Summary
|
protected void
|
accept0
(
JETASTVisitor visitor)
Visit the AST and its contained elements. |
java.util.Map
|
getAttributes
()
Return a Map the directive attribute names to values |
java.lang.String
|
getName
()
Return the directive name |
boolean
|
removeLineWhenOtherwiseEmpty
()
Indicate whether the the surrounding whitespace, including the trailing
new line should be removed from the template output. |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
getName
public final java.lang.String getName()
- Return the directive name
-
-
Returns:
- the directive name
getAttributes
public final java.util.Map getAttributes()
- Return a Map the directive attribute names to values
-
-
Returns:
- a Map of the directive attributes (unmodifiable)
accept0
protected void accept0(
JETASTVisitor visitor)
-
Description copied from class:
JETASTElement
- Visit the AST and its contained elements.
-
-
Specified by:
-
accept0
in class
JETASTElement
-
-
See Also:
-
JETASTElement.accept0(JETASTVisitor)
removeLineWhenOtherwiseEmpty
public boolean removeLineWhenOtherwiseEmpty()
-
Description copied from class:
JETASTElement
- Indicate whether the the surrounding whitespace, including the trailing
new line should be removed from the template output. In general, elements
that create output should return
false , while element
that do should should return true .
-
-
Specified by:
-
removeLineWhenOtherwiseEmpty
in class
JETASTElement
-
-
Returns:
-
true if the containing line should be removed if
otherwise empty.
|
|