/** * Tests if a Element <code>element</code> is valid for the <code>FtLegal</code>. * * @param element * @return boolean */ public static boolean isMatch(Element element) { if (!URelaxer.isTargetElement(element, "legal")) { return (false); } RStack target = new RStack(element); boolean $match$ = false; Element child; if (RString.isMatch(target)) { $match$ = true; } while (true) { if (FtImg.isMatchHungry(target)) { $match$ = true; } else if (FtLink.isMatchHungry(target)) { $match$ = true; } else if (FtJump.isMatchHungry(target)) { $match$ = true; } else if (FtAcronym.isMatchHungry(target)) { $match$ = true; } else if (FtStrong.isMatchHungry(target)) { $match$ = true; } else if (FtCode.isMatchHungry(target)) { $match$ = true; } else if (FtSub.isMatchHungry(target)) { $match$ = true; } else if (FtSup.isMatchHungry(target)) { $match$ = true; } else if (FtEm.isMatchHungry(target)) { $match$ = true; } else if (FtBr.isMatchHungry(target)) { $match$ = true; } else if (FtIcon.isMatchHungry(target)) { $match$ = true; } else if (FtFork.isMatchHungry(target)) { $match$ = true; } else { break; } } if (!target.isEmptyElement()) { return (false); } return (true); }