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


Java EncapsulatableClassMember类代码示例

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


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

示例1: fun

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
@Override
@NotNull
public Collection<EncapsulatableClassMember> fun(PsiClass s) {
  if (!(s instanceof GrTypeDefinition)) return Collections.emptyList();
  final List<EncapsulatableClassMember> result = new ArrayList<EncapsulatableClassMember>();
  for (PsiField field : s.getFields()) {
    if (!(field instanceof PsiEnumConstant) && field instanceof GrField) {
      result.add(new GrFieldMember((GrField)field));
    }
  }
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:GroovyGenerateGetterSetterAction.java

示例2: fun

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
@NotNull
public Collection<EncapsulatableClassMember> fun(PsiClass s) {
  if (!(s instanceof GrTypeDefinition)) return Collections.emptyList();
  final List<EncapsulatableClassMember> result = new ArrayList<EncapsulatableClassMember>();
  for (PsiField field : s.getFields()) {
    if (!(field instanceof PsiEnumConstant) && field instanceof GrField) {
      result.add(new GrFieldMember((GrField)field));
    }
  }
  return result;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:GroovyGenerateGetterSetterAction.java

示例3: getEncapsulatableClassMembers

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
@Override
protected List<EncapsulatableClassMember> getEncapsulatableClassMembers(PsiClass psiClass) {
  final List<EncapsulatableClassMember> result = new ArrayList<EncapsulatableClassMember>();
  for (PsiField field : psiClass.getFields()) {
    if (null != PropertyUtil.findPropertySetter(psiClass, field.getName(), false, false)) {
      result.add(new PsiFieldMember(field));
    }
  }
  return result;
}
 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:11,代码来源:RefactorSetterHandler.java

示例4: getEncapsulatableClassMembers

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
@Override
protected List<EncapsulatableClassMember> getEncapsulatableClassMembers(PsiClass psiClass) {
  final List<EncapsulatableClassMember> result = new ArrayList<EncapsulatableClassMember>();
  for (PsiField field : psiClass.getFields()) {
    if (null != PropertyUtil.findPropertyGetter(psiClass, field.getName(), false, false)) {
      result.add(new PsiFieldMember(field));
    }
  }
  return result;
}
 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:11,代码来源:RefactorGetterHandler.java

示例5: BaseRefactorHandler

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
public BaseRefactorHandler(DataContext dataContext, Project project) {
  this.project = project;
  editor = PlatformDataKeys.EDITOR.getData(dataContext);

  PsiFile psiFile = DataKeys.PSI_FILE.getData(dataContext);
  PsiClass psiClass = OverrideImplementUtil.getContextClass(project, editor, psiFile, false);

  List<EncapsulatableClassMember> classMembers = getEncapsulatableClassMembers(psiClass);
  chooser = new MemberChooser<ClassMember>(
    classMembers.toArray(new ClassMember[classMembers.size()]), true, true, project);
  chooser.setTitle(getChooserTitle());
  chooser.setCopyJavadocVisible(false);
}
 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:14,代码来源:BaseRefactorHandler.java

示例6: getEncapsulatableClassMembers

import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
protected abstract List<EncapsulatableClassMember> getEncapsulatableClassMembers(PsiClass psiClass); 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:2,代码来源:BaseRefactorHandler.java


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