本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例6: getEncapsulatableClassMembers
import com.intellij.codeInsight.generation.EncapsulatableClassMember; //导入依赖的package包/类
protected abstract List<EncapsulatableClassMember> getEncapsulatableClassMembers(PsiClass psiClass);