|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
org.eclipse.xtext.xtend2.validation.ValidatingRichStringAcceptor
public class ValidatingRichStringAcceptor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
|---|
AbstractRichStringPartAcceptor.ForLoopOnce |
| Constructor Summary | |
|---|---|
ValidatingRichStringAcceptor(ValidationMessageAcceptor acceptor)
|
|
| Method Summary | |
|---|---|
void |
accept(IRichStringPartAcceptor acceptor)
Announce the current indentation to the acceptor. |
void |
acceptSemanticLineBreak(int charCount,
RichStringLiteral origin,
boolean controlStructureSeen)
Indicates a semantic line break in a rich string literal. |
void |
acceptSemanticText(java.lang.CharSequence text,
RichStringLiteral origin)
|
void |
acceptTemplateLineBreak(int charCount,
RichStringLiteral origin)
Indicates a template line break in a rich string literal. |
void |
acceptTemplateText(java.lang.CharSequence text,
RichStringLiteral origin)
|
void |
announceNextLiteral(RichStringLiteral object)
Announces that a next literal will be processed. |
java.lang.CharSequence |
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. |
protected void |
pushIndentation(java.lang.CharSequence completeIndentation)
|
void |
pushSemanticIndentation(java.lang.CharSequence completeIndentation)
Announce semantic indentation. |
void |
pushTemplateIndentation(java.lang.CharSequence completeIndentation)
Announce template indentation. |
protected void |
resetCurrentOffset(RichStringLiteral origin)
|
| Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce |
|---|
acceptEndFor, acceptForLoop, forLoopHasNext |
| Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
|---|
acceptElse, acceptElseIfCondition, acceptEndIf, acceptExpression, acceptIfCondition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatingRichStringAcceptor(ValidationMessageAcceptor acceptor)
| Method Detail |
|---|
public void announceNextLiteral(RichStringLiteral object)
IRichStringPartAcceptor
announceNextLiteral in interface IRichStringPartAcceptorannounceNextLiteral in class AbstractRichStringPartAcceptorobject - the literal.
public void acceptSemanticText(java.lang.CharSequence text,
RichStringLiteral origin)
acceptSemanticText in interface IRichStringPartAcceptoracceptSemanticText in class AbstractRichStringPartAcceptortext - the semantic text. May not be null.origin - the value holder for the full text or null, if unknown.protected void resetCurrentOffset(RichStringLiteral origin)
public void acceptTemplateText(java.lang.CharSequence text,
RichStringLiteral origin)
acceptTemplateText in interface IRichStringPartAcceptoracceptTemplateText in class AbstractRichStringPartAcceptortext - the template text. May not be null.origin - the value holder for the full text or null, if unknown.
public void acceptSemanticLineBreak(int charCount,
RichStringLiteral origin,
boolean controlStructureSeen)
IRichStringPartAcceptor
acceptSemanticLineBreak in interface IRichStringPartAcceptoracceptSemanticLineBreak in class AbstractRichStringPartAcceptorcharCount - the number of characters in the line break.origin - the instance holding the complete text value that contains the line break.
public void acceptTemplateLineBreak(int charCount,
RichStringLiteral origin)
IRichStringPartAcceptor
acceptTemplateLineBreak in interface IRichStringPartAcceptoracceptTemplateLineBreak in class AbstractRichStringPartAcceptorcharCount - the number of characters in the line break.origin - the instance holding the complete text value that contains the line break.public void pushTemplateIndentation(java.lang.CharSequence completeIndentation)
IRichStringIndentationHandler
pushTemplateIndentation in interface IRichStringIndentationHandlercompleteIndentation - the leading whitespace of a line. May not be null.public void pushSemanticIndentation(java.lang.CharSequence completeIndentation)
IRichStringIndentationHandler
pushSemanticIndentation in interface IRichStringIndentationHandlercompleteIndentation - the leading whitespace of a line. May not be null.protected void pushIndentation(java.lang.CharSequence completeIndentation)
public void popIndentation()
IRichStringIndentationHandler
popIndentation in interface IRichStringIndentationHandlerpublic void accept(IRichStringPartAcceptor acceptor)
IRichStringIndentationHandler
accept in interface IRichStringIndentationHandlerpublic java.lang.CharSequence getTotalSemanticIndentation()
IRichStringIndentationHandler
getTotalSemanticIndentation in interface IRichStringIndentationHandlernull.public java.lang.CharSequence getTotalIndentation()
IRichStringIndentationHandler
getTotalIndentation in interface IRichStringIndentationHandlernull.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||