本文整理了Java中org.eclipse.xtext.xbase.XMemberFeatureCall.isStaticWithDeclaringType()
方法的一些代码示例,展示了XMemberFeatureCall.isStaticWithDeclaringType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMemberFeatureCall.isStaticWithDeclaringType()
方法的具体详情如下:
包路径:org.eclipse.xtext.xbase.XMemberFeatureCall
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!