1 21 24 package org.lobobrowser.html.parser; 25 26 import java.util.Set ; 27 28 class ElementInfo { 29 public final int endElementType; 30 public final boolean childElementOk; 31 public final Set stopTags; 32 public final boolean noScriptElement; 33 34 public static final int END_ELEMENT_FORBIDDEN = 0; 35 public static final int END_ELEMENT_OPTIONAL = 1; 36 public static final int END_ELEMENT_REQUIRED = 2; 37 38 42 public ElementInfo(boolean ok, int type) { 43 this.childElementOk = ok; 44 this.endElementType = type; 45 this.stopTags = null; 46 this.noScriptElement = false; 47 } 48 49 53 public ElementInfo(boolean ok, int type, Set stopTags) { 54 this.childElementOk = ok; 55 this.endElementType = type; 56 this.stopTags = stopTags; 57 this.noScriptElement = false; 58 } 59 60 public ElementInfo(boolean ok, int type, Set stopTags, boolean noScriptElement) { 61 this.childElementOk = ok; 62 this.endElementType = type; 63 this.stopTags = stopTags; 64 this.noScriptElement = noScriptElement; 65 } 66 } 67 | Popular Tags |