Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Method and Description |
---|---|
static CodeStyle |
CodeStyle.getDefault(Document doc)
Gets
CodeStyle for the given document. |
static CodeStyle |
CodeStyle.getDefault(FileObject file)
Gets
CodeStyle for the given file. |
static CodeStyle |
CodeStyle.getDefault(Project project)
Deprecated.
Please use
CodeStyle.getDefault(javax.swing.text.Document)
or CodeStyle.getDefault(org.openide.filesystems.FileObject) respectively. |
Modifier and Type | Method and Description |
---|---|
static String |
CodeStyleUtils.computeGetterName(CharSequence fieldName,
boolean isBoolean,
boolean isStatic,
CodeStyle cs)
Computes the method name that should be used to read the property value.
|
static String |
CodeStyleUtils.computeSetterName(CharSequence fieldName,
boolean isStatic,
CodeStyle cs)
Computes the method name that should be used to write the property value.
|
boolean |
ElementUtilities.hasGetter(TypeElement type,
VariableElement field,
CodeStyle codeStyle)
Check whether given type has a getter method for the given field.
|
boolean |
ElementUtilities.hasSetter(TypeElement type,
VariableElement field,
CodeStyle codeStyle)
Check whether given type has a setter method for the given field.
|