| Modifier and Type | Field and Description |
|---|---|
protected java.util.SortedMap<java.lang.Integer,Block> |
blocks
The blocks.
|
protected java.util.SortedMap<java.lang.Integer,ChildElement> |
children
The children elements.
|
protected java.util.Set<java.lang.Integer> |
comments
The sentences.
|
protected java.util.SortedMap<java.lang.Integer,Sentence> |
sentences
The sentences.
|
protected java.util.SortedMap<java.lang.Integer,java.util.List<Var>> |
vars
The variable declarations.
|
| Constructor and Description |
|---|
AbstractParent(int firstLine)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(Block block)
Add a block.
|
void |
addComment(int lineNumber)
Add a comment.
|
void |
addSentence(Sentence sentence)
Add a sentence.
|
void |
addVar(Var var)
Add a variable declaration.
|
java.util.SortedMap<java.lang.Integer,Block> |
getBlocks()
Return the blocks.
|
java.util.SortedMap<java.lang.Integer,ChildElement> |
getChildrenElements()
Return the children elements.
|
int |
getFirstLine()
Return the block first line.
|
int |
getLastLine()
Return the last line of the block.
|
int |
getReturnLine()
Return the return line of the block.
|
java.util.SortedMap<java.lang.Integer,Sentence> |
getSentences()
Return the sentences.
|
boolean |
isComment(int lineNumber)
Return true if there is a comment on a line.
|
void |
setFirstLine(int firstLine)
Set the first line.
|
void |
setLastLine(int lastLine)
Set the last line of the block.
|
void |
setReturnLine(int returnLine)
Set the return line of the block.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountBlocks, getBlock, getContent, getModel, getParent, getVars, isBeforeReturnLine, lastBlockprotected final java.util.SortedMap<java.lang.Integer,Block> blocks
protected final java.util.SortedMap<java.lang.Integer,Sentence> sentences
protected final java.util.SortedMap<java.lang.Integer,ChildElement> children
protected final java.util.Set<java.lang.Integer> comments
protected final java.util.SortedMap<java.lang.Integer,java.util.List<Var>> vars
public AbstractParent(int firstLine)
firstLine - the first linepublic void setFirstLine(int firstLine)
setFirstLine in interface ParentfirstLine - the first linepublic int getFirstLine()
getFirstLine in interface Parentpublic void setReturnLine(int returnLine)
setReturnLine in interface ParentreturnLine - the return line of the blockpublic int getReturnLine()
getReturnLine in interface Parentpublic void setLastLine(int lastLine)
setLastLine in interface ParentlastLine - the last line of the blockpublic int getLastLine()
getLastLine in interface Parentpublic void addBlock(Block block)
public void addSentence(Sentence sentence)
addSentence in interface Parentsentence - the sentencepublic java.util.SortedMap<java.lang.Integer,ChildElement> getChildrenElements()
getChildrenElements in interface Parentpublic java.util.SortedMap<java.lang.Integer,Sentence> getSentences()
getSentences in interface Parentpublic void addComment(int lineNumber)
addComment in interface ParentlineNumber - the line numberpublic boolean isComment(int lineNumber)
public java.util.SortedMap<java.lang.Integer,Block> getBlocks()
Copyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence