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


Java RefClass.putUserData方法代码示例

本文整理汇总了Java中com.intellij.codeInspection.reference.RefClass.putUserData方法的典型用法代码示例。如果您正苦于以下问题:Java RefClass.putUserData方法的具体用法?Java RefClass.putUserData怎么用?Java RefClass.putUserData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.codeInspection.reference.RefClass的用法示例。


在下文中一共展示了RefClass.putUserData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: calculateInitializationDependenciesForClass

import com.intellij.codeInspection.reference.RefClass; //导入方法依赖的package包/类
public static Set<RefClass> calculateInitializationDependenciesForClass(
  RefClass refClass) {
  final Set<RefClass> dependencies =
    refClass.getUserData(INITIALIZATION_DEPENDENCY_CLASSES_KEY);
  if (dependencies != null) {
    return dependencies;
  }
  final Set<RefClass> newDependencies = new HashSet<RefClass>();
  tabulateInitializationDependencyClasses(refClass, newDependencies);
  newDependencies.remove(refClass);
  refClass.putUserData(INITIALIZATION_DEPENDENCY_CLASSES_KEY,
                       newDependencies);
  return newDependencies;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:InitializationDependencyUtils.java

示例2: calculateTransitiveInitializationDependenciesForClass

import com.intellij.codeInspection.reference.RefClass; //导入方法依赖的package包/类
public static Set<RefClass> calculateTransitiveInitializationDependenciesForClass(
  RefClass refClass) {
  final Set<RefClass> dependencies =
    refClass.getUserData(TRANSITIVE_INITIALIZATION_DEPENDENCY_CLASSES_KEY);
  if (dependencies != null) {
    return dependencies;
  }
  final Set<RefClass> newDependencies = new HashSet<RefClass>();
  tabulateTransitiveInitializationDependencyClasses(refClass,
                                                    newDependencies);
  refClass.putUserData(TRANSITIVE_INITIALIZATION_DEPENDENCY_CLASSES_KEY,
                       newDependencies);
  return newDependencies;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:InitializationDependencyUtils.java

示例3: calculateInitializationDependentsForClass

import com.intellij.codeInspection.reference.RefClass; //导入方法依赖的package包/类
public static Set<RefClass> calculateInitializationDependentsForClass(
  RefClass refClass) {
  final Set<RefClass> dependents =
    refClass.getUserData(INITIALIZATION_DEPENDENT_CLASSES_KEY);
  if (dependents != null) {
    return dependents;
  }
  final Set<RefClass> newDependents = new HashSet<RefClass>();
  tabulateInitializationDependentClasses(refClass, newDependents);
  newDependents.remove(refClass);
  refClass.putUserData(INITIALIZATION_DEPENDENT_CLASSES_KEY, newDependents);
  return newDependents;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:InitializationDependencyUtils.java

示例4: calculateTransitiveInitializationDependentsForClass

import com.intellij.codeInspection.reference.RefClass; //导入方法依赖的package包/类
public static Set<RefClass> calculateTransitiveInitializationDependentsForClass(
  RefClass refClass) {
  final Set<RefClass> dependents =
    refClass.getUserData(TRANSITIVE_INITIALIZATION_DEPENDENT_CLASSES_KEY);
  if (dependents != null) {
    return dependents;
  }
  final Set<RefClass> newDependents = new HashSet<RefClass>();
  tabulateInitializationTransitiveDependentClasses(refClass, newDependents);
  refClass.putUserData(TRANSITIVE_INITIALIZATION_DEPENDENT_CLASSES_KEY,
                       newDependents);
  return newDependents;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:InitializationDependencyUtils.java


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