|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IRichStringPartAcceptor
announceNextLiteral
in class AbstractRichStringPartAcceptor
object
- the literal.public void acceptSemanticText(java.lang.CharSequence text, RichStringLiteral origin)
acceptSemanticText
in interface IRichStringPartAcceptor
acceptSemanticText
in class AbstractRichStringPartAcceptor
text
- 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 IRichStringPartAcceptor
acceptTemplateText
in class AbstractRichStringPartAcceptor
text
- 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 IRichStringPartAcceptor
acceptSemanticLineBreak
in class AbstractRichStringPartAcceptor
charCount
- 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 IRichStringPartAcceptor
acceptTemplateLineBreak
in class AbstractRichStringPartAcceptor
charCount
- 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 IRichStringIndentationHandler
completeIndentation
- the leading whitespace of a line. May not be null
.public void pushSemanticIndentation(java.lang.CharSequence completeIndentation)
IRichStringIndentationHandler
pushSemanticIndentation
in interface IRichStringIndentationHandler
completeIndentation
- the leading whitespace of a line. May not be null
.protected void pushIndentation(java.lang.CharSequence completeIndentation)
public void popIndentation()
IRichStringIndentationHandler
popIndentation
in interface IRichStringIndentationHandler
public void accept(IRichStringPartAcceptor acceptor)
IRichStringIndentationHandler
accept
in interface IRichStringIndentationHandler
public java.lang.CharSequence getTotalSemanticIndentation()
IRichStringIndentationHandler
getTotalSemanticIndentation
in interface IRichStringIndentationHandler
null
.public java.lang.CharSequence getTotalIndentation()
IRichStringIndentationHandler
getTotalIndentation
in interface IRichStringIndentationHandler
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |