implicit final class ParseFromIO[P, +A] extends AnyRef
This class exposes a method of running parsers from a file.
This extension class operates on values that are convertible to parsers. It enables the use of
the parseFromFile method, which can be used to run a parser on the contents of a file.
- P
the type of base value that this class is used on (the conversion to
Parsley) is summoned automatically.
- Source
- io.scala
- Version
3.0.0
- Alphabetic
- By Inheritance
- ParseFromIO
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ParseFromIO(p: P)(implicit con: (P) ⇒ Parsley[A])
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- p
the value that this class is enabling methods on.
- con
a conversion that allows values convertible to parsers to be used.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parseFromFile[Err](file: File)(implicit arg0: ErrorBuilder[Err], codec: Codec): Try[Result[Err, A]]
This method executes a parser, but collects the input to the parser from the given file.
This method executes a parser, but collects the input to the parser from the given file.
The file name is used to annotate any error messages. The result of this method handles exceptions and ensures the file has been properly closed.
- file
the file to load and run against.
- codec
the encoding of the file.
- returns
a
Trycontaining a result of either a success with a value of typeAor a failure with error message on success, and a failure if an IOException occured.
- Since
3.0.0
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()