|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.core.xtend.util.XtendSwitch<java.lang.String> org.eclipse.xtend.core.richstring.InitialTemplateIndentationComputer
public class InitialTemplateIndentationComputer
Computes the initial indentation of a rich string according to the semantics in the Xtend language specification. That is, especially the first and the last line have to be ignored if they only consist whitespace.
Field Summary |
---|
Fields inherited from class org.eclipse.xtend.core.xtend.util.XtendSwitch |
---|
modelPackage |
Constructor Summary | |
---|---|
InitialTemplateIndentationComputer(java.lang.CharSequence initial)
|
Method Summary | |
---|---|
java.lang.String |
caseRichString(RichString object)
Returns the result of interpreting the object as an instance of 'Rich String'. |
protected java.lang.String |
getBetterString(java.lang.String current,
java.lang.String candidate)
|
Methods inherited from class org.eclipse.xtend.core.xtend.util.XtendSwitch |
---|
caseCreateExtensionInfo, caseRichStringElseIf, caseRichStringForLoop, caseRichStringIf, caseRichStringLiteral, caseXBlockExpression, caseXExpression, caseXForLoopExpression, caseXStringLiteral, caseXtendAnnotationTarget, caseXtendClass, caseXtendConstructor, caseXtendField, caseXtendFile, caseXtendFunction, caseXtendImport, caseXtendMember, caseXtendParameter, defaultCase, doSwitch, doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitialTemplateIndentationComputer(java.lang.CharSequence initial)
initial
- the assumed indentation if the first line contains text. May not be null
.Method Detail |
---|
public java.lang.String caseRichString(RichString object)
XtendSwitch
caseRichString
in class XtendSwitch<java.lang.String>
object
- the target of the switch.
doSwitch(EObject)
protected java.lang.String getBetterString(java.lang.String current, java.lang.String candidate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |