javax.swing.text.html.parser
Class ContentModel
java.lang.Object
|
+--javax.swing.text.html.parser.ContentModel
- All Implemented Interfaces:
- Serializable
- public final class ContentModel
- extends Object
- implements Serializable
Untamed:
- See Also:
- Serialized Form
Field Summary
ContentModel
next
Enabled: The next content model (in a ',', '|' or '&' expression).
Constructor Summary
Method Summary
boolean
empty()
Enabled: Return true if the content model could
match an empty input stream.
Element
first()
Enabled: Return the element that must be next.
boolean
first(Object token)
Enabled: Return true if the token could potentially be the
first token in the input stream.
void
getElements(Vector elemVec)
Enabled: Update elemVec with the list of elements that are
part of the this contentModel.
Methods inherited from class java.lang.Object
Field Detail
type
public int type
- Enabled: Type. Either '*', '?', '+', ',', '|', '&'.
content
public Object content
- Enabled: The content. Either an Element or a ContentModel.
next
public ContentModel next
- Enabled: The next content model (in a ',', '|' or '&' expression).
valSet
private boolean[] valSet
val
private boolean[] val
Constructor Detail
ContentModel
public ContentModel()
- Enabled:
ContentModel
public ContentModel(Element content)
- Enabled: Create a content model for an element.
ContentModel
public ContentModel(int type,
ContentModel content)
- Enabled: Create a content model of a particular type.
ContentModel
public ContentModel(int type,
Object content,
ContentModel next)
- Enabled: Create a content model of a particular type.
Method Detail
empty
public boolean empty()
- Enabled: Return true if the content model could
match an empty input stream.
-
-
getElements
public void getElements(Vector elemVec)
- Enabled: Update elemVec with the list of elements that are
part of the this contentModel.
-
-
first
public boolean first(Object token)
- Enabled: Return true if the token could potentially be the
first token in the input stream.
-
-
first
public Element first()
- Enabled: Return the element that must be next.
-
-
toString
public String toString()
- Suppressed: Convert to a string.
- Overrides:
toString in class Object
- Returns:
- a string representation of the object.