Class SimpleFormatParser
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.parser.SimpleFormatParser
-
- All Implemented Interfaces:
Parser
,Serializable
,scala.Equals
,scala.Product
public class SimpleFormatParser extends Object implements Parser, scala.Product, Serializable
Parser of a table in simple format.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SimpleFormatParser.Pair
class
SimpleFormatParser.Pair$
-
Constructor Summary
Constructors Constructor Description SimpleFormatParser(boolean permissive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleFormatParser
apply()
String
getCleanLine(String line)
scala.Option<String>
getKey(String line)
int
getKeyLength(String line)
scala.collection.immutable.Seq<SimpleFormatParser.Pair>
getMultiLines(BufferedReader input)
PrimitiveTypeValue
getTypedValue(String key, String value, CompositeType tableType, PrefixMap prefixMap, int lineCounter)
scala.Option<String>
getValue(String line)
boolean
hasKey(String line, String key)
boolean
isMultiLine(String line)
scala.util.Try<TableMapImpl>
parse(Reader input)
TableMapImpl
parseMap(BufferedReader input)
PrefixMap
parsePrefixMap(String line, int lineCounter)
CompositeTypeImpl
parseTypes(String line, int lineCounter)
boolean
permissive()
SimpleFormatParser.Pair
readMultiLine(BufferedReader input, int lineCounter0)
-
-
-
Method Detail
-
apply
public static SimpleFormatParser apply()
-
permissive
public boolean permissive()
-
getKeyLength
public int getKeyLength(String line)
-
parseTypes
public CompositeTypeImpl parseTypes(String line, int lineCounter)
-
getTypedValue
public PrimitiveTypeValue getTypedValue(String key, String value, CompositeType tableType, PrefixMap prefixMap, int lineCounter)
-
isMultiLine
public boolean isMultiLine(String line)
-
readMultiLine
public SimpleFormatParser.Pair readMultiLine(BufferedReader input, int lineCounter0)
-
getMultiLines
public scala.collection.immutable.Seq<SimpleFormatParser.Pair> getMultiLines(BufferedReader input)
-
parseMap
public TableMapImpl parseMap(BufferedReader input)
-
parse
public scala.util.Try<TableMapImpl> parse(Reader input)
-
-