de.hillenbrand.jedi.ds
Class JediMethod

java.lang.Object
  extended by de.hillenbrand.jedi.ds.JediMethod
All Implemented Interfaces:
JediJavaObject, java.lang.Comparable

public class JediMethod
extends java.lang.Object
implements java.lang.Comparable, JediJavaObject


Field Summary
static int CONSTRUCTOR
           
static int INSTANCE_INITIALIZER
           
static int METHOD
           
static int STATIC_INITIALIZER
           
protected  java.lang.String typeParameters
           
 
Constructor Summary
JediMethod(JediClass parentClass, java.io.BufferedReader in)
           
JediMethod(JediClass parentClass, java.lang.String methodName, int methodType)
           
 
Method Summary
 void addParameter(java.lang.String p)
           
 void addThrows(java.lang.String p)
           
 void appendBodyText(java.lang.String line)
           
 void cleanUp()
           
 int compareTo(java.lang.Object o)
           
 boolean export(de.hillenbrand.io.HWriter out, boolean javadoc)
           
 boolean export(de.hillenbrand.io.HWriter out, java.lang.String prefix, boolean javadoc)
           
 java.lang.String getAnnotations()
           
 de.hillenbrand.swing.text.UndoableDocument getAnnotationsAsDocument()
           
 de.hillenbrand.swing.text.JavaDocument getBodyAsJavaDocument()
           
 java.lang.String getBodyAsPlainText()
           
 java.lang.String getFullName()
           
 java.lang.String getJavaDoc()
           
 de.hillenbrand.swing.text.UndoableDocument getJavaDocAsDocument()
           
 java.lang.String getName()
           
 java.lang.String[] getParameters()
           
 JediClass getParent()
           
 MethodPropertiesFrame getPropertiesFrame()
           
 java.lang.String getResultType()
           
 java.lang.String getSignature()
           
 java.lang.String[] getThrows()
           
 int getType()
           
 java.lang.String getTypeParameters()
          Returns the value of the typeParameters property.
 boolean isAbstract()
           
 boolean isConstructor()
           
 boolean isEnabled()
          Returns the value of the enabled property.
 boolean isFinal()
           
 boolean isInstanceInitializer()
           
 boolean isMethod()
           
 boolean isNative()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isStaticInitializer()
           
 boolean isStrict()
          Returns the value of the strict property.
 boolean isSynchronized()
           
 void refreshPropertiesFrame()
           
 int saveSource(de.hillenbrand.io.HPrintWriter out, int line, LineResolver lineResolver, java.lang.String prefix)
           
 void setAbstract(boolean b)
           
 void setAnnotations(java.lang.String s)
           
 void setDataFrom(JediMethod m)
           
 void setEnabled(boolean arg)
          Assigns the value of the enabled property.
 void setFinal(boolean b)
           
 void setJavaDoc(java.lang.String s)
           
 void setNative(boolean b)
           
 void setParameters(java.lang.String[] s)
           
 void setPrivate(boolean b)
           
 void setProtected(boolean b)
           
 void setPublic(boolean b)
           
 void setResultType(java.lang.String s)
           
 void setStatic(boolean b)
           
 void setStrict(boolean arg)
          Assigns the value of the strict property.
 void setSynchronized(boolean b)
           
 void setText(java.lang.String s)
           
 void setThrows(java.lang.String[] s)
           
 void setTypeParameters(java.lang.String arg)
          Assigns the value of the typeParameters property.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METHOD

public static final int METHOD
See Also:
Constant Field Values

CONSTRUCTOR

public static final int CONSTRUCTOR
See Also:
Constant Field Values

STATIC_INITIALIZER

public static final int STATIC_INITIALIZER
See Also:
Constant Field Values

INSTANCE_INITIALIZER

public static final int INSTANCE_INITIALIZER
See Also:
Constant Field Values

typeParameters

protected java.lang.String typeParameters
Constructor Detail

