Class org.as2lib.regexp.node.GroupHead

Description

GroupHead saves the location where the group begins in the locals and restores them when the match is done. The matchRef is used when a reference to this group is accessed later in the expression. The locals will have a negative value in them to indicate that we do not want to unset the group if the reference doesn't match.

Method Index

new GroupHead()
getLocalIndex(), match(), matchRef()

Inherited from Node

Inherited from BasicClass

Constructor Detail

GroupHead

public function GroupHead(localCount: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

matchRef

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

getLocalIndex

public function getLocalIndex(Void):Number