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

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

本文整理了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

  1. protected boolean isStaticWithDeclaringType() {
  2. XAbstractFeatureCall featureCall = getFeatureCall();
  3. if (featureCall instanceof XMemberFeatureCall) {
  4. return ((XMemberFeatureCall) featureCall).isStaticWithDeclaringType();
  5. }
  6. if (featureCall instanceof XAssignment) {
  7. return isStaticWithDeclaringType((XAssignment) featureCall);
  8. }
  9. return false;
  10. }

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

  1. @Override
  2. protected ITextRegion getLocationOfContainmentReference(EObject owner, EReference reference, int indexInList, RegionDescription query) {
  3. if (owner instanceof XMemberFeatureCall && reference == XbasePackage.Literals.XMEMBER_FEATURE_CALL__MEMBER_CALL_TARGET) {
  4. XMemberFeatureCall casted = (XMemberFeatureCall) owner;
  5. if (casted.isExplicitStatic() || casted.isStaticWithDeclaringType()) {
  6. XExpression target = ((XMemberFeatureCall) owner).getMemberCallTarget();
  7. return getTextRegion(target, query);
  8. }
  9. }
  10. return super.getLocationOfContainmentReference(owner, reference, indexInList, query);
  11. }

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

  1. if (call instanceof XMemberFeatureCall) {
  2. final XMemberFeatureCall memberFeatureCall = (XMemberFeatureCall) call;
  3. if (memberFeatureCall.isStaticWithDeclaringType()) {
  4. final XAbstractFeatureCall target = (XAbstractFeatureCall) memberFeatureCall.getMemberCallTarget();
  5. final JvmType declaringType = (JvmType) target.getFeature();

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

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

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

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

相关文章