de.hillenbrand.jedi.ds
Class JediMethod
java.lang.Object
de.hillenbrand.jedi.ds.JediMethod
- All Implemented Interfaces:
- JediJavaObject, java.lang.Comparable
public class JediMethod
- extends java.lang.Object
- implements java.lang.Comparable, JediJavaObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
JediMethod
public JediMethod(JediClass parentClass,
java.io.BufferedReader in)
JediMethod
public JediMethod(JediClass parentClass,
java.lang.String methodName,
int methodType)
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()
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)
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