|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xtend2.richstring.DefaultIndentationHandler
public class DefaultIndentationHandler
Default indentation handler for rich strings. Tries to be graceful with inconsistent indentation.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultIndentationHandler.IndentationData
|
protected static class |
DefaultIndentationHandler.SemanticIndentationData
|
protected static class |
DefaultIndentationHandler.TemplateIndentationData
|
| Constructor Summary | |
|---|---|
DefaultIndentationHandler()
|
|
| Method Summary | |
|---|---|
void |
accept(IRichStringPartAcceptor acceptor)
Announce the current indentation to the acceptor. |
java.lang.String |
getTotalIndentation()
Return the current indentation. |
java.lang.CharSequence |
getTotalSemanticIndentation()
Return the current semantic indentation. |
void |
popIndentation()
Drop the recently announced indentation and use the previous state. |
void |
pushSemanticIndentation(java.lang.CharSequence indentation)
Announce semantic indentation. |
void |
pushTemplateIndentation(java.lang.CharSequence indentation)
Announce template indentation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIndentationHandler()
| Method Detail |
|---|
public void popIndentation()
IRichStringIndentationHandler
popIndentation in interface IRichStringIndentationHandlerpublic void pushTemplateIndentation(java.lang.CharSequence indentation)
IRichStringIndentationHandler
pushTemplateIndentation in interface IRichStringIndentationHandlerindentation - the leading whitespace of a line. May not be null.public void pushSemanticIndentation(java.lang.CharSequence indentation)
IRichStringIndentationHandler
pushSemanticIndentation in interface IRichStringIndentationHandlerindentation - the leading whitespace of a line. May not be null.public java.lang.CharSequence getTotalSemanticIndentation()
IRichStringIndentationHandler
getTotalSemanticIndentation in interface IRichStringIndentationHandlernull.public java.lang.String getTotalIndentation()
IRichStringIndentationHandler
getTotalIndentation in interface IRichStringIndentationHandlernull.public void accept(IRichStringPartAcceptor acceptor)
IRichStringIndentationHandler
accept in interface IRichStringIndentationHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||