• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java XmlElementsGroup类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.xml.XmlElementsGroup的典型用法代码示例。如果您正苦于以下问题:Java XmlElementsGroup类的具体用法?Java XmlElementsGroup怎么用?Java XmlElementsGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XmlElementsGroup类属于com.intellij.xml包,在下文中一共展示了XmlElementsGroup类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getPossibleElements

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private void getPossibleElements(List<XmlElementDescriptor> elements) {
  switch (myGroup.getGroupType()) {
    case SEQUENCE:
      getLastChild();
      while (myLastChild != null) {
        myLastChild.getPossibleElements(elements);
        if (myLastChild.myGroup.getMinOccurs() == 0) {
          myLastChild = getNextSubGroup();
        }
        else return;
      }
      break;
    case CHOICE:
    case ALL:
    case GROUP:
      for (XmlElementsGroup group : myGroup.getSubGroups()) {
        new XmlContentDFAImpl(group).getPossibleElements(elements);
      }
      break;
    case LEAF:
      ContainerUtil.addIfNotNull(elements, myGroup.getLeafDescriptor());
      break;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:XmlContentDFAImpl.java


示例2: XmlElementsGroupProcessor

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private XmlElementsGroupProcessor(XmlNSDescriptorImpl nsDescriptor)
{
	super(nsDescriptor, "attribute");
	myGroups.push(new XmlElementsGroupImpl(null, null, null)
	{
		@Override
		public XmlElementsGroup.Type getGroupType()
		{
			return XmlElementsGroup.Type.GROUP;
		}

		@Override
		public String toString()
		{
			return "root";
		}
	});
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:19,代码来源:XmlElementsGroupProcessor.java


示例3: compute

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@NotNull
@Override
protected List<XmlElementsGroup> compute() {
  return ContainerUtil.map(myParticle.getSubParticles(), new Function<XmlContentParticle, XmlElementsGroup>() {
    @Override
    public XmlElementsGroup fun(XmlContentParticle xmlContentParticle) {
      return new  XmlElementsGroupImpl(xmlContentParticle, XmlElementsGroupImpl.this);
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:XmlElementsGroupImpl.java


示例4: XmlElementsGroupProcessor

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private XmlElementsGroupProcessor(XmlNSDescriptorImpl nsDescriptor) {
  super(nsDescriptor, "attribute");
  myGroups.push(new XmlElementsGroupImpl(null, null, null) {
    @Override
    public XmlElementsGroup.Type getGroupType() {
      return XmlElementsGroup.Type.GROUP;
    }

    @Override
    public String toString() {
      return "root";
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:XmlElementsGroupProcessor.java


示例5: addSubGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private void addSubGroup(XmlElementsGroup group) {
  if (!myGroups.empty()) {
    XmlElementsGroup last = myGroups.peek();
    if (last instanceof XmlElementsGroupImpl) {
      ((XmlElementsGroupImpl)last).addSubGroup(group);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:XmlElementsGroupProcessor.java


示例6: createContentDFA

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Nullable
public static XmlContentDFA createContentDFA(XmlTag parentTag) {
  XmlElementDescriptor descriptor = parentTag.getDescriptor();
  if (descriptor == null) {
    return null;
  }
  XmlElementsGroup topGroup = descriptor.getTopGroup();
  if (topGroup == null) {
    return null;
  }
  return new XmlContentDFAImpl(topGroup);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:XmlContentDFAImpl.java


示例7: doTransition

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private Result doTransition(@NotNull XmlElementDescriptor element) {
  if (myGroup.getGroupType() == XmlElementsGroup.Type.LEAF) {
    if (element.equals(myGroup.getLeafDescriptor())) {
      return consume();
    }
    else return Result.NONE;
  }
  return processSubGroups(element);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:XmlContentDFAImpl.java


示例8: getLastChild

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private void getLastChild() {
  if (myLastChild == null) {
    List<XmlElementsGroup> subGroups = myGroup.getSubGroups();
    if (!subGroups.isEmpty()) {
      myLastChild = new XmlContentDFAImpl(subGroups.get(0));
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:XmlContentDFAImpl.java


示例9: addSubGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private void addSubGroup(XmlElementsGroup group)
{
	if(!myGroups.empty())
	{
		XmlElementsGroup last = myGroups.peek();
		if(last instanceof XmlElementsGroupImpl)
		{
			((XmlElementsGroupImpl) last).addSubGroup(group);
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:12,代码来源:XmlElementsGroupProcessor.java


示例10: getTopGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Nullable
@Override
public XmlElementsGroup getTopGroup() {
    return null;
}
 
开发者ID:misakuo,项目名称:weex-language-support,代码行数:6,代码来源:WeexTagDescriptor.java


示例11: getTopGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Nullable
@Override
public XmlElementsGroup getTopGroup() {
  return null;
}
 
开发者ID:catberry,项目名称:catberry-idea-plugin,代码行数:6,代码来源:CatberryComponentTagDescriptor.java


示例12: getTopGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Override
public XmlElementsGroup getTopGroup() {
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractDomChildrenDescriptor.java


示例13: getTopGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Override
public XmlElementsGroup getTopGroup() {
  XmlElementContentGroup topGroup = myElementDecl.getContentSpecElement().getTopGroup();
  return topGroup == null ? null : new XmlElementsGroupImpl(topGroup, null);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:XmlElementDescriptorImpl.java


示例14: XmlElementsGroupImpl

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
public XmlElementsGroupImpl(@NotNull XmlContentParticle particle, XmlElementsGroup parent) {
  myParticle = particle;
  myParent = parent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XmlElementsGroupImpl.java


示例15: getParentGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Override
public XmlElementsGroup getParentGroup() {
  return myParent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XmlElementsGroupImpl.java


示例16: getSubGroups

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Override
public List<XmlElementsGroup> getSubGroups() {
  return mySubGroups.getValue();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XmlElementsGroupImpl.java


示例17: computeGroups

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
public static XmlElementsGroup computeGroups(XmlNSDescriptorImpl descriptor, XmlTag tag) {
  XmlElementsGroupProcessor processor = new XmlElementsGroupProcessor(descriptor);
  processor.startProcessing(tag);
  return processor.getRootGroup();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:XmlElementsGroupProcessor.java


示例18: getRootGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
private XmlElementsGroup getRootGroup() {
  return myGroups.get(0);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:XmlElementsGroupProcessor.java


示例19: getTopGroup

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
@Nullable
public XmlElementsGroup getTopGroup() {
  return XmlElementsGroupProcessor.computeGroups(myDocumentDescriptor, myTag);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ComplexTypeDescriptor.java


示例20: XmlElementsGroupImpl

import com.intellij.xml.XmlElementsGroup; //导入依赖的package包/类
public XmlElementsGroupImpl(XmlTag tag, XmlElementsGroup parent, XmlTag ref) {
  super(tag, parent, ref);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:XmlElementsGroupImpl.java



注:本文中的com.intellij.xml.XmlElementsGroup类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RMNodeReconnectEvent类代码示例发布时间:2022-05-22
下一篇:
Java DescribeAutoScalingGroupsRequest类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap