当前位置: 首页>>代码示例>>Java>>正文


Java AbstractCollection类代码示例

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


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

示例1: collectFieldAccessors

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
private static void collectFieldAccessors(@NotNull Class<?> aClass, @NotNull List<MutableAccessor> accessors) {
  Class<?> currentClass = aClass;
  do {
    for (Field field : currentClass.getDeclaredFields()) {
      int modifiers = field.getModifiers();
      //noinspection deprecation
      if (!Modifier.isStatic(modifiers) &&
          (field.getAnnotation(OptionTag.class) != null ||
           field.getAnnotation(Tag.class) != null ||
           field.getAnnotation(Attribute.class) != null ||
           field.getAnnotation(Property.class) != null ||
           field.getAnnotation(Text.class) != null ||
           field.getAnnotation(CollectionBean.class) != null ||
           field.getAnnotation(MapAnnotation.class) != null ||
           field.getAnnotation(AbstractCollection.class) != null ||
           (Modifier.isPublic(modifiers) &&
            // we don't want to allow final fields of all types, but only supported
            (!Modifier.isFinal(modifiers) || Collection.class.isAssignableFrom(field.getType())) &&
            !Modifier.isTransient(modifiers) &&
            field.getAnnotation(Transient.class) == null))) {
        accessors.add(new FieldAccessor(field));
      }
    }
  }
  while ((currentClass = currentClass.getSuperclass()) != null && currentClass.getAnnotation(Transient.class) == null);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:BeanBinding.java

示例2: getDeviceIds

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@Tag("devices")
@AbstractCollection(surroundWithTag = false, elementTag = "device", elementValueAttribute = "id")
public List<String> getDeviceIds() {
  return myDeviceIds;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ConfigurationProjectState.java

示例3: getResponseHandlers

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@AbstractCollection(
  elementTypes = {
    XPathResponseHandler.class,
    JsonPathResponseHandler.class,
    RegExResponseHandler.class
  },
  surroundWithTag = false
)
public List<ResponseHandler> getResponseHandlers() {
  Collection<ResponseHandler> handlers = myResponseHandlersMap.values();
  return new ArrayList<ResponseHandler>(handlers);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:GenericRepository.java

示例4: getSelectors

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Tag("selectors")
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
@NotNull
public List<Selector> getSelectors() {
  return new ArrayList<Selector>(mySelectors.values());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:SelectorBasedResponseHandler.java

示例5: getBranches

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Override
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag="branch")
public List<BranchInfo> getBranches() {
  return myBranches;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:LocalTaskImpl.java

示例6: getWorkItems

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag="workItem")
@Override
public List<WorkItem> getWorkItems() {
  return myWorkItems;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:LocalTaskImpl.java

示例7: createObject

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
public Object createObject(@NotNull Class<?> aClass, FList<Type> processedTypes) throws Exception {
  Object o = ReflectionUtil.newInstance(aClass);
  for (MutableAccessor accessor : XmlSerializerUtil.getAccessors(aClass)) {
    AbstractCollection abstractCollection = accessor.getAnnotation(AbstractCollection.class);
    List<Type> elementTypes = abstractCollection != null ? Arrays.<Type>asList(abstractCollection.elementTypes()) : Collections.<Type>emptyList();
    Object value = createValue(accessor.getGenericType(), processedTypes, elementTypes);
    if (value != null) {
      accessor.set(o, value);
    }
  }
  return o;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:ShowSerializedXmlAction.java

示例8: getChangeLists

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "changelist")
public List<ChangeListInfo> getChangeLists()
{
	return myChangeLists;
}
 
开发者ID:consulo,项目名称:consulo-tasks,代码行数:8,代码来源:LocalTaskImpl.java

示例9: getBranches

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Override
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "branch")
public List<BranchInfo> getBranches()
{
	return myBranches;
}
 
开发者ID:consulo,项目名称:consulo-tasks,代码行数:9,代码来源:LocalTaskImpl.java

示例10: getWorkItems

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "workItem")
@Override
public List<WorkItem> getWorkItems()
{
	return myWorkItems;
}
 
开发者ID:consulo,项目名称:consulo-tasks,代码行数:9,代码来源:LocalTaskImpl.java

示例11: getGenerators

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@AbstractCollection(
  surroundWithTag = false,
  elementTypes = {AS3.class, Cocoa.class, Cpp.class, CSharp.class, Delphi.class, Erlang.class, Generator.class, Go.class, Graphviz.class,
    HTML.class, IGenerator.class, Java.class, Javascript.class, PHP.class, Python.class, Ruby.class}
)
public List<Generator> getGenerators() {
  return generators;
}
 
开发者ID:fkorotkov,项目名称:intellij-thrift,代码行数:9,代码来源:ThriftCompilerOptions.java

示例12: getSubFacets

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<FacetState> getSubFacets() {
  return mySubFacets;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:FacetState.java

示例13: getFacets

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<FacetState> getFacets() {
  return myFacets;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:FacetManagerState.java

示例14: getArtifacts

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<ArtifactState> getArtifacts() {
  return myArtifacts;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactManagerState.java

示例15: getPropertiesList

import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<ArtifactPropertiesState> getPropertiesList() {
  return myPropertiesList;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactState.java


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