in scala/runtime/matching
class PatternGrammar

abstract class PatternGrammar()
extends ImmutableTreeHedgeGrammar[TestAlphabet]
with ScalaObject

runtime representation of patterns. This class augments scala.util.grammar.TreeHedgeGrammar, with an abstract representation of variable bindings. Variables are simply consecutive integers, following pre-order of occurrence in pattern
CaseVars:
an array, field i holding the number of variables in case i

Field Summary
abstract val vars: Array[Int]

Method Summary
  def isSequenceType: Boolean
abstract def test(test: Int, inp: Any): Boolean

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/util/grammar/ImmutableTreeHedgeGrammar-class
hedgeInitials, hedgeTransitions, isNullable, nHedgeNT, nTreeNT, treeInitials, treeTransitions

Field Detail

vars

  abstract val vars: Array[Int]
Method Detail

test

  abstract def test(test: Int, inp: Any): Boolean

isSequenceType

  def isSequenceType: Boolean