![]() |
![]() |
selenium-server-standalone-2.42.2lumn++; } } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, 0); } void TokenLexicalActions(Token matchedToken) { switch (jjmatchedKind) { case 4: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 0); break; case 5: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 0); break; case 6: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 0); break; case 7: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 0); break; case 8: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 0); break; case 24: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 1, 1); break; case 26: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimUrl(image); break; case 33: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 34: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 35: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 36: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 37: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 38: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 39: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 40: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 2); break; case 41: image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); image = trimBy(image, 0, 1); break; } } private void jjCheckNAdd(int state) { if (jjrounds[state] != jjround) { jjstateSet[(jjnewStateCnt++)] = state; jjrounds[state] = jjround; } } private void jjAddStates(int start, int end) { do { jjstateSet[(jjnewStateCnt++)] = jjnextStates[start]; } while (start++ != end); } private void jjCheckNAddTwoStates(int state1, int state2) { jjCheckNAdd(state1); jjCheckNAdd(state2); } private void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); } } /* Location: * Qualified Name: com.steadystate.css.parser.SACParserCSSmobileOKBasic1TokenManager * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SelectorList; public class SelectorListImpl extends LocatableImpl implements SelectorList, Serializable { private static final long serialVersionUID = 7313376916207026333L; private List<Selector> selectors_ = new ArrayList(10); public List<Selector> getSelectors() { return selectors_; } public void setSelectors(List<Selector> selectors) { selectors_ = selectors; } public int getLength() { return selectors_.size(); } public Selector item(int index) { return (Selector)selectors_.get(index); } public void add(Selector sel) { selectors_.add(sel); } public String toString() { StringBuilder sb = new StringBuilder(); int len = getLength(); for (int i = 0; i < len; i++) { sb.append(item(i).toString()); if (i < len - 1) { sb.append(", "); } } return sb.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.SelectorListImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser; import java.io.Serializable; public class Token implements Serializable { private static final long serialVersionUID = 1L; public int kind; public int beginLine; public int beginColumn; public int endLine; public int endColumn; public String image; public Token next; public Token specialToken; public Object getValue() { return null; } public Token() {} public Token(int kind) { this(kind, null); } public Token(int kind, String image) { this.kind = kind; this.image = image; } public String toString() { return image; } public static Token newToken(int ofKind, String image) { switch (ofKind) { } return new Token(ofKind, image); } public static Token newToken(int ofKind) { return newToken(ofKind, null); } } /* Location: * Qualified Name: com.steadystate.css.parser.Token * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser; public class TokenMgrError extends Error { private static final long serialVersionUID = 1L; static final int LEXICAL_ERROR = 0; static final int STATIC_LEXER_ERROR = 1; static final int INVALID_LEXICAL_STATE = 2; static final int LOOP_DETECTED = 3; int errorCode; protected static final String addEscapes(String str) { StringBuffer retval = new StringBuffer(); for (int i = 0; i < str.length(); i++) { switch (str.charAt(i)) { case '\000': break; case '\b': retval.append("\\b"); break; case '\t': retval.append("\\t"); break; case '\n': retval.append("\\n"); break; case '\f': retval.append("\\f"); break; case '\r': retval.append("\\r"); break; case '"': retval.append("\\\""); break; case '\'': retval.append("\\'"); break; case '\\': retval.append("\\\\"); break; default: char ch; if (((ch = str.charAt(i)) < ' ') || (ch > '~')) { String s = "0000" + Integer.toString(ch, 16); retval.append("\\u" + s.substring(s.length() - 4, s.length())); } else { retval.append(ch); } break; } } return retval.toString(); } protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { return "Lexical error at line " + errorLine + ", column " + errorColumn + ". Encountered: " + (EOFSeen ? "<EOF> " : new StringBuilder().append("\"").append(addEscapes(String.valueOf(curChar))).append("\"").append(" (").append(curChar).append("), ").toString()) + "after : \"" + addEscapes(errorAfter) + "\""; } public String getMessage() { return super.getMessage(); } public TokenMgrError() {} public TokenMgrError(String message, int reason) { super(message); errorCode = reason; } public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) { this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason); } } /* Location: * Qualified Name: com.steadystate.css.parser.TokenMgrError * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.CombinatorCondition; import org.w3c.css.sac.Condition; public class AndConditionImpl extends LocatableImpl implements CombinatorCondition, Serializable { private static final long serialVersionUID = -3180583860092672742L; private Condition firstCondition_; private Condition secondCondition_; public void setFirstCondition(Condition c1) { firstCondition_ = c1; if ((c1 instanceof Locatable)) { setLocator(((Locatable)c1).getLocator()); } else if (c1 == null) { setLocator(null); } } public void setSecondCondition(Condition c2) { secondCondition_ = c2; } public AndConditionImpl(Condition c1, Condition c2) { setFirstCondition(c1); setSecondCondition(c2); } public short getConditionType() { return 0; } public Condition getFirstCondition() { return firstCondition_; } public Condition getSecondCondition() { return secondCondition_; } public String toString() { return getFirstCondition().toString() + getSecondCondition().toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.AndConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class AttributeConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = 9035418830958954213L; private String localName_; private String value_; private boolean specified_; public void setLocaleName(String localName) { localName_ = localName; } public void setValue(String value) { value_ = value; } public void setSpecified(boolean specified) { specified_ = specified; } public AttributeConditionImpl(String localName, String value, boolean specified) { setLocaleName(localName); setValue(value); setSpecified(specified); } public short getConditionType() { return 4; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public boolean getSpecified() { return specified_; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "[" + getLocalName() + "=\"" + value + "\"]"; } return "[" + getLocalName() + "]"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.AttributeConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class BeginHyphenAttributeConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = 6552118983276681650L; private String localName_; private String value_; private boolean specified_; public void setLocaleName(String localName) { localName_ = localName; } public void setValue(String value) { value_ = value; } public void setSpecified(boolean specified) { specified_ = specified; } public BeginHyphenAttributeConditionImpl(String localName, String value, boolean specified) { setLocaleName(localName); setValue(value); setSpecified(specified); } public short getConditionType() { return 8; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public boolean getSpecified() { return specified_; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "[" + getLocalName() + "|=\"" + value + "\"]"; } return "[" + getLocalName() + "]"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.BeginHyphenAttributeConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.CharacterDataSelector; public class CharacterDataSelectorImpl extends LocatableImpl implements CharacterDataSelector, Serializable { private static final long serialVersionUID = 4635511567927852889L; private String data_; public void setData(String data) { data_ = data; } public CharacterDataSelectorImpl(String data) { setData(data); } public short getSelectorType() { return 6; } public String getData() { return data_; } public String toString() { return getData(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.CharacterDataSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.DescendantSelector; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SimpleSelector; public class ChildSelectorImpl extends LocatableImpl implements DescendantSelector, Serializable { private static final long serialVersionUID = -5843289529637921083L; private Selector ancestorSelector_; private SimpleSelector simpleSelector_; public void setAncestorSelector(Selector ancestorSelector) { ancestorSelector_ = ancestorSelector; if ((ancestorSelector instanceof Locatable)) { setLocator(((Locatable)ancestorSelector).getLocator()); } else if (ancestorSelector == null) { setLocator(null); } } public void setSimpleSelector(SimpleSelector simpleSelector) { simpleSelector_ = simpleSelector; } public ChildSelectorImpl(Selector parent, SimpleSelector simpleSelector) { setAncestorSelector(parent); setSimpleSelector(simpleSelector); } public short getSelectorType() { return 11; } public Selector getAncestorSelector() { return ancestorSelector_; } public SimpleSelector getSimpleSelector() { return simpleSelector_; } public String toString() { return ancestorSelector_.toString() + " > " + simpleSelector_.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.ChildSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class ClassConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = -2216489300949054242L; private String value_; public void setValue(String value) { value_ = value; } public ClassConditionImpl(String value) { setValue(value); } public short getConditionType() { return 9; } public String getNamespaceURI() { return null; } public String getLocalName() { return null; } public boolean getSpecified() { return true; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "." + value; } return "."; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.ClassConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import org.w3c.css.sac.AttributeCondition; import org.w3c.css.sac.CSSException; import org.w3c.css.sac.CombinatorCondition; import org.w3c.css.sac.Condition; import org.w3c.css.sac.ConditionFactory; import org.w3c.css.sac.ContentCondition; import org.w3c.css.sac.LangCondition; import org.w3c.css.sac.NegativeCondition; import org.w3c.css.sac.PositionalCondition; public class ConditionFactoryImpl implements ConditionFactory { public CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException { return new AndConditionImpl(first, second); } public CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException { throw new CSSException((short)1); } public NegativeCondition createNegativeCondition(Condition condition) throws CSSException { throw new CSSException((short)1); } public PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException { throw new CSSException((short)1); } public AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new AttributeConditionImpl(localName, value, specified); } public AttributeCondition createIdCondition(String value) throws CSSException { return new IdConditionImpl(value); } public LangCondition createLangCondition(String lang) throws CSSException { return new LangConditionImpl(lang); } public AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new OneOfAttributeConditionImpl(localName, value, specified); } public AttributeCondition createBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new BeginHyphenAttributeConditionImpl(localName, value, specified); } public AttributeCondition createPrefixAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new PrefixAttributeConditionImpl(localName, value, specified); } public AttributeCondition createSuffixAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new SuffixAttributeConditionImpl(localName, value, specified); } public AttributeCondition createSubstringAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new SubstringAttributeConditionImpl(localName, value, specified); } public AttributeCondition createClassCondition(String namespaceURI, String value) throws CSSException { return new ClassConditionImpl(value); } public AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws CSSException { return new PseudoClassConditionImpl(value); } public Condition createOnlyChildCondition() throws CSSException { throw new CSSException((short)1); } public Condition createOnlyTypeCondition() throws CSSException { throw new CSSException((short)1); } public ContentCondition createContentCondition(String data) throws CSSException { throw new CSSException((short)1); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.ConditionFactoryImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.Condition; import org.w3c.css.sac.ConditionalSelector; import org.w3c.css.sac.SimpleSelector; public class ConditionalSelectorImpl extends LocatableImpl implements ConditionalSelector, Serializable { private static final long serialVersionUID = 7217145899707580586L; private SimpleSelector simpleSelector_; private Condition condition_; public void setSimpleSelector(SimpleSelector simpleSelector) { simpleSelector_ = simpleSelector; if ((simpleSelector instanceof Locatable)) { setLocator(((Locatable)simpleSelector).getLocator()); } else if (simpleSelector == null) { setLocator(null); } } public void setCondition(Condition condition) { condition_ = condition; if (getLocator() == null) { if ((condition instanceof Locatable)) { setLocator(((Locatable)condition).getLocator()); } else if (condition == null) { setLocator(null); } } } public ConditionalSelectorImpl(SimpleSelector simpleSelector, Condition condition) { setSimpleSelector(simpleSelector); setCondition(condition); } public short getSelectorType() { return 0; } public SimpleSelector getSimpleSelector() { return simpleSelector_; } public Condition getCondition() { return condition_; } public String toString() { return simpleSelector_.toString() + condition_.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.ConditionalSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.DescendantSelector; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SimpleSelector; public class DescendantSelectorImpl extends LocatableImpl implements DescendantSelector, Serializable { private static final long serialVersionUID = -3620467847449531232L; private Selector ancestorSelector_; private SimpleSelector simpleSelector_; public void setAncestorSelector(Selector ancestorSelector) { ancestorSelector_ = ancestorSelector; if ((ancestorSelector instanceof Locatable)) { setLocator(((Locatable)ancestorSelector).getLocator()); } else if (ancestorSelector == null) { setLocator(null); } } public void setSimpleSelector(SimpleSelector simpleSelector) { simpleSelector_ = simpleSelector; } public DescendantSelectorImpl(Selector parent, SimpleSelector simpleSelector) { setAncestorSelector(parent); setSimpleSelector(simpleSelector); } public short getSelectorType() { return 10; } public Selector getAncestorSelector() { return ancestorSelector_; } public SimpleSelector getSimpleSelector() { return simpleSelector_; } public String toString() { StringBuilder result = new StringBuilder(getAncestorSelector().toString()); if (9 == getSimpleSelector().getSelectorType()) { result.append(':'); } else { result.append(' '); } result.append(getSimpleSelector().toString()); return result.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.DescendantSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SiblingSelector; import org.w3c.css.sac.SimpleSelector; public class DirectAdjacentSelectorImpl extends LocatableImpl implements SiblingSelector, Serializable { private static final long serialVersionUID = -7328602345833826516L; private short nodeType_; private Selector selector_; private SimpleSelector siblingSelector_; public void setNodeType(short nodeType) { nodeType_ = nodeType; } public void setSelector(Selector child) { selector_ = child; if ((child instanceof Locatable)) { setLocator(((Locatable)child).getLocator()); } else if (child == null) { setLocator(null); } } public void setSiblingSelector(SimpleSelector directAdjacent) { siblingSelector_ = directAdjacent; } public DirectAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent) { setNodeType(nodeType); setSelector(child); setSiblingSelector(directAdjacent); } public short getNodeType() { return nodeType_; } public short getSelectorType() { return 12; } public Selector getSelector() { return selector_; } public SimpleSelector getSiblingSelector() { return siblingSelector_; } public String toString() { return selector_.toString() + " + " + siblingSelector_.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.DirectAdjacentSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.ElementSelector; public class ElementSelectorImpl extends LocatableImpl implements ElementSelector, Serializable { private static final long serialVersionUID = 7507121069969409061L; private String localName_; public void setLocalName(String localName) { localName_ = localName; } public ElementSelectorImpl(String localName) { setLocalName(localName); } public short getSelectorType() { return 4; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public String toString() { return getLocalName() != null ? getLocalName() : "*"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.ElementSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.Locatable; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SiblingSelector; import org.w3c.css.sac.SimpleSelector; public class GeneralAdjacentSelectorImpl extends LocatableImpl implements SiblingSelector, Serializable { private static final long serialVersionUID = 1292704016876205605L; private short nodeType_; private Selector selector_; private SimpleSelector siblingSelector_; public void setNodeType(short nodeType) { nodeType_ = nodeType; } public void setSelector(Selector child) { selector_ = child; if ((child instanceof Locatable)) { setLocator(((Locatable)child).getLocator()); } else if (child == null) { setLocator(null); } } public void setSiblingSelector(SimpleSelector directAdjacent) { siblingSelector_ = directAdjacent; } public GeneralAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent) { setNodeType(nodeType); setSelector(child); setSiblingSelector(directAdjacent); } public short getNodeType() { return nodeType_; } public short getSelectorType() { return 1; } public Selector getSelector() { return selector_; } public SimpleSelector getSiblingSelector() { return siblingSelector_; } public String toString() { return selector_.toString() + " ~ " + siblingSelector_.toString(); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.GeneralAdjacentSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class IdConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = 5955662524656167683L; private String value_; public void setValue(String value) { value_ = value; } public IdConditionImpl(String value) { setValue(value); } public short getConditionType() { return 5; } public String getNamespaceURI() { return null; } public String getLocalName() { return null; } public boolean getSpecified() { return true; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "#" + value; } return "#"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.IdConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.LangCondition; public class LangConditionImpl extends LocatableImpl implements LangCondition, Serializable { private static final long serialVersionUID = 1701599531953055387L; private String lang_; public void setLang(String lang) { lang_ = lang; } public LangConditionImpl(String lang) { setLang(lang); } public short getConditionType() { return 6; } public String getLang() { return lang_; } public String toString() { return ":lang(" + getLang() + ")"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.LangConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class OneOfAttributeConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = -1371164446179830634L; private String localName_; private String value_; private boolean specified_; public void setLocalName(String localName) { localName_ = localName; } public void setValue(String value) { value_ = value; } public void setSpecified(boolean specified) { specified_ = specified; } public OneOfAttributeConditionImpl(String localName, String value, boolean specified) { setLocalName(localName); setValue(value); setSpecified(specified); } public short getConditionType() { return 7; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public boolean getSpecified() { return specified_; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "[" + getLocalName() + "~=\"" + value + "\"]"; } return "[" + getLocalName() + "]"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.OneOfAttributeConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class PrefixAttributeConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = -6899059242714875011L; private String localName_; private String value_; private boolean specified_; public void setLocalName(String localName) { localName_ = localName; } public void setValue(String value) { value_ = value; } public void setSpecified(boolean specified) { specified_ = specified; } public PrefixAttributeConditionImpl(String localName, String value, boolean specified) { setLocalName(localName); setValue(value); setSpecified(specified); } public short getConditionType() { return 4; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public boolean getSpecified() { return specified_; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "[" + getLocalName() + "^=\"" + value + "\"]"; } return "[" + getLocalName() + "]"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.PrefixAttributeConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class PseudoClassConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = 1798016773089155610L; private String value_; public void setValue(String value) { value_ = value; } public PseudoClassConditionImpl(String value) { setValue(value); } public short getConditionType() { return 10; } public String getNamespaceURI() { return null; } public String getLocalName() { return null; } public boolean getSpecified() { return true; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return ":" + value; } return ":"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.PseudoClassConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.ElementSelector; public class PseudoElementSelectorImpl extends LocatableImpl implements ElementSelector, Serializable { private static final long serialVersionUID = 2913936296006875268L; private String localName_; public void setLocaleName(String localName) { localName_ = localName; } public PseudoElementSelectorImpl(String localName) { setLocaleName(localName); } public short getSelectorType() { return 9; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public String toString() { return localName_; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.PseudoElementSelectorImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import org.w3c.css.sac.CSSException; import org.w3c.css.sac.CharacterDataSelector; import org.w3c.css.sac.Condition; import org.w3c.css.sac.ConditionalSelector; import org.w3c.css.sac.DescendantSelector; import org.w3c.css.sac.ElementSelector; import org.w3c.css.sac.NegativeSelector; import org.w3c.css.sac.ProcessingInstructionSelector; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SelectorFactory; import org.w3c.css.sac.SiblingSelector; import org.w3c.css.sac.SimpleSelector; public class SelectorFactoryImpl implements SelectorFactory { public ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition) throws CSSException { return new ConditionalSelectorImpl(selector, condition); } public SimpleSelector createAnyNodeSelector() throws CSSException { throw new CSSException((short)1); } public SimpleSelector createRootNodeSelector() throws CSSException { throw new CSSException((short)1); } public NegativeSelector createNegativeSelector(SimpleSelector selector) throws CSSException { throw new CSSException((short)1); } public ElementSelector createElementSelector(String namespaceURI, String localName) throws CSSException { if (namespaceURI != null) { throw new CSSException((short)1); } return new ElementSelectorImpl(localName); } public CharacterDataSelector createTextNodeSelector(String data) throws CSSException { throw new CSSException((short)1); } public CharacterDataSelector createCDataSectionSelector(String data) throws CSSException { throw new CSSException((short)1); } public ProcessingInstructionSelector createProcessingInstructionSelector(String target, String data) throws CSSException { throw new CSSException((short)1); } public CharacterDataSelector createCommentSelector(String data) throws CSSException { throw new CSSException((short)1); } public ElementSelector createPseudoElementSelector(String namespaceURI, String pseudoName) throws CSSException { if (namespaceURI != null) { throw new CSSException((short)1); } return new PseudoElementSelectorImpl(pseudoName); } public DescendantSelector createDescendantSelector(Selector parent, SimpleSelector descendant) throws CSSException { return new DescendantSelectorImpl(parent, descendant); } public DescendantSelector createChildSelector(Selector parent, SimpleSelector child) throws CSSException { return new ChildSelectorImpl(parent, child); } public SiblingSelector createDirectAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent) throws CSSException { return new DirectAdjacentSelectorImpl(nodeType, child, directAdjacent); } public SiblingSelector createGeneralAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent) throws CSSException { return new GeneralAdjacentSelectorImpl(nodeType, child, directAdjacent); } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.SelectorFactoryImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package com.steadystate.css.parser.selectors; import com.steadystate.css.parser.LocatableImpl; import java.io.Serializable; import org.w3c.css.sac.AttributeCondition; public class SubstringAttributeConditionImpl extends LocatableImpl implements AttributeCondition, Serializable { private static final long serialVersionUID = 7628763646156568710L; private String localName_; private String value_; private boolean specified_; public void setLocalName(String localName) { localName_ = localName; } public void setValue(String value) { value_ = value; } public void setSpecified(boolean specified) { specified_ = specified; } public SubstringAttributeConditionImpl(String localName, String value, boolean specified) { setLocalName(localName); setValue(value); setSpecified(specified); } public short getConditionType() { return 4; } public String getNamespaceURI() { return null; } public String getLocalName() { return localName_; } public boolean getSpecified() { return specified_; } public String getValue() { return value_; } public String toString() { String value = getValue(); if (value != null) { return "[" + getLocalName() + "*=\"" + value + "\"]"; } return "[" + getLocalName() + "]"; } } /* Location: * Qualified Name: com.steadystate.css.parser.selectors.SubstringAttributeConditionImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ pack Further reading...For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.New!JAR listings
|