本文整理汇总了Java中com.intellij.psi.PsiModifier.PRIVATE属性的典型用法代码示例。如果您正苦于以下问题:Java PsiModifier.PRIVATE属性的具体用法?Java PsiModifier.PRIVATE怎么用?Java PsiModifier.PRIVATE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.psi.PsiModifier
的用法示例。
在下文中一共展示了PsiModifier.PRIVATE属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getVisibility
@Nullable
public String getVisibility() {
if (myRbPublic.isSelected()) {
return PsiModifier.PUBLIC;
}
if (myRbPackageLocal.isSelected()) {
return PsiModifier.PACKAGE_LOCAL;
}
if (myRbProtected.isSelected()) {
return PsiModifier.PROTECTED;
}
if (myRbPrivate.isSelected()) {
return PsiModifier.PRIVATE;
}
if (myRbEscalate != null && myRbEscalate.isSelected()) {
return VisibilityUtil.ESCALATE_VISIBILITY;
}
return null;
}
示例2: ExtractMethodInfoHelper
public ExtractMethodInfoHelper(InitialInfo initialInfo, String name, PsiClass owner, boolean forceReturn) {
super(initialInfo);
myOwner = owner;
myForceReturn = forceReturn;
myVisibility = PsiModifier.PRIVATE;
myName = name;
myIsStatic = canBeStatic(initialInfo.getContext());
}
示例3: showRefactoringDialog
@Override
protected BaseExpressionToFieldHandler.Settings showRefactoringDialog(PsiClass aClass, PsiLocalVariable local, PsiExpression[] occurences,
boolean isStatic) {
return new BaseExpressionToFieldHandler.Settings("xxx", null, occurences, true, isStatic, true, BaseExpressionToFieldHandler.InitializationPlace.IN_FIELD_DECLARATION,
PsiModifier.PRIVATE, local, local.getType(), false, aClass, true, myMakeEnumConstant);
}
示例4: buildFix
@Override
public InspectionGadgetsFix buildFix(Object... infos) {
return new ChangeModifierFix(PsiModifier.PRIVATE);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ReadObjectAndWriteObjectPrivateInspection.java
示例5: GrMakeMemberPrivateIntention
public GrMakeMemberPrivateIntention() {
super(PsiModifier.PRIVATE);
}
示例6: getModifier
@Override
protected String getModifier() {
return PsiModifier.PRIVATE;
}