|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--labss.generator.Parser
Fornisce due metodi alternativi per fare il parsing della code section. Il primo si basa sul design pattern Builder il secondo su Iterator. Il primo
Nested Class Summary | |
static class |
Parser.Token
Token restituito dall'iteratore. |
Field Summary | |
static int |
END_OPTIONAL_BLOCK
Codice per token di tipo fine blocco opzionale. |
static int |
SLOT_REF
Codice per token di tipo riferimento a slot. |
static int |
START_OPTIONAL_BLOCK
Codice per token di tipo inizio blocco opzionale. |
static int |
TEXT
Codice per token di tipo testo. |
Constructor Summary | |
Parser()
|
Method Summary | |
static java.util.Iterator |
parseCodeSection(java.lang.String codeSection)
Restituisce un Iterator per visitare la sequenza dei token della code section. |
static void |
parseCodeSection(java.lang.String codeSection,
ICodeBuilder builder)
Costruisce una rappresentazione della code section usando l'interfaccia del builder. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TEXT
public static final int SLOT_REF
public static final int START_OPTIONAL_BLOCK
public static final int END_OPTIONAL_BLOCK
Constructor Detail |
public Parser()
Method Detail |
public static void parseCodeSection(java.lang.String codeSection, ICodeBuilder builder)
codeSection
- Stringa code section di un framebuilder
- Builder che costruisce l'alberopublic static java.util.Iterator parseCodeSection(java.lang.String codeSection)
codeSection
- Stringa code section di un frame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |