Package net.sourceforge.pmd.lang.vf.ast
Class OpenTagRegister
- java.lang.Object
-
- net.sourceforge.pmd.lang.vf.ast.OpenTagRegister
-
public class OpenTagRegister extends java.lang.Object
Utility class to keep track of unclosed tags. The mechanism is rather simple. If a end tag (</x>) is encountered, it will iterate through the open tag list and it will mark the first tag named 'x' as closed. If other tags have been opened after 'x' ( <x> <y> <z> </x>) it will mark y and z as unclosed.- Author:
- Victor Bucutea
-
-
Constructor Summary
Constructors Constructor Description OpenTagRegister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
closeTag(java.lang.String closingTagName)
void
closeTag(ASTElement z)
void
openTag(ASTElement elm)
-
-
-
Method Detail
-
openTag
public void openTag(ASTElement elm)
-
closeTag
public boolean closeTag(java.lang.String closingTagName)
- Parameters:
closingTagName
-- Returns:
- true if a matching tag was found. False if no tag with this name was ever opened ( or registered )
-
closeTag
public void closeTag(ASTElement z)
-
-