|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.commonclipse.CCPluginPreferences
public final class CCPluginPreferences
Provide access to parsed plugin preferences.
Method Summary | |
---|---|
boolean |
addInstanceCheckToEquals()
Add an instance equality check to equals method? |
boolean |
appendSuperToCompareTo()
append super to compareTo method? |
boolean |
appendSuperToEquals()
Append super to equals method? |
boolean |
appendSuperToHashcode()
Append super to hashcode method? |
boolean |
appendSuperToToString()
Append super to toString method? |
boolean |
dontAskOnOverwrite()
Overwrite existing methods without confirmation? |
protected void |
evaluateExclusionList()
Gets the CCPlugin.P_EXCLUDE preference from the preference store and generates a Pattern from it. |
protected void |
evaluateToStringStyle()
Gets the CCPlugin.P_TOSTRING_STYLE preference from the preference store and parse it. |
static java.util.regex.Pattern |
generateRegExp(java.lang.String stringList)
Generate a single regular expression used to match excluded fields. |
java.util.regex.Pattern |
getExcludedFielsPattern()
Returns the list of excluded fields/properties. |
static CCPluginPreferences |
getPreferences()
returns the instance of plugin preferences. |
java.lang.String |
getToStringStyleClassAndConstant()
Gets the class.CONSTANT part of the custom toStringStyle. |
java.lang.String |
getToStringStyleQualifiedClass()
Gets the package.class part of the custom toStringStyle. |
boolean |
useCustomToStringStyle()
Use a custom toString style? |
boolean |
useFinalParameters()
Use final parameters in generated methods? |
boolean |
useJavabeanToString()
use javabean properties in toString() instead of fields? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CCPluginPreferences getPreferences()
protected void evaluateToStringStyle()
public boolean appendSuperToHashcode()
true
if appendSuper should be usedpublic boolean appendSuperToToString()
true
if appendSuper should be usedpublic boolean appendSuperToEquals()
true
if appendSuper should be usedpublic boolean appendSuperToCompareTo()
true
if appendSuper should be usedpublic boolean addInstanceCheckToEquals()
true
if an instance equality check should be addedpublic boolean useJavabeanToString()
true
if javabean properties should be used in toStringpublic boolean dontAskOnOverwrite()
true
if methods should be overwritten without confirmationpublic boolean useFinalParameters()
true
if final parameters should be used.public java.util.regex.Pattern getExcludedFielsPattern()
public boolean useCustomToStringStyle()
true
if a custom ToStringStyle is selectedpublic java.lang.String getToStringStyleQualifiedClass()
public java.lang.String getToStringStyleClassAndConstant()
protected void evaluateExclusionList()
public static java.util.regex.Pattern generateRegExp(java.lang.String stringList)
stringList
- list of fileds separate by ";"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |