Java Code Examples for org.eclipse.xtext.xbase.lib.StringExtensions#toFirstUpper()
The following examples show how to use
org.eclipse.xtext.xbase.lib.StringExtensions#toFirstUpper() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AccessorsProcessor.java From xtext-lib with Eclipse Public License 2.0 | 6 votes |
public List<String> getPossibleGetterNames(final FieldDeclaration it) { final ArrayList<String> names = CollectionLiterals.<String>newArrayList(); if ((((this.isBooleanType(this.orObject(it.getType())) && it.getSimpleName().startsWith("is")) && (it.getSimpleName().length() > 2)) && Character.isUpperCase(it.getSimpleName().charAt(2)))) { String _simpleName = it.getSimpleName(); names.add(_simpleName); } List<String> _xifexpression = null; boolean _isBooleanType = this.isBooleanType(this.orObject(it.getType())); if (_isBooleanType) { _xifexpression = Collections.<String>unmodifiableList(CollectionLiterals.<String>newArrayList("is", "get")); } else { _xifexpression = Collections.<String>unmodifiableList(CollectionLiterals.<String>newArrayList("get")); } final Function1<String, String> _function = (String prefix) -> { String _firstUpper = StringExtensions.toFirstUpper(it.getSimpleName()); return (prefix + _firstUpper); }; names.addAll(ListExtensions.<String, String>map(_xifexpression, _function)); return names; }
Example 2
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 6 votes |
protected Result<Boolean> applyRuleEClassEClass(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass1, final EClass eClass2) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); eC.setName("MyEClass"); /* eClass1 == eC */ if (!Objects.equal(eClass1, eC)) { sneakyThrowRuleFailedException("eClass1 == eC"); } return new Result<Boolean>(true); }
Example 3
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 6 votes |
protected Result<Boolean> applyRuleEClassEClass(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass1, final EClass eClass2) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); eC.setName("MyEClass"); /* eClass1 == eC */ if (!Objects.equal(eClass1, eC)) { sneakyThrowRuleFailedException("eClass1 == eC"); } return new Result<Boolean>(true); }
Example 4
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 6 votes |
protected Result<Boolean> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass, final EObject object) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); eC.setName("MyEClass"); /* eClass == eC */ if (!Objects.equal(eClass, eC)) { sneakyThrowRuleFailedException("eClass == eC"); } return new Result<Boolean>(true); }
Example 5
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 6 votes |
protected Result<Boolean> applyRuleEClassEClass(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass1, final EClass eClass2) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); eC.setName("MyEClass"); /* eClass1 == eC */ if (!Objects.equal(eClass1, eC)) { sneakyThrowRuleFailedException("eClass1 == eC"); } return new Result<Boolean>(true); }
Example 6
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 6 votes |
protected Result<Boolean> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass, final EObject object) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); eC.setName("MyEClass"); /* eClass == eC */ if (!Objects.equal(eClass, eC)) { sneakyThrowRuleFailedException("eClass == eC"); } return new Result<Boolean>(true); }
Example 7
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 5 votes |
protected Result2<EClass, EObject> applyRuleEClassEObject2(final RuleEnvironment G, final RuleApplicationTrace _trace_, final String s) throws RuleFailedException { EClass _createEObject = null; // output parameter String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!Objects.equal("foo", _plus)) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } return new Result2<EClass, EObject>(_createEObject, _applyRuleEClassEObject2_2(G, s)); }
Example 8
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 5 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass _createEObject) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!Objects.equal("foo", _plus)) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } return new Result<EObject>(_applyRuleEClassEObject_1(G, _createEObject)); }
Example 9
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 5 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass _createEObject) throws RuleFailedException { String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!Objects.equal("foo", _plus)) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } return new Result<EObject>(_applyRuleEClassEObject_1(G, _createEObject)); }
Example 10
Source File: GrammarAccessExtensions.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
private String toJavaIdentifierSegment(final String text, final boolean isFirst, final boolean uppercaseFirst) { final String special = GrammarAccessExtensions.SPECIAL_CHARS.get(text); if ((special != null)) { String _xifexpression = null; if (uppercaseFirst) { _xifexpression = StringExtensions.toFirstUpper(special); } else { _xifexpression = special; } return _xifexpression; } final String r = this.toJavaIdentifierSegmentInt(text, isFirst, uppercaseFirst); int _length = r.length(); boolean _greaterThan = (_length > 0); if (_greaterThan) { return r; } final StringBuilder builder = new StringBuilder(); char[] _charArray = text.toCharArray(); for (final char c : _charArray) { { final String n = this.getUnicodeName(c); if ((n != null)) { builder.append((n + " ")); } } } return this.toJavaIdentifierSegmentInt(builder.toString().toLowerCase().trim(), isFirst, true); }
Example 11
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 4 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass) throws RuleFailedException { EObject object = null; // output parameter /* 'foo' == new String() || 'bar' == new String() */ if (!(Objects.equal("foo", new String()) || Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() || \'bar\' == new String()"); } /* 'foo' == new String() && 'bar' == new String() */ if (!(Objects.equal("foo", new String()) && Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() && \'bar\' == new String()"); } String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } String _string_1 = new String(); String _firstUpper_1 = StringExtensions.toFirstUpper("bar"); String _plus_1 = (_string_1 + _firstUpper_1); boolean _notEquals = (!Objects.equal("foo", _plus_1)); /* 'foo' != new String() + 'bar'.toFirstUpper */ if (!_notEquals) { sneakyThrowRuleFailedException("\'foo\' != new String() + \'bar\'.toFirstUpper"); } String _string_2 = new String(); String _firstUpper_2 = StringExtensions.toFirstUpper("bar"); final String temp = (_string_2 + _firstUpper_2); boolean _contains = "foo".contains("f"); /* 'foo'.contains('f') */ if (!_contains) { sneakyThrowRuleFailedException("\'foo\'.contains(\'f\')"); } "foo".concat("f"); boolean _contains_1 = "foo".contains("f"); boolean _not = (!_contains_1); /* !('foo'.contains('f')) */ if (!_not) { sneakyThrowRuleFailedException("!(\'foo\'.contains(\'f\'))"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); Boolean b = Boolean.valueOf(false); return new Result<EObject>(object); }
Example 12
Source File: TestLanguageGenerator.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@Override public void doGenerate(final Resource resource, final IFileSystemAccess2 fsa, final IGeneratorContext context) { String _scheme = fsa.getURI("").scheme(); boolean _equals = Objects.equal(_scheme, "inmemory"); if (_equals) { return; } List<TypeDeclaration> _list = IteratorExtensions.<TypeDeclaration>toList(Iterators.<TypeDeclaration>filter(resource.getAllContents(), TypeDeclaration.class)); for (final TypeDeclaration type : _list) { String _name = type.getName(); String _plus = (_name + ".java"); StringConcatenation _builder = new StringConcatenation(); _builder.append("public class "); String _name_1 = type.getName(); _builder.append(_name_1); _builder.append(" {"); _builder.newLineIfNotEmpty(); { Iterable<Property> _filter = Iterables.<Property>filter(type.getMembers(), Property.class); for(final Property p : _filter) { _builder.append("\t"); _builder.append("private "); String _java = this.toJava(p.getType()); _builder.append(_java, "\t"); _builder.append(" "); String _name_2 = p.getName(); _builder.append(_name_2, "\t"); _builder.append(";"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.newLine(); _builder.append("\t"); _builder.append("public void set"); String _firstUpper = StringExtensions.toFirstUpper(p.getName()); _builder.append(_firstUpper, "\t"); _builder.append("("); String _java_1 = this.toJava(p.getType()); _builder.append(_java_1, "\t"); _builder.append(" "); String _name_3 = p.getName(); _builder.append(_name_3, "\t"); _builder.append(") {"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("\t"); _builder.append("this."); String _name_4 = p.getName(); _builder.append(_name_4, "\t\t"); _builder.append(" = "); String _name_5 = p.getName(); _builder.append(_name_5, "\t\t"); _builder.append(";"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("}"); _builder.newLine(); _builder.append("\t"); _builder.newLine(); _builder.append("\t"); _builder.append("public "); String _java_2 = this.toJava(p.getType()); _builder.append(_java_2, "\t"); _builder.append(" get"); String _firstUpper_1 = StringExtensions.toFirstUpper(p.getName()); _builder.append(_firstUpper_1, "\t"); _builder.append("() {"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("\t"); _builder.append("return this."); String _name_6 = p.getName(); _builder.append(_name_6, "\t\t"); _builder.append(";"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("}"); _builder.newLine(); } } _builder.append("}"); _builder.newLine(); fsa.generateFile(_plus, _builder); } }
Example 13
Source File: JavaASTFlattener.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public boolean visit(final ArrayCreation node) { ArrayType at = node.getType(); int dims = at.getDimensions(); if ((dims > 1)) { StringConcatenation _builder = new StringConcatenation(); _builder.append("/* FIXME Only one dimensional arrays are supported. "); _builder.append(node); _builder.append("*/"); this.appendToBuffer(_builder.toString()); this.addProblem(node, "Only one dimension arrays are supported."); return false; } ArrayInitializer _initializer = node.getInitializer(); boolean _tripleNotEquals = (_initializer != null); if (_tripleNotEquals) { if (this.fallBackStrategy) { this.appendToBuffer("("); } node.getInitializer().accept(this); if (this.fallBackStrategy) { this.appendToBuffer(" as "); at.accept(this); this.appendToBuffer(")"); } } else { StringConcatenation _builder_1 = new StringConcatenation(); _builder_1.append("new"); String _xifexpression = null; boolean _isPrimitiveType = node.getType().getElementType().isPrimitiveType(); if (_isPrimitiveType) { Type _elementType = node.getType().getElementType(); _xifexpression = StringExtensions.toFirstUpper(((PrimitiveType) _elementType).getPrimitiveTypeCode().toString()); } _builder_1.append(_xifexpression); _builder_1.append("ArrayOfSize("); this.appendToBuffer(_builder_1.toString()); List _dimensions = node.dimensions(); (((Expression[])Conversions.unwrapArray(((Iterable<Expression>) _dimensions), Expression.class))[0]).accept(this); this.appendToBuffer(")"); } return false; }
Example 14
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 4 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass) throws RuleFailedException { EObject object = null; // output parameter /* 'foo' == new String() || 'bar' == new String() */ if (!(Objects.equal("foo", new String()) || Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() || \'bar\' == new String()"); } /* 'foo' == new String() && 'bar' == new String() */ if (!(Objects.equal("foo", new String()) && Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() && \'bar\' == new String()"); } String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } String _string_1 = new String(); String _firstUpper_1 = StringExtensions.toFirstUpper("bar"); String _plus_1 = (_string_1 + _firstUpper_1); boolean _notEquals = (!Objects.equal("foo", _plus_1)); /* 'foo' != new String() + 'bar'.toFirstUpper */ if (!_notEquals) { sneakyThrowRuleFailedException("\'foo\' != new String() + \'bar\'.toFirstUpper"); } String _string_2 = new String(); String _firstUpper_2 = StringExtensions.toFirstUpper("bar"); final String temp = (_string_2 + _firstUpper_2); boolean _contains = "foo".contains("f"); /* 'foo'.contains('f') */ if (!_contains) { sneakyThrowRuleFailedException("\'foo\'.contains(\'f\')"); } "foo".concat("f"); boolean _contains_1 = "foo".contains("f"); boolean _not = (!_contains_1); /* !('foo'.contains('f')) */ if (!_not) { sneakyThrowRuleFailedException("!(\'foo\'.contains(\'f\'))"); } final EClass eC = EcoreFactory.eINSTANCE.createEClass(); Boolean b = Boolean.valueOf(false); return new Result<EObject>(object); }
Example 15
Source File: LanguageDescriptor.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public String getSimpleName() { String[] segments = name.split("\\."); return StringExtensions.toFirstUpper(segments[segments.length - 1]); }
Example 16
Source File: StatemachineGenerator.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected String className(final Resource res) { String name = res.getURI().lastSegment(); return StringExtensions.toFirstUpper(name.substring(0, name.indexOf("."))); }
Example 17
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 4 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass) throws RuleFailedException { EObject object = null; // output parameter /* 'foo' == new String() || 'bar' == new String() */ if (!(Objects.equal("foo", new String()) || Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() || \'bar\' == new String()"); } /* 'foo' == new String() && 'bar' == new String() */ if (!(Objects.equal("foo", new String()) && Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() && \'bar\' == new String()"); } String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } String _string_1 = new String(); String _firstUpper_1 = StringExtensions.toFirstUpper("bar"); String _plus_1 = (_string_1 + _firstUpper_1); boolean _notEquals = (!Objects.equal("foo", _plus_1)); /* 'foo' != new String() + 'bar'.toFirstUpper */ if (!_notEquals) { sneakyThrowRuleFailedException("\'foo\' != new String() + \'bar\'.toFirstUpper"); } String _string_2 = new String(); String _firstUpper_2 = StringExtensions.toFirstUpper("bar"); final String temp = (_string_2 + _firstUpper_2); boolean _contains = "foo".contains("f"); /* 'foo'.contains('f') */ if (!_contains) { sneakyThrowRuleFailedException("\'foo\'.contains(\'f\')"); } "foo".concat("f"); boolean _contains_1 = "foo".contains("f"); /* !('foo'.contains('f')) */ if (!(!_contains_1)) { sneakyThrowRuleFailedException("!(\'foo\'.contains(\'f\'))"); } return new Result<EObject>(object); }
Example 18
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 4 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass) throws RuleFailedException { EObject object = null; // output parameter /* 'foo' == new String() || 'bar' == new String() */ if (!(Objects.equal("foo", new String()) || Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() || \'bar\' == new String()"); } /* 'foo' == new String() && 'bar' == new String() */ if (!(Objects.equal("foo", new String()) && Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() && \'bar\' == new String()"); } String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } String _string_1 = new String(); String _firstUpper_1 = StringExtensions.toFirstUpper("bar"); String _plus_1 = (_string_1 + _firstUpper_1); boolean _notEquals = (!Objects.equal("foo", _plus_1)); /* 'foo' != new String() + 'bar'.toFirstUpper */ if (!_notEquals) { sneakyThrowRuleFailedException("\'foo\' != new String() + \'bar\'.toFirstUpper"); } String _string_2 = new String(); String _firstUpper_2 = StringExtensions.toFirstUpper("bar"); final String temp = (_string_2 + _firstUpper_2); boolean _contains = "foo".contains("f"); /* 'foo'.contains('f') */ if (!_contains) { sneakyThrowRuleFailedException("\'foo\'.contains(\'f\')"); } "foo".concat("f"); boolean _contains_1 = "foo".contains("f"); /* !('foo'.contains('f')) */ if (!(!_contains_1)) { sneakyThrowRuleFailedException("!(\'foo\'.contains(\'f\'))"); } return new Result<EObject>(object); }
Example 19
Source File: ContentAssistFragmentExtensions.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
public static String getFqFeatureName(Assignment it) { return StringExtensions.toFirstUpper(GrammarUtil.containingParserRule(it).getName()) + "_" + StringExtensions.toFirstUpper(it.getFeature()); }
Example 20
Source File: TypeSystem.java From xsemantics with Eclipse Public License 1.0 | 4 votes |
protected Result<EObject> applyRuleEClassEObject(final RuleEnvironment G, final RuleApplicationTrace _trace_, final EClass eClass) throws RuleFailedException { EObject object = null; // output parameter /* 'foo' == new String() || 'bar' == new String() */ if (!(Objects.equal("foo", new String()) || Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() || \'bar\' == new String()"); } /* 'foo' == new String() && 'bar' == new String() */ if (!(Objects.equal("foo", new String()) && Objects.equal("bar", new String()))) { sneakyThrowRuleFailedException("\'foo\' == new String() && \'bar\' == new String()"); } String _string = new String(); String _firstUpper = StringExtensions.toFirstUpper("bar"); String _plus = (_string + _firstUpper); boolean _equals = Objects.equal("foo", _plus); /* 'foo' == new String() + 'bar'.toFirstUpper */ if (!_equals) { sneakyThrowRuleFailedException("\'foo\' == new String() + \'bar\'.toFirstUpper"); } String _string_1 = new String(); String _firstUpper_1 = StringExtensions.toFirstUpper("bar"); String _plus_1 = (_string_1 + _firstUpper_1); boolean _notEquals = (!Objects.equal("foo", _plus_1)); /* 'foo' != new String() + 'bar'.toFirstUpper */ if (!_notEquals) { sneakyThrowRuleFailedException("\'foo\' != new String() + \'bar\'.toFirstUpper"); } String _string_2 = new String(); String _firstUpper_2 = StringExtensions.toFirstUpper("bar"); final String temp = (_string_2 + _firstUpper_2); boolean _contains = "foo".contains("f"); /* 'foo'.contains('f') */ if (!_contains) { sneakyThrowRuleFailedException("\'foo\'.contains(\'f\')"); } "foo".concat("f"); boolean _contains_1 = "foo".contains("f"); /* !('foo'.contains('f')) */ if (!(!_contains_1)) { sneakyThrowRuleFailedException("!(\'foo\'.contains(\'f\'))"); } return new Result<EObject>(object); }