public class JavaCodeStyleSettings extends CustomCodeStyleSettings implements ImportsLayoutSettings
Constructor and Description |
---|
JavaCodeStyleSettings(CodeStyleSettings container) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterLoaded()
Fired when settings just loaded.
|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
int |
getClassCountToUseImportOnDemand() |
java.util.List<java.lang.String> |
getDoNotImportInner() |
PackageEntryTable |
getImportLayoutTable() |
static JavaCodeStyleSettings |
getInstance(Project project)
For production code use
getInstance(PsiFile) |
static JavaCodeStyleSettings |
getInstance(PsiFile file) |
java.util.List<java.lang.String> |
getKnownTagNames()
in case settings save additional top-level tags, list the list of them to prevent serializer to treat such tag as unknown settings.
|
int |
getNamesCountToUseImportOnDemand() |
PackageEntryTable |
getPackagesToUseImportOnDemand() |
java.util.List<java.lang.String> |
getRepeatAnnotations() |
protected void |
importLegacySettings(CodeStyleSettings rootSettings)
For compatibility with old code style settings stored in CodeStyleSettings.
|
boolean |
isGenerateFinalLocals() |
boolean |
isGenerateFinalParameters() |
boolean |
isInsertInnerClassImports() |
boolean |
isInsertInnerClassImportsFor(java.lang.String className) |
boolean |
isLayoutStaticImportsSeparately() |
boolean |
isUseFqClassNames() |
boolean |
isUseSingleClassImports() |
void |
readExternal(Element parentElement) |
void |
setClassCountToUseImportOnDemand(int value) |
void |
setDoNotImportInner(java.util.List<java.lang.String> doNotImportInner) |
void |
setInsertInnerClassImports(boolean value) |
void |
setLayoutStaticImportsSeparately(boolean value) |
void |
setNamesCountToUseImportOnDemand(int value) |
void |
setRepeatAnnotations(java.util.List<java.lang.String> repeatAnnotations) |
void |
setUseFqClassNames(boolean value) |
void |
setUseSingleClassImports(boolean value) |
boolean |
useFqNamesInJavadocAlways() |
void |
writeExternal(Element parentElement,
CustomCodeStyleSettings parentSettings) |
beforeLoading, getContainer, getTagName
public java.lang.String FIELD_NAME_PREFIX
public java.lang.String STATIC_FIELD_NAME_PREFIX
public java.lang.String PARAMETER_NAME_PREFIX
public java.lang.String LOCAL_VARIABLE_NAME_PREFIX
public java.lang.String TEST_NAME_PREFIX
public java.lang.String SUBCLASS_NAME_PREFIX
public java.lang.String FIELD_NAME_SUFFIX
public java.lang.String STATIC_FIELD_NAME_SUFFIX
public java.lang.String PARAMETER_NAME_SUFFIX
public java.lang.String LOCAL_VARIABLE_NAME_SUFFIX
public java.lang.String TEST_NAME_SUFFIX
public java.lang.String SUBCLASS_NAME_SUFFIX
public boolean PREFER_LONGER_NAMES
public boolean GENERATE_FINAL_LOCALS
public boolean GENERATE_FINAL_PARAMETERS
public java.lang.String VISIBILITY
public boolean USE_EXTERNAL_ANNOTATIONS
public boolean INSERT_OVERRIDE_ANNOTATION
public boolean REPEAT_SYNCHRONIZED
@Deprecated public boolean REPLACE_INSTANCEOF
REPLACE_INSTANCEOF_AND_CAST
@Deprecated public boolean REPLACE_CAST
REPLACE_INSTANCEOF_AND_CAST
public boolean REPLACE_INSTANCEOF_AND_CAST
public boolean REPLACE_NULL_CHECK
public boolean REPLACE_SUM
public boolean SPACES_WITHIN_ANGLE_BRACKETS
public boolean SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENT
public boolean SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETER
public boolean SPACE_AROUND_TYPE_BOUNDS_IN_TYPE_PARAMETERS
public boolean DO_NOT_WRAP_AFTER_SINGLE_ANNOTATION
public int ANNOTATION_PARAMETER_WRAP
public boolean ALIGN_MULTILINE_ANNOTATION_PARAMETERS
public boolean ALIGN_MULTILINE_TEXT_BLOCKS
public int BLANK_LINES_AROUND_INITIALIZER
public static final int FULLY_QUALIFY_NAMES_IF_NOT_IMPORTED
public static final int FULLY_QUALIFY_NAMES_ALWAYS
public static final int SHORTEN_NAMES_ALWAYS_AND_ADD_IMPORT
public int CLASS_NAMES_IN_JAVADOC
public boolean SPACE_BEFORE_COLON_IN_FOREACH
public boolean SPACE_INSIDE_ONE_LINE_ENUM_BRACES
public boolean LAYOUT_STATIC_IMPORTS_SEPARATELY
public boolean USE_FQ_CLASS_NAMES
public boolean USE_SINGLE_CLASS_IMPORTS
public boolean INSERT_INNER_CLASS_IMPORTS
public int CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND
public int NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND
public PackageEntryTable PACKAGES_TO_USE_IMPORT_ON_DEMAND
public PackageEntryTable IMPORT_LAYOUT_TABLE
public int RECORD_COMPONENTS_WRAP
public boolean ALIGN_MULTILINE_RECORDS
public boolean NEW_LINE_AFTER_LPAREN_IN_RECORD_HEADER
public boolean RPAREN_ON_NEW_LINE_IN_RECORD_HEADER
public boolean ENABLE_JAVADOC_FORMATTING
public boolean JD_ALIGN_PARAM_COMMENTS
public boolean JD_ALIGN_EXCEPTION_COMMENTS
public boolean JD_ADD_BLANK_AFTER_PARM_COMMENTS
public boolean JD_ADD_BLANK_AFTER_RETURN
public boolean JD_ADD_BLANK_AFTER_DESCRIPTION
public boolean JD_P_AT_EMPTY_LINES
public boolean JD_KEEP_INVALID_TAGS
public boolean JD_KEEP_EMPTY_LINES
public boolean JD_DO_NOT_WRAP_ONE_LINE_COMMENTS
public boolean JD_USE_THROWS_NOT_EXCEPTION
public boolean JD_KEEP_EMPTY_PARAMETER
public boolean JD_KEEP_EMPTY_EXCEPTION
public boolean JD_KEEP_EMPTY_RETURN
public boolean JD_LEADING_ASTERISKS_ARE_ENABLED
public boolean JD_PRESERVE_LINE_FEEDS
public boolean JD_PARAM_DESCRIPTION_ON_NEW_LINE
public boolean JD_INDENT_ON_CONTINUATION
public JavaCodeStyleSettings(CodeStyleSettings container)
public java.util.List<java.lang.String> getRepeatAnnotations()
public void setRepeatAnnotations(java.util.List<java.lang.String> repeatAnnotations)
public java.util.List<java.lang.String> getDoNotImportInner()
public void setDoNotImportInner(java.util.List<java.lang.String> doNotImportInner)
public boolean useFqNamesInJavadocAlways()
public boolean isLayoutStaticImportsSeparately()
isLayoutStaticImportsSeparately
in interface ImportsLayoutSettings
public void setLayoutStaticImportsSeparately(boolean value)
setLayoutStaticImportsSeparately
in interface ImportsLayoutSettings
public int getNamesCountToUseImportOnDemand()
getNamesCountToUseImportOnDemand
in interface ImportsLayoutSettings
public void setNamesCountToUseImportOnDemand(int value)
setNamesCountToUseImportOnDemand
in interface ImportsLayoutSettings
public int getClassCountToUseImportOnDemand()
getClassCountToUseImportOnDemand
in interface ImportsLayoutSettings
public void setClassCountToUseImportOnDemand(int value)
setClassCountToUseImportOnDemand
in interface ImportsLayoutSettings
public boolean isInsertInnerClassImports()
isInsertInnerClassImports
in interface ImportsLayoutSettings
public void setInsertInnerClassImports(boolean value)
setInsertInnerClassImports
in interface ImportsLayoutSettings
public boolean isInsertInnerClassImportsFor(java.lang.String className)
public boolean isUseSingleClassImports()
isUseSingleClassImports
in interface ImportsLayoutSettings
public void setUseSingleClassImports(boolean value)
setUseSingleClassImports
in interface ImportsLayoutSettings
public boolean isUseFqClassNames()
isUseFqClassNames
in interface ImportsLayoutSettings
public void setUseFqClassNames(boolean value)
setUseFqClassNames
in interface ImportsLayoutSettings
public PackageEntryTable getImportLayoutTable()
getImportLayoutTable
in interface ImportsLayoutSettings
public PackageEntryTable getPackagesToUseImportOnDemand()
getPackagesToUseImportOnDemand
in interface ImportsLayoutSettings
public boolean isGenerateFinalLocals()
public boolean isGenerateFinalParameters()
protected void importLegacySettings(CodeStyleSettings rootSettings)
CustomCodeStyleSettings
importLegacySettings
in class CustomCodeStyleSettings
public java.lang.Object clone()
clone
in class CustomCodeStyleSettings
public void readExternal(Element parentElement) throws InvalidDataException
readExternal
in class CustomCodeStyleSettings
InvalidDataException
public void writeExternal(Element parentElement, CustomCodeStyleSettings parentSettings) throws WriteExternalException
writeExternal
in class CustomCodeStyleSettings
WriteExternalException
public static JavaCodeStyleSettings getInstance(PsiFile file)
public static JavaCodeStyleSettings getInstance(Project project)
getInstance(PsiFile)
protected void afterLoaded()
CustomCodeStyleSettings
When the common version (the CodeStyleSettings.myVersion
is not changed, this method is called just after loading.
When the common version is changed, this method called after CustomCodeStyleSettings.importLegacySettings(com.intellij.psi.codeStyle.CodeStyleSettings)
.
afterLoaded
in class CustomCodeStyleSettings
public java.util.List<java.lang.String> getKnownTagNames()
CustomCodeStyleSettings
getKnownTagNames
in class CustomCodeStyleSettings
public boolean equals(java.lang.Object obj)
equals
in class CustomCodeStyleSettings