JediMethod

public JediMethod(JediClass parentClass,
                  java.io.BufferedReader in)

JediMethod

public JediMethod(JediClass parentClass,
                  java.lang.String methodName,
                  int methodType)
Method Detail

addParameter

public void addParameter(java.lang.String p)

addThrows

public void addThrows(java.lang.String p)

appendBodyText

public void appendBodyText(java.lang.String line)

cleanUp

public void cleanUp()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

export

public boolean export(de.hillenbrand.io.HWriter out,
                      boolean javadoc)

export

public boolean export(de.hillenbrand.io.HWriter out,
                      java.lang.String prefix,
                      boolean javadoc)

getAnnotations

public java.lang.String getAnnotations()
Specified by:
getAnnotations in interface JediJavaObject

getAnnotationsAsDocument

public de.hillenbrand.swing.text.UndoableDocument getAnnotationsAsDocument()

getBodyAsJavaDocument

public de.hillenbrand.swing.text.JavaDocument getBodyAsJavaDocument()

getBodyAsPlainText

public java.lang.String getBodyAsPlainText()

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface JediJavaObject

getJavaDoc

public java.lang.String getJavaDoc()
Specified by:
getJavaDoc in interface JediJavaObject

getJavaDocAsDocument

public de.hillenbrand.swing.text.UndoableDocument getJavaDocAsDocument()

getName

public java.lang.String getName()
Specified by:
getName in interface JediJavaObject

getParameters

public java.lang.String[] getParameters()

getParent

public JediClass getParent()

getPropertiesFrame

public MethodPropertiesFrame getPropertiesFrame()

getResultType

public java.lang.String getResultType()

getSignature

public java.lang.String getSignature()

getThrows

public java.lang.String[] getThrows()

getType

public int getType()

getTypeParameters

public java.lang.String getTypeParameters()
Returns the value of the typeParameters property.


isAbstract

public boolean isAbstract()

isConstructor

public boolean isConstructor()

isEnabled

public boolean isEnabled()
Returns the value of the enabled property.


isFinal

public boolean isFinal()

isInstanceInitializer

public boolean isInstanceInitializer()

isMethod

public boolean isMethod()

isNative

public boolean isNative()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isPublic

public boolean isPublic()

isStatic

public boolean isStatic()

isStaticInitializer

public boolean isStaticInitializer()

isStrict

public boolean isStrict()
Returns the value of the strict property.


isSynchronized

public boolean isSynchronized()

refreshPropertiesFrame

public void refreshPropertiesFrame()

saveSource

public int saveSource(de.hillenbrand.io.HPrintWriter out,
                      int line,
                      LineResolver lineResolver,
                      java.lang.String prefix)

setAbstract

public void setAbstract(boolean b)

setAnnotations

public void setAnnotations(java.lang.String s)
Specified by:
setAnnotations in interface JediJavaObject

setDataFrom

public void setDataFrom(JediMethod m)

setEnabled

public void setEnabled(boolean arg)
Assigns the value of the enabled property.


setFinal

public void setFinal(boolean b)

setJavaDoc

public void setJavaDoc(java.lang.String s)
Specified by:
setJavaDoc in interface JediJavaObject

setNative

public void setNative(boolean b)

setParameters

public void setParameters(java.lang.String[] s)

setPrivate

public void setPrivate(boolean b)

setProtected

public void setProtected(boolean b)

setPublic

public void setPublic(boolean b)

setResultType

public void setResultType(java.lang.String s)

setStatic

public void setStatic(boolean b)

setStrict

public void setStrict(boolean arg)
Assigns the value of the strict property.


setSynchronized

public void setSynchronized(boolean b)

setText

public void setText(java.lang.String s)

setThrows

public void setThrows(java.lang.String[] s)

setTypeParameters

public void setTypeParameters(java.lang.String arg)
Assigns the value of the typeParameters property.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object