public final class TypeFileParser extends AbstractFileParser
| Modifier and Type | Field and Description |
|---|---|
private RouterSoftware |
rs
The associated RouterSoftware.
|
private AbstractTypeState |
state
the state of this parser.
|
private java.util.Map<java.lang.String,java.util.ArrayList<TempTypeExtension>> |
tempextensionsMap
The List of TypExtensions.
|
private TempTypeExtension |
tTE
Temporary Object, which is used to fill the final object when every information is collected.
|
private TempVariableType |
tVT
Temporary Object, which is used to fill the final object when every information is collected.
|
private TypeFile |
typeFile
The final AssignmentFile.
|
private java.util.Map<java.lang.String,NamedVariableType> |
variableTypeList
List of VariableTypes.
|
| Constructor and Description |
|---|
TypeFileParser(RouterSoftware rs,
Buffer<AbstractSymbol> buffer)
The TypeFileParser will automatically generate a TypeFile after instantiation which can be
obtained via getTypeFile().
|
| Modifier and Type | Method and Description |
|---|---|
private NamedVariableType |
createNVT(java.lang.String name,
RegEx expression,
java.lang.String errorMessage,
Position position)
yet another totally senseless function for PMD to be quiet.
|
java.util.Map<java.lang.String,java.util.ArrayList<TempTypeExtension>> |
getExtensionsMap() |
private AbstractTypeState |
getState() |
TempTypeExtension |
gettTE() |
TypeFile |
getTypeFile()
Returns the desired Type File which is automatically created right after instantiation.
|
private java.util.Map<java.lang.String,NamedVariableType> |
getVariableTypeList() |
private TypeFile |
parse() |
void |
setState(AbstractTypeState state) |
getBuffer, getComments, isFinished, setComments, setFinishedprivate final RouterSoftware rs
private transient AbstractTypeState state
private final transient TempVariableType tVT
private final transient TempTypeExtension tTE
private final transient java.util.Map<java.lang.String,NamedVariableType> variableTypeList
private final transient TypeFile typeFile
private final transient java.util.Map<java.lang.String,java.util.ArrayList<TempTypeExtension>> tempextensionsMap
public TypeFileParser(RouterSoftware rs, Buffer<AbstractSymbol> buffer) throws java.lang.InterruptedException, ParserException
rs - The RouterSoftware to use.buffer - BufferParserException - Parser Exceptionjava.lang.InterruptedException - InterruptedExceptionprivate TypeFile parse() throws java.lang.InterruptedException, ParserException
java.lang.InterruptedException - InterruptedExceptionParserException - ParserExceptionprivate NamedVariableType createNVT(java.lang.String name, RegEx expression, java.lang.String errorMessage, Position position)
name - nameexpression - expressionerrorMessage - errorMessageposition - positionprivate AbstractTypeState getState()
public void setState(AbstractTypeState state)
state - the state to setprivate java.util.Map<java.lang.String,NamedVariableType> getVariableTypeList()
public TypeFile getTypeFile()
public java.util.Map<java.lang.String,java.util.ArrayList<TempTypeExtension>> getExtensionsMap()
public TempTypeExtension gettTE()