Package org.fife.rsta.ac.java
Class FieldData
- java.lang.Object
-
- org.fife.rsta.ac.java.FieldData
-
- All Implemented Interfaces:
IconFactory.IconData,MemberCompletion.Data
class FieldData extends java.lang.Object implements MemberCompletion.Data
Metadata about a field as read from a Java source file. This class is used by instances ofFieldCompletion.- Version:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEnclosingClassName(boolean fullyQualified)Returns the name of the enclosing class.java.lang.StringgetIcon()Returns the main icon to use when rendering this member's completion.java.lang.StringgetSignature()Returns the signature of this member.java.lang.StringgetSummary()Returns the summary description (should be HTML) for this member.java.lang.StringgetType()Returns the type of this member (the return type for methods).booleanisAbstract()Returns whether this icon represents an abstract class/method/etc.booleanisConstructor()Always returnsfalse, fields cannot be constructors.booleanisDeprecated()Returns whether this icon represents a deprecated class/method/etc.booleanisFinal()Returns whether this icon represents a final class/method/etc.booleanisStatic()Returns whether this icon represents a static class/method/etc.
-
-
-
Field Detail
-
field
private Field field
-
-
Constructor Detail
-
FieldData
FieldData(Field field)
-
-
Method Detail
-
getEnclosingClassName
public java.lang.String getEnclosingClassName(boolean fullyQualified)
Description copied from interface:MemberCompletion.DataReturns the name of the enclosing class.- Specified by:
getEnclosingClassNamein interfaceMemberCompletion.Data- Parameters:
fullyQualified- Whether the name returned should be fully qualified.- Returns:
- The class name.
-
getIcon
public java.lang.String getIcon()
Description copied from interface:IconFactory.IconDataReturns the main icon to use when rendering this member's completion. This icon will be decorated appropriately based on whether it is abstract, deprecated, final, static, or any of the above.- Specified by:
getIconin interfaceIconFactory.IconData- Returns:
- The icon to use.
-
getSignature
public java.lang.String getSignature()
Description copied from interface:MemberCompletion.DataReturns the signature of this member.- Specified by:
getSignaturein interfaceMemberCompletion.Data- Returns:
- The signature.
- See Also:
MemberCompletion.getSignature()
-
getSummary
public java.lang.String getSummary()
Description copied from interface:MemberCompletion.DataReturns the summary description (should be HTML) for this member.- Specified by:
getSummaryin interfaceMemberCompletion.Data- Returns:
- The summary description, or
nullif there is none. - See Also:
Completion.getSummary()
-
getType
public java.lang.String getType()
Description copied from interface:MemberCompletion.DataReturns the type of this member (the return type for methods).- Specified by:
getTypein interfaceMemberCompletion.Data- Returns:
- The type of this member.
- See Also:
MemberCompletion.getType()
-
isAbstract
public boolean isAbstract()
Description copied from interface:IconFactory.IconDataReturns whether this icon represents an abstract class/method/etc.- Specified by:
isAbstractin interfaceIconFactory.IconData- Returns:
- Whether it represents something abstract.
-
isConstructor
public boolean isConstructor()
Always returnsfalse, fields cannot be constructors.- Specified by:
isConstructorin interfaceMemberCompletion.Data- Returns:
falsealways.
-
isDeprecated
public boolean isDeprecated()
Description copied from interface:IconFactory.IconDataReturns whether this icon represents a deprecated class/method/etc.- Specified by:
isDeprecatedin interfaceIconFactory.IconData- Returns:
- Whether it represents something deprecated.
-
isFinal
public boolean isFinal()
Description copied from interface:IconFactory.IconDataReturns whether this icon represents a final class/method/etc.- Specified by:
isFinalin interfaceIconFactory.IconData- Returns:
- Whether it represents something final.
-
isStatic
public boolean isStatic()
Description copied from interface:IconFactory.IconDataReturns whether this icon represents a static class/method/etc.- Specified by:
isStaticin interfaceIconFactory.IconData- Returns:
- Whether it represents something static.
-
-