本文整理汇总了Java中org.eclipse.xtext.xbase.XExpression.toString方法的典型用法代码示例。如果您正苦于以下问题:Java XExpression.toString方法的具体用法?Java XExpression.toString怎么用?Java XExpression.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.xbase.XExpression
的用法示例。
在下文中一共展示了XExpression.toString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: assertExpressionTypeIsResolved
import org.eclipse.xtext.xbase.XExpression; //导入方法依赖的package包/类
public void assertExpressionTypeIsResolved(final XExpression expression, final IResolvedTypes types) {
final LightweightTypeReference type = types.getActualType(expression);
String _string = expression.toString();
String _plus = ("Type is not resolved. Expression: " + _string);
Assert.assertNotNull(_plus, type);
String _string_1 = expression.toString();
String _plus_1 = (_string_1 + " / ");
String _plus_2 = (_plus_1 + type);
Assert.assertNotNull(_plus_2, type.getIdentifier());
final LightweightTypeReference expectedType = types.getExpectedType(expression);
Assert.assertNotNull(expression.toString(), String.valueOf(expectedType));
}
示例2: assertExpressionTypeIsResolved
import org.eclipse.xtext.xbase.XExpression; //导入方法依赖的package包/类
public void assertExpressionTypeIsResolved(final XExpression expression, final IResolvedTypes types) {
final LightweightTypeReference type = types.getActualType(expression);
String _string = expression.toString();
String _plus = ("Type is not resolved. Expression: " + _string);
Assert.assertNotNull(_plus, type);
String _string_1 = expression.toString();
String _plus_1 = (_string_1 + " / ");
String _plus_2 = (_plus_1 + type);
Assert.assertNotNull(_plus_2, type.getIdentifier());
}
示例3: assertExpressionTypeIsResolved
import org.eclipse.xtext.xbase.XExpression; //导入方法依赖的package包/类
public void assertExpressionTypeIsResolved(final XExpression expression, final IResolvedTypes types) {
final LightweightTypeReference type = types.getActualType(expression);
Assert.assertNotNull(expression.toString(), type);
String _string = expression.toString();
String _plus = (_string + " / ");
String _plus_1 = (_plus + type);
Assert.assertNotNull(_plus_1, type.getIdentifier());
}