org.objectweb.jac.ide
Class Member

java.lang.Object
  extended byorg.objectweb.jac.ide.ModelElement
      extended byorg.objectweb.jac.ide.TypedElement
          extended byorg.objectweb.jac.ide.Member
All Implemented Interfaces:
Element, Typed, Visibility
Direct Known Subclasses:
Field, Method

public abstract class Member
extends TypedElement
implements Visibility

A member item of a class such as a field or a method.


Field Summary
 
Fields inherited from interface org.objectweb.jac.ide.Visibility
PRIVATE, PROTECTED, PUBLIC
 
Constructor Summary
Member()
           
 
Method Summary
 String getFullName()
          Defines a redefinable method to get the full name.
 String getGenerationFullName()
          Gets full name to use for code generation.
 String getGenerationName()
          Gets name to use for code generation.
 String getModifiers()
          Returns a string of all the modifiers of a member item (field or method)
 Class getParent()
          Get the value of parent.
 Project getProject()
           
abstract  String getPrototype()
           
 int getVisibility()
           
 boolean isStatic()
          Returns value of isStatic field
 void setParent(Class v)
          Set the value of parent.
 void setStatic(boolean isStatic)
          Sets value of isStatic field
 void setVisibility(int newVisibility)
           
 
Methods inherited from class org.objectweb.jac.ide.TypedElement
getToString, getType, getTypeName, isArray, setArray, setType
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getLinks, getName, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jac.ide.Element
getName
 

Constructor Detail

Member

public Member()
Method Detail

getParent

public Class getParent()
Get the value of parent.

Returns:
value of parent.

setParent

public void setParent(Class v)
Set the value of parent.

Parameters:
v - Value to assign to parent.

getPrototype

public abstract String getPrototype()
Overrides:
getPrototype in class TypedElement

isStatic

public boolean isStatic()
Returns value of isStatic field


setStatic

public void setStatic(boolean isStatic)
Sets value of isStatic field


getModifiers

public String getModifiers()
Returns a string of all the modifiers of a member item (field or method)

Returns:
a String with the modifiers, seperated by spaces
See Also:
isStatic(), getVisibility()

getFullName

public String getFullName()
Description copied from class: ModelElement
Defines a redefinable method to get the full name. Here it is equivalent to the getName() method.

Overrides:
getFullName in class ModelElement

getGenerationName

public String getGenerationName()
Description copied from class: ModelElement
Gets name to use for code generation. Defaults to name.

Specified by:
getGenerationName in interface Element
Overrides:
getGenerationName in class ModelElement

getGenerationFullName

public String getGenerationFullName()
Description copied from class: ModelElement
Gets full name to use for code generation. Defaults to fullName.

Specified by:
getGenerationFullName in interface Element
Overrides:
getGenerationFullName in class ModelElement

getProject

public Project getProject()

getVisibility

public int getVisibility()

setVisibility

public void setVisibility(int newVisibility)