1 21 package au.id.jericho.lib.html; 22 23 final class StartTagTypeMasonNamedBlock extends StartTagTypeGenericImplementation { 24 protected static final StartTagTypeMasonNamedBlock INSTANCE=new StartTagTypeMasonNamedBlock(); 25 26 private StartTagTypeMasonNamedBlock() { 27 super("mason named block","<%",">",EndTagTypeMasonNamedBlock.INSTANCE,true,false,true); 28 } 29 30 protected Tag constructTagAt(final Source source, final int pos) { 31 final Tag tag=super.constructTagAt(source,pos); 32 if (tag==null) return null; 33 if (source.charAt(tag.getEnd()-2)=='%') return null; if (source.findNextEndTag(tag.getEnd(),tag.getName(),getCorrespondingEndTagType())==null) return null; 36 return tag; 37 } 38 } 39 | Popular Tags |