xjavadoc
Class FieldImpl

java.lang.Object
  extended byxjavadoc.AbstractProgramElement
      extended byxjavadoc.MemberImpl
          extended byxjavadoc.FieldImpl
All Implemented Interfaces:
java.lang.Comparable, Named, Type, XField, XMember, XProgramElement

final class FieldImpl
extends MemberImpl
implements XField

Version:
$Revision: 1.17 $
Author:
Ara Abrahamian (ara_e_w@yahoo.com), Aslak Helles�y

Field Summary
private  int _dimension
           
private  java.lang.String _type
           
 
Fields inherited from class xjavadoc.AbstractProgramElement
EMPTY_LIST
 
Constructor Summary
FieldImpl(AbstractClass containingClass, XTagFactory tagFactory)
           
 
Method Summary
 int getDimension()
          Returns the dimension as an int
 java.lang.String getDimensionAsString()
          Returns the dimension as a String, "", "[]", "[][]" etc.
 java.lang.String getName()
          Get name
 XProgramElement getSuperElement()
           
 java.util.List getSuperInterfaceElements()
           
 XClass getType()
          Get type
 java.lang.String getTypeAsString()
           
 boolean isTransient()
          Gets the Transient attribute of the XField object
 boolean isVolatile()
          Gets the Volatile attribute of the XField object
 void setDimension(int dimension)
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
           
 
Methods inherited from class xjavadoc.AbstractProgramElement
addModifier, compareTo, getContainingAbstractClass, getContainingClass, getContainingPackage, getDoc, getModifiers, getModifierSpecifier, getTagFactory, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, reset, setToken, updateDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface xjavadoc.XProgramElement
getContainingClass, getContainingPackage, getDoc, getModifiers, getModifierSpecifier, getSuperInterfaceElements, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, updateDoc
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface xjavadoc.Named
getName
 

Field Detail

_type

private java.lang.String _type

_dimension

private int _dimension
Constructor Detail

FieldImpl

public FieldImpl(AbstractClass containingClass,
                 XTagFactory tagFactory)
Method Detail

isTransient

public final boolean isTransient()
Description copied from interface: XField
Gets the Transient attribute of the XField object

Specified by:
isTransient in interface XField
Returns:
The Transient value

isVolatile

public final boolean isVolatile()
Description copied from interface: XField
Gets the Volatile attribute of the XField object

Specified by:
isVolatile in interface XField
Returns:
The Volatile value

getDimension

public int getDimension()
Description copied from interface: Type
Returns the dimension as an int

Specified by:
getDimension in interface Type
Returns:
dimension as an int

getTypeAsString

public java.lang.String getTypeAsString()

getDimensionAsString

public java.lang.String getDimensionAsString()
Description copied from interface: Type
Returns the dimension as a String, "", "[]", "[][]" etc.

Specified by:
getDimensionAsString in interface Type
Returns:
dimension as a String

getType

public XClass getType()
Description copied from interface: Type
Get type

Specified by:
getType in interface Type
Returns:
type

getSuperElement

public XProgramElement getSuperElement()
Specified by:
getSuperElement in interface XProgramElement

setType

public void setType(java.lang.String type)

setDimension

public void setDimension(int dimension)

toString

public java.lang.String toString()

getName

public java.lang.String getName()
Description copied from interface: Named
Get name

Specified by:
getName in interface Named
Returns:
name

setName

public void setName(java.lang.String name)

getSuperInterfaceElements

public java.util.List getSuperInterfaceElements()
Specified by:
getSuperInterfaceElements in interface XProgramElement