本文整理了Java中org.eclipse.xtext.xbase.XAbstractFeatureCall.getActualArguments()
方法的一些代码示例,展示了XAbstractFeatureCall.getActualArguments()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAbstractFeatureCall.getActualArguments()
方法的具体详情如下:
包路径:org.eclipse.xtext.xbase.XAbstractFeatureCall
类名称:XAbstractFeatureCall
方法名:getActualArguments
[英]Returns the actual arguments of the feature call. The decision will be made according to the linking of the feature. May not be used during linking itself.
References to local variables, fields or parameters will return an empty list. The result is never null
.
[中]返回功能调用的实际参数。将根据功能的链接做出决定。在链接过程中不能使用。
对局部变量、字段或参数的引用将返回空列表。结果永远不会是null
。
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
protected List<XExpression> getActualArguments(XAbstractFeatureCall featureCall) {
return featureCall.getActualArguments();
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
protected List<XExpression> getActualArguments(final XAbstractFeatureCall expr) {
List<XExpression> actualArguments = expr.getActualArguments();
return Lists.transform(actualArguments, new Function<XExpression, XExpression>() {
@Override
public XExpression apply(XExpression e) {
return normalizeBlockExpression(e);
}
});
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
@Override
protected List<XExpression> getActualArguments(XAbstractFeatureCall featureCall) {
EList<XExpression> actualArguments = featureCall.getActualArguments();
List<XExpression> normalizedArguments = normalizeBlockExpression(actualArguments);
return normalizedArguments;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
public String arguments(XAbstractFeatureCall featureCall) {
List<XExpression> arguments = featureCall.getActualArguments();
return "(" + expressionTypes(arguments) + ")";
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
@Override
protected List<XExpression> getArguments() {
return getFeatureCall().getActualArguments();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
private List<XExpression> getActualArguments(XAbstractFeatureCall expr) {
final List<XExpression> actualArguments = expr.getActualArguments();
return Lists.transform(actualArguments, it -> normalizeBlockExpression(it));
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(final XAbstractFeatureCall expression) {
EList<XExpression> _actualArguments = expression.getActualArguments();
for (final XExpression argument : _actualArguments) {
{
Collection<IEarlyExitComputer.ExitPoint> argumentExitPoints = this.getExitPoints(argument);
boolean _isNotEmpty = this.isNotEmpty(argumentExitPoints);
if (_isNotEmpty) {
return argumentExitPoints;
}
}
}
return Collections.<IEarlyExitComputer.ExitPoint>emptyList();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
private static boolean hasLocalParameters(EObject current, XExpression container, List<JvmFormalParameter> containerParameters) {
if (current instanceof XAbstractFeatureCall) {
final XAbstractFeatureCall featureCall = (XAbstractFeatureCall) current;
if (isLocalEntity(featureCall, container, containerParameters)) {
return true;
}
for (final XExpression argument : featureCall.getActualArguments()) {
final Iterable<XAbstractFeatureCall> iterable;
if (argument instanceof XAbstractFeatureCall) {
iterable = Iterables.concat(
Collections.singletonList((XAbstractFeatureCall) argument),
EcoreUtil2.getAllContentsOfType(argument, XAbstractFeatureCall.class));
} else {
iterable = EcoreUtil2.getAllContentsOfType(argument, XAbstractFeatureCall.class);
}
for (final XAbstractFeatureCall c : iterable) {
if (isLocalEntity(c, container, containerParameters)) {
return true;
}
}
}
}
return false;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
protected Object evaluateGetAndAssign(XAbstractFeatureCall featureCall, IEvaluationContext context, CancelIndicator indicator) {
XAbstractFeatureCall operand = (XAbstractFeatureCall) featureCall.getActualArguments().get(0);
Object originalValue = internalEvaluate(operand, context, indicator);
Object value = applyGetAndAssignOperator(originalValue, featureCall.getConcreteSyntaxFeatureName());
assignValueTo(operand.getFeature(), featureCall, value, context, indicator);
return originalValue;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
private boolean isPotentialJavaOperation(XAbstractFeatureCall featureCall) {
if (featureCall.isOperation()) {
return true;
}
if (featureCall.eClass() == XbasePackage.Literals.XMEMBER_FEATURE_CALL && featureCall.isStatic() && featureCall.isExtension() && featureCall.getActualArguments().size() == 2) {
JvmIdentifiableElement feature = featureCall.getFeature();
if (feature.eClass() == TypesPackage.Literals.JVM_OPERATION) {
JvmDeclaredType declarator = ((JvmOperation) feature).getDeclaringType();
if (IntegerExtensions.class.getName().equals(declarator.getIdentifier()) || LongExtensions.class.getName().equals(declarator.getIdentifier())) {
String simpleName = feature.getSimpleName();
if (simpleName.startsWith("bitwise") || simpleName.startsWith("shift")) {
return true;
}
}
}
}
return false;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
} else {
if(inspectContents) {
for (XExpression param : featureCall.getActualArguments()) {
if (hasSideEffects(param))
return true;
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
return false;
for (XExpression arg : featureCall.getActualArguments()) {
if (!this.internalCanCompileToJavaExpression(arg, appendable)) {
return false;
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
return (receiverConstant && IterableExtensions.<XExpression>forall(expression.getActualArguments(), ((Function1<XExpression, Boolean>) (XExpression it) -> {
return Boolean.valueOf(this.isConstant(it));
})));
代码示例来源:origin: io.sarl.lang/io.sarl.lang
final XAbstractFeatureCall call = (XAbstractFeatureCall) container.get();
if (call.getFeature() instanceof JvmOperation) {
arguments = call.getActualArguments();
final JvmOperation operation = (JvmOperation) call.getFeature();
parameters = getParamTypeReferences(operation, false, true);
代码示例来源:origin: io.sarl.lang/io.sarl.lang
for (final XExpression ex : expression.getActualArguments()) {
final Boolean bool = hasSideEffects(ex, context);
if (bool != null && bool.booleanValue()) {
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase
if (inlineAnnotation == null)
return true;
for (XExpression argument : featureCall.getActualArguments()) {
if (isVariableDeclarationRequired(argument, b, recursive)) {
return true;
内容来源于网络,如有侵权,请联系作者删除!