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, setReturnLine
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
countBlocks, getBlock, getContent, isBeforeReturnLine, lastBlock
public 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.Object
java.lang.CloneNotSupportedException
public 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.Object
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence