Class com.symantec.itools.vcafe.openapi.dtreflect.DTField
All Packages Class Hierarchy This Package Previous Next Index
Class com.symantec.itools.vcafe.openapi.dtreflect.DTField
Object
|
+----DTMember
|
+----com.symantec.itools.vcafe.openapi.dtreflect.DTField
- public class DTField
- extends DTMember
- implements Serializable
-
equals(Object)
- Compares this DTField against the specified object.
-
equals(DTField)
- Compares this DTField against the specified DTField.
-
getJavadocRange()
- gets the text range from the beginning of the first line of the field's Javadoc comment
to the closing asterisk-slash characters
-
getSourceRange()
- gets the text range from the beginning of the field declaration to the closing brace
-
rename(String)
- Renames the field to new name
-
toShortString()
- Returns a short string describing this DTField.
-
toString()
- Returns a string describing this DTField.
-
validate()
- Ensure that this member is valid in its project
equals
public boolean equals(Object obj)
- Compares this DTField against the specified object. Returns
true if the objects are the same. Two Fields are the same if
they were declared by the same class and have the same name,
type and modifiers.
- Overrides:
- equals in class DTMember
equals
public boolean equals(DTField other)
- Compares this DTField against the specified DTField. Returns
true if the fields are the same. Two Fields are the same if
they were declared by the same class and have the same name,
type and modifiers.
getJavadocRange
public com.symantec.itools.vcafe.openapi.Range getJavadocRange()
- gets the text range from the beginning of the first line of the field's Javadoc comment
to the closing asterisk-slash characters
- Overrides:
- getJavadocRange in class DTMember
getSourceRange
public com.symantec.itools.vcafe.openapi.Range getSourceRange()
- gets the text range from the beginning of the field declaration to the closing brace
- Overrides:
- getSourceRange in class DTMember
rename
public boolean rename(String newName)
- Renames the field to new name
- Parameters:
- newName: - The new name of the field
- Returns:
- Success (true) or failure (false)...
toShortString
public java.lang.String toShortString()
- Returns a short string describing this DTField.
The string consists of the field name,
e.g., "substring(int,int)".
toString
public java.lang.String toString()
- Returns a string describing this DTField. The string is
formatted as the field access modifiers, if any, followed by
the field type, followed by the
class declaring the field, followed by a period, followed by
the field name.
For example:
private float java.lang.Float.value
The access modifiers are placed in canonical order as
specified by "The Java Language Specification". This is
public, protected or private first,
and then other modifiers in the following order:
abstract, static, final,
synchronized native.
- Overrides:
- toString in class Object
validate
public boolean validate()
- Ensure that this member is valid in its project
- Overrides:
- validate in class DTMember
All Packages Class Hierarchy This Package Previous Next Index