|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.isi.stella.Stella_Object edu.isi.stella.StandardObject edu.isi.stella.TokenizerToken
public class TokenizerToken
Field Summary | |
---|---|
java.lang.String |
content
|
TokenizerToken |
next
|
Keyword |
type
|
Constructor Summary | |
---|---|
TokenizerToken()
|
Method Summary | |
---|---|
static Stella_Object |
accessTokenizerTokenSlotValue(TokenizerToken self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
static TokenizerToken |
newTokenizerToken()
|
Surrogate |
primaryType()
Returns the primary type of self . |
static Stella_Object |
xmlTokenListToSExpression(TokenizerToken tokenlist,
XmlDoctype doctype,
boolean doctypeDefinitionP)
Convert the XML tokenlist (using doctype for guidance) into a
representative s-expression and return the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Keyword type
public java.lang.String content
public TokenizerToken next
Constructor Detail |
---|
public TokenizerToken()
Method Detail |
---|
public static TokenizerToken newTokenizerToken()
public static Stella_Object xmlTokenListToSExpression(TokenizerToken tokenlist, XmlDoctype doctype, boolean doctypeDefinitionP)
tokenlist
(using doctype
for guidance) into a
representative s-expression and return the result. The doctype
argument is
currently only used for expansion of entity references. It can be 'null'. The
flag doctypeDefinitionP
should be true only when processing the DTD definition
of a DOCTYPE tag, since it enables substitution of parameter entity values.
Every XML tag is represented as a cons-list starting with the tag as its header, followed by a possibly empty list of keyword value pairs representing tag attributes, followed by a possibly empty list of content expressions which might themselves be XML expressions. For example, the expression
<a a1=v1 a2='v2'> foo <b a3=v3/> bar </a>
becomes
(<a> (<a1> "v1" <a2> "v2") "foo" (<b> (<a3> "v3")) "bar")
when represented as an s-expression. The tag names are subtypes of XML-OBJECT such as XML-ELEMENT, XML-LOCAL-ATTRIBUTE, XML-GLOBAL-ATTRIBUTE, etc. ?, ! and [ prefixed tags are encoded as their own subtypes of XML-OBJECT, namely XML-PROCESSING-INSTRUCTION, XML-DECLARATION, XML-SPECIAL, XML-COMMENT, etc. CDATA is an XML-SPECIAL tag with a name of CDATA.
The name is available using class accessors.
tokenlist
- doctype
- doctypeDefinitionP
-
public static Stella_Object accessTokenizerTokenSlotValue(TokenizerToken self, Symbol slotname, Stella_Object value, boolean setvalueP)
public Surrogate primaryType()
Stella_Object
self
.
Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType
in class Stella_Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |