org.eclipse.xtext.xbase.XMemberFeatureCall.isStaticWithDeclaringType()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中org.eclipse.xtext.xbase.XMemberFeatureCall.isStaticWithDeclaringType()方法的一些代码示例,展示了XMemberFeatureCall.isStaticWithDeclaringType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMemberFeatureCall.isStaticWithDeclaringType()方法的具体详情如下:
包路径:org.eclipse.xtext.xbase.XMemberFeatureCall
类名称:XMemberFeatureCall
方法名:isStaticWithDeclaringType

XMemberFeatureCall.isStaticWithDeclaringType介绍

[英]Returns the value of the 'Static With Declaring Type' attribute.

If the meaning of the 'Static With Declaring Type' attribute isn't clear, there really should be more of a description here...
[中]

代码示例

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected boolean isStaticWithDeclaringType() {
  XAbstractFeatureCall featureCall = getFeatureCall();
  if (featureCall instanceof XMemberFeatureCall) {
    return ((XMemberFeatureCall) featureCall).isStaticWithDeclaringType();
  }
  if (featureCall instanceof XAssignment) {
    return isStaticWithDeclaringType((XAssignment) featureCall);
  }
  return false;
}

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase

@Override
protected ITextRegion getLocationOfContainmentReference(EObject owner, EReference reference, int indexInList, RegionDescription query) {
  if (owner instanceof XMemberFeatureCall && reference == XbasePackage.Literals.XMEMBER_FEATURE_CALL__MEMBER_CALL_TARGET) {
    XMemberFeatureCall casted = (XMemberFeatureCall) owner;
    if (casted.isExplicitStatic() || casted.isStaticWithDeclaringType()) {
      XExpression target = ((XMemberFeatureCall) owner).getMemberCallTarget();
      return getTextRegion(target, query);
    }
  }
  return super.getLocationOfContainmentReference(owner, reference, indexInList, query);
}

代码示例来源:origin: io.sarl.lang/io.sarl.lang

if (call instanceof XMemberFeatureCall) {
  final XMemberFeatureCall memberFeatureCall = (XMemberFeatureCall) call;
  if (memberFeatureCall.isStaticWithDeclaringType()) {
    final XAbstractFeatureCall target = (XAbstractFeatureCall) memberFeatureCall.getMemberCallTarget();
    final JvmType declaringType = (JvmType) target.getFeature();

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase

if (memberFeatureCall.isStaticWithDeclaringType()) {
  XAbstractFeatureCall target = (XAbstractFeatureCall) memberFeatureCall.getMemberCallTarget();
  JvmType declaringType = (JvmType) target.getFeature();

代码示例来源:origin: org.eclipse.xtend/org.eclipse.xtend.core

if (sourceCandidate instanceof XMemberFeatureCall) {
 _matched_1=true;
 if ((((XMemberFeatureCall)sourceCandidate).isStatic() && (!((XMemberFeatureCall)sourceCandidate).isStaticWithDeclaringType()))) {
  this.addReferenceToTypeFromStaticImport(((XAbstractFeatureCall)sourceCandidate), targetURIs, acceptor);

相关文章