Package Torello.CSS
Class CSSToken
- java.lang.Object
-
- Torello.CSS.CSSToken
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.CharSequence,java.lang.Comparable<java.lang.CharSequence>
- Direct Known Subclasses:
BadStr,BadURL,CDC,CDO,Comment,Delimiter,EOF,Identifier,Num,Punct,Str,UnicodeRange,URLToken,Whitespace
public abstract class CSSToken extends java.lang.Object implements java.lang.CharSequence, java.io.Serializable, java.lang.Comparable<java.lang.CharSequence>
The root abstract-parent class for all CSSToken Sub-Classes.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/CSS/CSSToken.java
- Open New Browser-Tab: Torello/CSS/CSSToken.java
File Size: 30,874 Bytes Line Count: 765 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static longserialVersionUIDPublic String-Field, This Class' only Instance-Field Modifier and Type Field Stringstr
-
Method Summary
Methods: interface java.lang.CharSequence Modifier and Type Method charcharAt(int index)intlength()StringsubSequence(int start, int end)StringtoString()Methods: interface java.lang.Comparable Modifier and Type Method intcompareTo(CharSequence other)Methods: class java.lang.Object Modifier and Type Method booleanequals(Object other)Loop Optimizer: Checks 'this' instance' Sub-Type Modifier and Type Method booleanisAtKeyword()booleanisBadStr()booleanisBadURL()booleanisCDC()booleanisCDO()booleanisComment()booleanisDelimiter()booleanisDelimiter(char c)booleanisDimension()booleanisEOF()booleanisFunc()booleanisHash()booleanisIdentifier()booleanisNum()booleanisPercentage()booleanisPunct()booleanisPunct(char c)booleanisStr()booleanisUnicodeRange()booleanisURL()booleanisWhitespace()Loop Optimizer: Casts 'this' instance to a Sub-Type Modifier and Type Method AtKeywordasAtKeyword()BadStrasBadStr()BadURLasBadURL()CDCasCDC()CDOasCDO()CommentasComment()DelimiterasDelimiter()DimensionasDimension()EOFasEOF()FuncasFunc()HashasHash()IdentifierasIdentifier()NumasNum()PercentageasPercentage()PunctasPunct()StrasStr()UnicodeRangeasUnicodeRange()URLTokenasURL()WhitespaceasWhitespace()Loop Optimizer: Checks & then Casts 'this' instance to a Sub-Type Modifier and Type Method AtKeywordifAtKeyword()BadStrifBadStr()BadURLifBadURL()CDCifCDC()CDOifCDO()CommentifComment()DelimiterifDelimiter()DelimiterifDelimiter(char c)DimensionifDimension()EOFifEOF()FuncifFunc()HashifHash()IdentifierifIdentifier()NumifNum()PercentageifPercentage()PunctifPunct()PunctifPunct(char c)StrifStr()UnicodeRangeifUnicodeRange()URLTokenifURL()WhitespaceifWhitespace()
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
protected static final long serialVersionUID = 1;
-
str
public final java.lang.String str
The "Reconstituted Character Data" (re-built from the input Code-Points array) that comprise thisCSSToken.- Code:
- Exact Field Declaration Expression:
public final String str;
-
-
Method Detail
-
charAt
public final char charAt(int index)
- Specified by:
charAtin interfacejava.lang.CharSequence
-
length
public final int length()
- Specified by:
lengthin interfacejava.lang.CharSequence
-
subSequence
public final java.lang.String subSequence(int start, int end)
- Specified by:
subSequencein interfacejava.lang.CharSequence
-
toString
public final java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.CharSequence- Overrides:
toStringin classjava.lang.Object
-
compareTo
public final int compareTo(java.lang.CharSequence other)
- Specified by:
compareToin interfacejava.lang.Comparable<java.lang.CharSequence>
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
isAtKeyword
public boolean isAtKeyword()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofAtKeyword.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theAtKeywordSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
AtKeyword.isAtKeyword()
-
isBadStr
public boolean isBadStr()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofBadStr.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theBadStrSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
BadStr.isBadStr()
-
isBadURL
public boolean isBadURL()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofBadURL.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theBadURLSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
BadURL.isBadURL()
-
isCDC
public boolean isCDC()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofCDC.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theCDCSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
CDC.isCDC()
-
isCDO
public boolean isCDO()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofCDO.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theCDOSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
CDO.isCDO()
-
isComment
public boolean isComment()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofComment.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theCommentSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Comment.isComment()
-
isDelimiter
public boolean isDelimiter()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofDelimiter.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theDelimiterSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Delimiter.isDelimiter()
-
isDelimiter
public boolean isDelimiter(char c)
Checks whether'this'instance is aDelimiterinstance.- Parameters:
c- Any Javachar.- Returns:
TRUEif'this'is a delimiter containing'c'.
-
isDimension
public boolean isDimension()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofDimension.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theDimensionSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Dimension.isDimension()
-
isEOF
public boolean isEOF()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofEOF.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theEOFSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
EOF.isEOF()
-
isFunc
public boolean isFunc()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofFunc.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theFuncSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Func.isFunc()
-
isHash
public boolean isHash()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofHash.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theHashSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Hash.isHash()
-
isIdentifier
public boolean isIdentifier()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofIdentifier.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theIdentifierSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Identifier.isIdentifier()
-
isNum
public boolean isNum()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofNum.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theNumSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Num.isNum()
-
isPercentage
public boolean isPercentage()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofPercentage.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually thePercentageSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Percentage.isPercentage()
-
isPunct
public boolean isPunct()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofPunct.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually thePunctSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Punct.isPunct()
-
isPunct
public final boolean isPunct(char c)
Checks whether'this'instance is a punctuation character- Parameters:
c- Any Javachar.- Returns:
TRUEif'this'is a punctuation of'c'.
-
isStr
public boolean isStr()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofStr.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theStrSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Str.isStr()
-
isUnicodeRange
public boolean isUnicodeRange()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofUnicodeRange.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theUnicodeRangeSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
UnicodeRange.isUnicodeRange()
-
isURL
public boolean isURL()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofURLToken.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theURLTokenSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
URLToken.isURL()
-
isWhitespace
public boolean isWhitespace()
Loop Optimization: This method only returnsTRUEif this is an actual instance ofWhitespace.- Returns:
- This method returns
FALSEfor all instances ofCSSToken, except when'this'instance is actually theWhitespaceSubclass.
That class has overridden this method, and returnsTRUE. - See Also:
Whitespace.isWhitespace()
-
asAtKeyword
public final AtKeyword asAtKeyword()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofAtKeywordNote that if this cast fails (which it must if'this'is not actually an instance ofAtKeyword), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isAtKeyword, which is the entire purpose.
-
asBadStr
public final BadStr asBadStr()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofBadStrNote that if this cast fails (which it must if'this'is not actually an instance ofBadStr), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isBadStr, which is the entire purpose.
-
asBadURL
public final BadURL asBadURL()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofBadURLNote that if this cast fails (which it must if'this'is not actually an instance ofBadURL), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isBadURL, which is the entire purpose.
-
asCDC
public final CDC asCDC()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofCDCNote that if this cast fails (which it must if'this'is not actually an instance ofCDC), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isCDC, which is the entire purpose.
-
asCDO
public final CDO asCDO()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofCDONote that if this cast fails (which it must if'this'is not actually an instance ofCDO), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isCDO, which is the entire purpose.
-
asComment
public final Comment asComment()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofCommentNote that if this cast fails (which it must if'this'is not actually an instance ofComment), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isComment, which is the entire purpose.
-
asDelimiter
public final Delimiter asDelimiter()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofDelimiterNote that if this cast fails (which it must if'this'is not actually an instance ofDelimiter), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isDelimiter, which is the entire purpose.
-
asDimension
public final Dimension asDimension()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofDimensionNote that if this cast fails (which it must if'this'is not actually an instance ofDimension), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isDimension, which is the entire purpose.
-
asEOF
public final EOF asEOF()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofEOFNote that if this cast fails (which it must if'this'is not actually an instance ofEOF), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isEOF, which is the entire purpose.
-
asFunc
public final Func asFunc()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofFuncNote that if this cast fails (which it must if'this'is not actually an instance ofFunc), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isFunc, which is the entire purpose.
-
asHash
public final Hash asHash()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofHashNote that if this cast fails (which it must if'this'is not actually an instance ofHash), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isHash, which is the entire purpose.
-
asIdentifier
public final Identifier asIdentifier()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofIdentifierNote that if this cast fails (which it must if'this'is not actually an instance ofIdentifier), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isIdentifier, which is the entire purpose.
-
asNum
public final Num asNum()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofNumNote that if this cast fails (which it must if'this'is not actually an instance ofNum), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isNum, which is the entire purpose.
-
asPercentage
public final Percentage asPercentage()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofPercentageNote that if this cast fails (which it must if'this'is not actually an instance ofPercentage), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isPercentage, which is the entire purpose.
-
asPunct
public final Punct asPunct()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofPunctNote that if this cast fails (which it must if'this'is not actually an instance ofPunct), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isPunct, which is the entire purpose.
-
asStr
public final Str asStr()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofStrNote that if this cast fails (which it must if'this'is not actually an instance ofStr), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isStr, which is the entire purpose.
-
asUnicodeRange
public final UnicodeRange asUnicodeRange()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofUnicodeRangeNote that if this cast fails (which it must if'this'is not actually an instance ofUnicodeRange), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isUnicodeRange, which is the entire purpose.
-
asURL
public final URLToken asURL()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofURLTokenNote that if this cast fails (which it must if'this'is not actually an instance ofURLToken), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isURLToken, which is the entire purpose.
-
asWhitespace
public final Whitespace asWhitespace()
Loop Optimization: This method will attempt to cast'this'instance to an instance ofWhitespaceNote that if this cast fails (which it must if'this'is not actually an instance ofWhitespace), then this method throws aClassCastException.
Note that this method is declared final, and cannot be overloaded by subclasses.- Returns:
- If this method succeeds, it means no
ClassCastExceptionhas thrown, and'this'instance is returned. Please note that the return-type of this method isWhitespace, which is the entire purpose.
-
ifAtKeyword
public AtKeyword ifAtKeyword()
Loop Optimization: When this method is invoked on an instance of sub-classAtKeywordthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofAtKeyword. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
AtKeyword.ifAtKeyword()
-
ifBadStr
public BadStr ifBadStr()
Loop Optimization: When this method is invoked on an instance of sub-classBadStrthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofBadStr. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
BadStr.ifBadStr()
-
ifBadURL
public BadURL ifBadURL()
Loop Optimization: When this method is invoked on an instance of sub-classBadURLthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofBadURL. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
BadURL.ifBadURL()
-
ifCDC
public CDC ifCDC()
Loop Optimization: When this method is invoked on an instance of sub-classCDCthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofCDC. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
CDC.ifCDC()
-
ifCDO
public CDO ifCDO()
Loop Optimization: When this method is invoked on an instance of sub-classCDOthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofCDO. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
CDO.ifCDO()
-
ifComment
public Comment ifComment()
Loop Optimization: When this method is invoked on an instance of sub-classCommentthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofComment. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Comment.ifComment()
-
ifDelimiter
public Delimiter ifDelimiter()
Loop Optimization: When this method is invoked on an instance of sub-classDelimiterthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofDelimiter. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Delimiter.ifDelimiter()
-
ifDelimiter
public final Delimiter ifDelimiter(char c)
This one actually does this cute little dance, and then and goes and makes funny faces at your mother.- Parameters:
c- The Delimiter Character.- Returns:
TRUEif and only'this'is an instance ofDelimiter, and one whoseDelimiter.cmatches parameter'c'.- See Also:
Delimiter.isDelimiter()
-
ifDimension
public Dimension ifDimension()
Loop Optimization: When this method is invoked on an instance of sub-classDimensionthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofDimension. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Dimension.ifDimension()
-
ifEOF
public EOF ifEOF()
Loop Optimization: When this method is invoked on an instance of sub-classEOFthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofEOF. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
EOF.ifEOF()
-
ifFunc
public Func ifFunc()
Loop Optimization: When this method is invoked on an instance of sub-classFuncthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofFunc. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Func.ifFunc()
-
ifHash
public Hash ifHash()
Loop Optimization: When this method is invoked on an instance of sub-classHashthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofHash. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Hash.ifHash()
-
ifIdentifier
public Identifier ifIdentifier()
Loop Optimization: When this method is invoked on an instance of sub-classIdentifierthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofIdentifier. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Identifier.ifIdentifier()
-
ifNum
public Num ifNum()
Loop Optimization: When this method is invoked on an instance of sub-classNumthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofNum. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Num.ifNum()
-
ifPercentage
public Percentage ifPercentage()
Loop Optimization: When this method is invoked on an instance of sub-classPercentagethis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofPercentage. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Percentage.ifPercentage()
-
ifPunct
public Punct ifPunct()
Loop Optimization: When this method is invoked on an instance of sub-classPunctthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofPunct. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Punct.ifPunct()
-
ifPunct
public final Punct ifPunct(char c)
This one actually does this cute little dance, and then and goes and makes funny faces at your mother.- Parameters:
c- The Punctuation Character.- Returns:
TRUEif and only'this'is an instance ofPunct, and one whosec fieldmatches parameter'c'.- See Also:
Punct.isPunct()
-
ifStr
public Str ifStr()
Loop Optimization: When this method is invoked on an instance of sub-classStrthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofStr. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Str.ifStr()
-
ifUnicodeRange
public UnicodeRange ifUnicodeRange()
Loop Optimization: When this method is invoked on an instance of sub-classUnicodeRangethis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofUnicodeRange. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
UnicodeRange.ifUnicodeRange()
-
ifURL
public URLToken ifURL()
Loop Optimization: When this method is invoked on an instance of sub-classURLTokenthis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofURLToken. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
URLToken.ifURL()
-
ifWhitespace
public Whitespace ifWhitespace()
Loop Optimization: When this method is invoked on an instance of sub-classWhitespacethis method produces'this'instance.- Returns:
- This method shall return
null, always, except when'this'is an actual instance ofWhitespace. When so, this method simply returns'this'. All other sub-classes of (abstract) classCSSTokeninherit this method, and therefore return null. - See Also:
Whitespace.ifWhitespace()
-
-