Class org.as2lib.regexp.node.Branch

Description

Branch Handles the branching of alternations. Note this is also used for the ? quantifier to branch between the case where it matches once and where it does not occur.

Method Index

new Branch()
match(), study()

Inherited from Node

Inherited from BasicClass

Constructor Detail

Branch

public function Branch(lhs:Node, rhs:Node)

Method Detail

match

public function match(matcher:Object, i:Number, seq:String):Boolean

Description copied from Node

This method implements the classic accept node.

Overrides

match() in org.as2lib.regexp.node.Node

study

public function study(info:TreeInfo):Boolean

Description copied from Node

This method is good for all zero length assertions.

Overrides

study() in org.as2lib.regexp.node.Node