Search in sources :

Example 41 with ToStringBuilder

use of org.eclipse.xtext.xbase.lib.util.ToStringBuilder in project xtext-core by eclipse.

the class RuleWithParameterValues method toString.

@Override
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("original", original);
    b.add("paramValues", paramValues);
    return b.toString();
}
Also used : ToStringBuilder(org.eclipse.xtext.xbase.lib.util.ToStringBuilder)

Example 42 with ToStringBuilder

use of org.eclipse.xtext.xbase.lib.util.ToStringBuilder in project xtext-xtend by eclipse.

the class Node method toString.

@Override
@Pure
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("contents", this.contents);
    return b.toString();
}
Also used : ToStringBuilder(org.eclipse.xtext.xbase.lib.util.ToStringBuilder) Pure(org.eclipse.xtext.xbase.lib.Pure)

Example 43 with ToStringBuilder

use of org.eclipse.xtext.xbase.lib.util.ToStringBuilder in project xtext-xtend by eclipse.

the class Speed method toString.

@Override
@Pure
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("mmPerMsec", this.mmPerMsec);
    return b.toString();
}
Also used : ToStringBuilder(org.eclipse.xtext.xbase.lib.util.ToStringBuilder) Pure(org.eclipse.xtext.xbase.lib.Pure)

Example 44 with ToStringBuilder

use of org.eclipse.xtext.xbase.lib.util.ToStringBuilder in project xtext-xtend by eclipse.

the class Distance method toString.

@Override
@Pure
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("mm", this.mm);
    return b.toString();
}
Also used : ToStringBuilder(org.eclipse.xtext.xbase.lib.util.ToStringBuilder) Pure(org.eclipse.xtext.xbase.lib.Pure)

Example 45 with ToStringBuilder

use of org.eclipse.xtext.xbase.lib.util.ToStringBuilder in project xtext-xtend by eclipse.

the class Case_0 method toString.

@Override
@Pure
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("id", this.id);
    return b.toString();
}
Also used : ToStringBuilder(org.eclipse.xtext.xbase.lib.util.ToStringBuilder) Pure(org.eclipse.xtext.xbase.lib.Pure)

Aggregations

ToStringBuilder (org.eclipse.xtext.xbase.lib.util.ToStringBuilder)51 Pure (org.eclipse.xtext.xbase.lib.Pure)15 Test (org.junit.Test)11 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)7 ToString (org.eclipse.xtend.lib.annotations.ToString)1