Class org.as2lib.regexp.node.Curly

Description

Curly class handles the curly-brace style repetition with a specified minimum and maximum occurrences. The * quantifier is handled as a special case. This class handles the three types.

Method Index

new Curly()
getAtom(), getCmax(), getCmin(), getType(), match(), study()

Inherited from Node

Inherited from BasicClass

Constructor Detail

Curly

public function Curly(node:Node, cmin:Number, cmax:Number, type: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.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

getType

public function getType(Void):Number

getAtom

public function getAtom(Void):Node

getCmin

public function getCmin(Void):Number

getCmax

public function getCmax(Void):Number