public class Method extends AbstractParent implements java.lang.Cloneable
| Constructor and Description |
|---|
Method(SourceModel model,
int firstLine,
java.lang.String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
clone() |
SourceModel |
getModel()
Return the root model.
|
java.lang.String |
getName()
Return the method name.
|
Parent |
getParent()
Return null.
|
java.util.SortedMap<java.lang.Integer,java.util.List<Var>> |
getVars()
Return the variable declarations.
|
java.lang.String |
toString() |
addBlock, addComment, addSentence, addVar, getBlocks, getChildrenElements, getFirstLine, getLastLine, getReturnLine, getSentences, isComment, setFirstLine, setLastLine, setReturnLineequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountBlocks, getBlock, getContent, isBeforeReturnLine, lastBlockpublic Method(SourceModel model, int firstLine, java.lang.String name)
model - the source modelfirstLine - the first linename - the method namepublic Parent getParent()
public SourceModel getModel()
public Method clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String getName()
public java.util.SortedMap<java.lang.Integer,java.util.List<Var>> getVars()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence