Where Am I? Class Hierarchy All Classes All Fields and Methods

Interface com.ibm.ivj.util.builders.MethodBuilder

public interface MethodBuilder


Method Index

getBuilderName()
Return the name of the method builder.
getSource()
Returns any source code set into the builder by the caller.
isMarkedForDeletion()
Indicate whether method is marked for deletion
markForDeletion(boolean)
Mark the method for deletion.
setSource(String)
Sets the source code into the builder.

Methods

getBuilderName
 public abstract String getBuilderName()
Return the name of the method builder. The returned name is the one supplied on the BuilderFactory.createMethodBuilder() call, or one computed from an existing method as a result of TypeBuilder.getExistingMethods(). Note, that this name is strictly used for programmer convenience in identifying the individual method builders. The actual method name used in TypeBuilder calls (eg. save(), getExistingMethodSource(...)) is determined based on the supplied method source (setSource(...)).

Returns:
java.lang.String
getSource
 public abstract String getSource()
Returns any source code set into the builder by the caller. Note, that for existing methods this is not the source code for the method currently loaded in the workspace

Returns:
java.lang.String
isMarkedForDeletion
 public abstract boolean isMarkedForDeletion()
Indicate whether method is marked for deletion

Returns:
boolean
markForDeletion
 public abstract void markForDeletion(boolean setting)
Mark the method for deletion. Note, that this does not immediately delete the method in the repository. The method is deleted when the TypeBuilder.save() is called

Parameters:
setting - boolean
setSource
 public abstract void setSource(String sourceCode)
Sets the source code into the builder. Note, that this does *not* immediately replace the source code for the method currently loaded in the workspace. The method is saved when the TypeBuilder.save() is called

Parameters:
sourceCode - java.lang.String

Where Am I? Class Hierarchy All Classes All Fields and Methods