public class LBlock extends LActivity
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
LBlock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(LActivity act)
This method adds an activity to the block.
|
boolean |
equals(Object o) |
LActivity |
get(int index)
This method returns the activity at the specified
index.
|
List<LActivity> |
getContents()
This method returns the contents associated with
the block.
|
int |
hashCode() |
int |
indexOf(LActivity act)
This method returns the index of the supplied activity.
|
boolean |
remove(LActivity act)
This method removes an activity from the block.
|
int |
size()
This method returns the number of activities
in the block.
|
String |
toString() |
void |
toText(StringBuffer buf,
int level)
This method generates a text representation of the protocol component.
|
void |
visit(LVisitor visitor)
This method visits the model object using the supplied
visitor.
|
derivedFrom, getModule, getParent, getParent, getProperties, indent, setParentpublic List<LActivity> getContents()
public boolean add(LActivity act)
act - The activitypublic boolean remove(LActivity act)
act - The activitypublic int size()
public LActivity get(int index) throws IndexOutOfBoundsException
index - The index The indexIndexOutOfBoundsException - Out of boundspublic int indexOf(LActivity act)
act - The activitypublic void visit(LVisitor visitor)
public void toText(StringBuffer buf, int level)
toText in class ModelObjectbuf - The text bufferlevel - The indentation level, if relevantCopyright © 2014. All Rights Reserved.