Class org.as2lib.regexp.node.LazyLoop

Description

LazyLoop handles the repetition count for a reluctant Curly. The matchInit is called from the Prolog to save the index of where the group beginning is stored. A zero length group check occurs in the normal match but is skipped in the matchInit.

Method Index

new LazyLoop()
match(), matchInit(), study()

Inherited from Loop

Inherited from Node

Inherited from BasicClass

Constructor Detail

LazyLoop

public function LazyLoop(countIndex:Number, beginIndex:Number)

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.Loop

matchInit

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

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.Loop