|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.cst.CSTParserBlock
public class CSTParserBlock
Creates a CST node by parsing a text representing a MTL statement : 'for', 'if'...
| Field Summary | |
|---|---|
protected Sequence |
pElse
To parse a 'else' sequence in the text. |
protected SequenceBlock |
pElseIf
To parse a 'else if' block in the text. |
protected SequenceBlock |
pElseLet
To parse a 'else let' block in the text. |
protected SequenceBlock |
pExpression
To parse an OCL expression in the text. |
protected SequenceBlock |
pFile
To parse a 'file' block in the text. |
protected SequenceBlock |
pFor
To parse a 'for' block in the text. |
protected SequenceBlock |
pIf
To parse a 'if' block in the text. |
protected SequenceBlock |
pLet
To parse a 'let' block in the text. |
protected CSTParser |
pMTL
The main parser. |
protected SequenceBlock |
pProtectedArea
To parse a 'protected area' block in the text. |
protected SequenceBlock |
pTrace
To parse a 'trace' block in the text. |
protected MTLSourceBuffer |
source
The source buffer to parse. |
| Constructor Summary | |
|---|---|
CSTParserBlock(CSTParser pMTL)
Constructor. |
|
| Method Summary | |
|---|---|
void |
parse(int posBegin,
int posEnd,
Block eBlock)
Reads the text and creates a new 'block' in the CST model. |
void |
parseExpressionHeader(int posBegin,
int posEnd,
ModelExpression eModelExpression)
Reads the information of the 'expression' header in the text, and modifies the properties of the current CST node. |
void |
parseFileBody(int posBegin,
int posEnd,
FileBlock eFile)
Reads the information of the 'file' body in the text, and modifies the children of the current CST node. |
void |
parseFileHeader(int posBegin,
int posEnd,
FileBlock eFile)
Reads the information of the 'file' header in the text, and modifies the properties of the current CST node. |
void |
parseForBody(int posBegin,
int posEnd,
ForBlock eFor)
Reads the information of the 'for' body in the text, and modifies the children of the current CST node. |
void |
parseForHeader(int posBegin,
int posEnd,
ForBlock eFor)
Reads the information of the 'for' header in the text, and modifies the properties of the current CST node. |
void |
parseIfBody(int posBegin,
int posEnd,
IfBlock eIf)
Reads the information of the 'if' body in the text, and modifies the children of the current CST node. |
void |
parseIfHeader(int posBegin,
int posEnd,
IfBlock eIf)
Reads the information of the 'if' header in the text, and modifies the properties of the current CST node. |
void |
parseLetBody(int posBegin,
int posEnd,
LetBlock eLet)
Reads the information of the 'let' body in the text, and modifies the children of the current CST node. |
void |
parseLetHeader(int posBegin,
int posEnd,
LetBlock eLet)
Reads the information of the 'let' header in the text, and modifies the properties of the current CST node. |
void |
parseProtectedAreaBody(int posBegin,
int posEnd,
ProtectedAreaBlock eProtectedArea)
Reads the information of the 'protected area' body in the text, and modifies the children of the current CST node. |
void |
parseProtectedAreaHeader(int posBegin,
int posEnd,
ProtectedAreaBlock eProtectedArea)
Reads the information of the 'protected area' header in the text, and modifies the properties of the current CST node. |
void |
parseTraceBody(int posBegin,
int posEnd,
TraceBlock eTrace)
Reads the information of the 'trace' body in the text, and modifies the children of the current CST node. |
void |
parseTraceHeader(int posBegin,
int posEnd,
TraceBlock eTrace)
Reads the information of the 'trace' header in the text, and modifies the properties of the current CST node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CSTParser pMTL
protected SequenceBlock pTrace
protected SequenceBlock pFile
protected SequenceBlock pFor
protected SequenceBlock pIf
protected SequenceBlock pElseIf
protected Sequence pElse
protected SequenceBlock pLet
protected SequenceBlock pElseLet
protected SequenceBlock pProtectedArea
protected SequenceBlock pExpression
protected MTLSourceBuffer source
| Constructor Detail |
|---|
public CSTParserBlock(CSTParser pMTL)
pMTL - is the main parser| Method Detail |
|---|
public void parse(int posBegin,
int posEnd,
Block eBlock)
posBegin - is the beginning indexposEnd - is the ending indexeBlock - will be the parent of the new block to create
public void parseFileHeader(int posBegin,
int posEnd,
FileBlock eFile)
posBegin - is the beginning indexposEnd - is the ending indexeFile - is the current object of the CST model, it will be modified in this method
public void parseFileBody(int posBegin,
int posEnd,
FileBlock eFile)
posBegin - is the beginning indexposEnd - is the ending indexeFile - is the current object of the CST model, it will be modified in this method
public void parseForHeader(int posBegin,
int posEnd,
ForBlock eFor)
posBegin - is the beginning indexposEnd - is the ending indexeFor - is the current object of the CST model, it will be modified in this method
public void parseForBody(int posBegin,
int posEnd,
ForBlock eFor)
posBegin - is the beginning indexposEnd - is the ending indexeFor - is the current object of the CST model, it will be modified in this method
public void parseIfHeader(int posBegin,
int posEnd,
IfBlock eIf)
posBegin - is the beginning indexposEnd - is the ending indexeIf - is the current object of the CST model, it will be modified in this method
public void parseIfBody(int posBegin,
int posEnd,
IfBlock eIf)
posBegin - is the beginning indexposEnd - is the ending indexeIf - is the current object of the CST model, it will be modified in this method
public void parseLetHeader(int posBegin,
int posEnd,
LetBlock eLet)
posBegin - is the beginning indexposEnd - is the ending indexeLet - is the current object of the CST model, it will be modified in this method
public void parseLetBody(int posBegin,
int posEnd,
LetBlock eLet)
posBegin - is the beginning indexposEnd - is the ending indexeLet - is the current object of the CST model, it will be modified in this method
public void parseTraceHeader(int posBegin,
int posEnd,
TraceBlock eTrace)
posBegin - is the beginning indexposEnd - is the ending indexeTrace - is the current object of the CST model, it will be modified in this method
public void parseTraceBody(int posBegin,
int posEnd,
TraceBlock eTrace)
posBegin - is the beginning indexposEnd - is the ending indexeTrace - is the current object of the CST model, it will be modified in this method
public void parseProtectedAreaHeader(int posBegin,
int posEnd,
ProtectedAreaBlock eProtectedArea)
posBegin - is the beginning indexposEnd - is the ending indexeProtectedArea - is the current object of the CST model, it will be modified in this method
public void parseProtectedAreaBody(int posBegin,
int posEnd,
ProtectedAreaBlock eProtectedArea)
posBegin - is the beginning indexposEnd - is the ending indexeProtectedArea - is the current object of the CST model, it will be modified in this method
public void parseExpressionHeader(int posBegin,
int posEnd,
ModelExpression eModelExpression)
posBegin - is the beginning indexposEnd - is the ending indexeModelExpression - is the current object of the CST model, it will be modified in this method
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||