本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}