trait ByteCodeReader extends RulesWithState
Provides rules for parsing byte-code.
- Source
- ClassFileParser.scala
- Alphabetic
- By Inheritance
- ByteCodeReader
- RulesWithState
- StateRules
- Rules
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- class DefaultRule[In, Out, A, X] extends Rule[In, Out, A, X]
- Definition Classes
- Rules
- trait FromRule[In] extends AnyRef
- Definition Classes
- Rules
- type Parser[A] = rules.Rule[S, S, A, String]
- type Rule[+A, +X] = rules.Rule[S, S, A, X]
- Definition Classes
- StateRules
- type S = ByteCode
- Definition Classes
- ByteCodeReader → StateRules
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toany2stringadd[ByteCodeReader] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ByteCodeReader, B)
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toArrowAssoc[ByteCodeReader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allOf[A, X](rules: Seq[Rule[A, X]]): (S) => Result[S, List[A], X]
Create a rule that succeeds if all of the given rules succeed.
Create a rule that succeeds if all of the given rules succeed.
- rules
the rules to apply in sequence.
- Definition Classes
- StateRules
- def anyOf[A, X](rules: Seq[Rule[A, X]]): rules.Rule[S, S, collection.immutable.List[A], X]
Create a rule that succeeds with a list of all the provided rules that succeed.
Create a rule that succeeds with a list of all the provided rules that succeed.
- rules
the rules to apply in sequence.
- Definition Classes
- StateRules
- def apply[A, X](f: (S) => Result[S, A, X]): rules.Rule[S, S, A, X]
- Definition Classes
- StateRules
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val byte: rules.Rule[S, S, Byte, Nothing]
- def bytes(n: Int): rules.Rule[S, S, ByteCode, Nothing]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cond(f: (S) => Boolean): rules.Rule[S, S, S, Nothing]
Create a rule that identities if f(in) is true.
Create a rule that identities if f(in) is true.
- Definition Classes
- StateRules
- def ensuring(cond: (ByteCodeReader) => Boolean, msg: => Any): ByteCodeReader
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toEnsuring[ByteCodeReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ByteCodeReader) => Boolean): ByteCodeReader
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toEnsuring[ByteCodeReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ByteCodeReader
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toEnsuring[ByteCodeReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ByteCodeReader
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toEnsuring[ByteCodeReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error[X](err: X): rules.Rule[Any, Nothing, Nothing, X]
- Definition Classes
- Rules
- def error[In]: rules.Rule[In, Nothing, Nothing, In]
- Definition Classes
- Rules
- def expect[In, Out, A, R](rule: rules.Rule[In, Out, A, R]): (In) => A
Converts a rule into a function that throws an Exception on failure.
Converts a rule into a function that throws an Exception on failure.
- Definition Classes
- Rules
- val factory: RulesWithState
- Definition Classes
- RulesWithState → StateRules
- def failure: rules.Rule[Any, Nothing, Nothing, Nothing]
- Definition Classes
- Rules
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toStringFormat[ByteCodeReader] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- def from[In]: FromRule[In]
- Definition Classes
- Rules
- def get: rules.Rule[S, S, S, Nothing]
- Definition Classes
- StateRules
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit def inRule[In, Out, A, X](rule: rules.Rule[In, Out, A, X]): InRule[In, Out, A, X]
- Definition Classes
- Rules
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nil: rules.Rule[S, S, collection.immutable.Nil.type, Nothing]
- Definition Classes
- StateRules
- def none: rules.Rule[S, S, None.type, Nothing]
- Definition Classes
- StateRules
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def oneOf[In, Out, A, X](rules: rules.Rule[In, Out, A, X]*): rules.Rule[In, Out, A, X]
- Definition Classes
- Rules
- def read[A](f: (S) => A): rules.Rule[S, S, A, Nothing]
- Definition Classes
- StateRules
- def repeatUntil[T, X](rule: Rule[(T) => T, X])(finished: (T) => Boolean)(initial: T): rules.Rule[S, S, T, X]
Repeatedly apply a rule from initial value until finished condition is met.
Repeatedly apply a rule from initial value until finished condition is met.
- Definition Classes
- StateRules
- implicit def rule[In, Out, A, X](f: (In) => Result[Out, A, X]): rules.Rule[In, Out, A, X]
- Definition Classes
- Rules
- def ruleWithName[In, Out, A, X](_name: String, f: (In) => Result[Out, A, X]): rules.Rule[In, Out, A, X] with Name
- Definition Classes
- Rules
- implicit def seqRule[In, A, X](rule: rules.Rule[In, In, A, X]): SeqRule[In, A, X]
- Definition Classes
- Rules
- def set(s: => S): rules.Rule[S, S, S, Nothing]
- Definition Classes
- StateRules
- def state[s]: StateRules { type S = s }
- Definition Classes
- Rules
- def success[Out, A](out: Out, a: A): rules.Rule[Any, Out, A, Nothing]
- Definition Classes
- Rules
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val u1: rules.Rule[S, S, Int, Nothing]
- val u2: rules.Rule[S, S, Int, Nothing]
- val u4: rules.Rule[S, S, Int, Nothing]
- def unit[A](a: => A): rules.Rule[S, S, A, Nothing]
- Definition Classes
- StateRules
- def update(f: (S) => S): rules.Rule[S, S, S, Nothing]
- Definition Classes
- StateRules
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (ByteCodeReader, B)
- Implicit
- This member is added by an implicit conversion from ByteCodeReader toArrowAssoc[ByteCodeReader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.