|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides additional methods for manipulating a method's source. For more information about methods see section 8.4 of the Java Language Specification.
Method Summary | |
JotParameterDeclaration |
addParameter(JotMarker marker,
boolean before,
java.lang.String type,
java.lang.String value)
Creates a JotParameterDeclaration object with the specified name and type and adds it to this method's declaration. |
JotType |
addThrowSpecifier(JotMarker marker,
boolean before,
java.lang.String type)
Creates a JotType object with the specified type and adds it to the throws clause of this method's declaration. |
JotCodeBlock |
getCodeBlock()
Returns the body of this method, or null if this is an abstract method. |
int |
getDeclaredModifiers()
Returns only the modifiers actually declared in the file. |
JotStatement[] |
getStatements()
Returns an array of JotStatement objects which represent the statements contained in the body of this method. |
void |
removeParameter(JotParameter param)
Removes the specified parameter from this method's declaration. |
void |
removeThrowSpecifier(JotType spec)
Removes the specified exception from this method's declaration. |
void |
setModifiers(int modifiers)
Sets the modifiers for the method. |
void |
setName(java.lang.String name)
Sets the name of the method. |
void |
setParameterText(java.lang.String parameters)
Sets the parameters of the method as a single string, e.g. |
void |
setReturnType(java.lang.String type)
Sets the return type of the method. |
Methods inherited from interface com.borland.jbuilder.jot.JotMethod |
getDeclaringClass, getFirstParameter, getModifiers, getName, getParameter, getParameters, getParameterTypes, getReturnType, getThrowSpecifiers |
Methods inherited from interface com.borland.jbuilder.jot.JotMarker |
addUserData, getEndPosition, getStartPosition, getUserData |
Method Detail |
public void setName(java.lang.String name)
public void setReturnType(java.lang.String type)
public int getDeclaredModifiers()
Modifier
public void setModifiers(int modifiers)
Modifier
public void setParameterText(java.lang.String parameters)
"boolean foo, String bar"
.public JotParameterDeclaration addParameter(JotMarker marker, boolean before, java.lang.String type, java.lang.String value)
public void removeParameter(JotParameter param)
public JotType addThrowSpecifier(JotMarker marker, boolean before, java.lang.String type)
throws
clause of this method's declaration.public void removeThrowSpecifier(JotType spec)
public JotCodeBlock getCodeBlock()
public JotStatement[] getStatements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |