org.w3c.css.sac_1.3.1.v200903091627

16:50:50.646 INFO  jd.cli.Main - Decompiling org.w3c.css.sac_1.3.1.v200903091627.jar
package org.w3c.css.sac;

public abstract interface AttributeCondition
  extends Condition
{
  public abstract String getNamespaceURI();
  
  public abstract String getLocalName();
  
  public abstract boolean getSpecified();
  
  public abstract String getValue();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.AttributeCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public class CSSException
  extends RuntimeException
{
  protected String s;
  public static final short SAC_UNSPECIFIED_ERR = 0;
  public static final short SAC_NOT_SUPPORTED_ERR = 1;
  public static final short SAC_SYNTAX_ERR = 2;
  protected static final String S_SAC_UNSPECIFIED_ERR = "unknown error";
  protected static final String S_SAC_NOT_SUPPORTED_ERR = "not supported";
  protected static final String S_SAC_SYNTAX_ERR = "syntax error";
  protected Exception e;
  protected short code;
  
  public CSSException() {}
  
  public CSSException(String paramString)
  {
    code = 0;
    s = paramString;
  }
  
  public CSSException(Exception paramException)
  {
    code = 0;
    e = paramException;
  }
  
  public CSSException(short paramShort)
  {
    code = paramShort;
  }
  
  public CSSException(short paramShort, String paramString, Exception paramException)
  {
    code = paramShort;
    s = paramString;
    e = paramException;
  }
  
  public String getMessage()
  {
    if (s != null) {
      return s;
    }
    if (e != null) {
      return e.getMessage();
    }
    switch (code)
    {
    case 0: 
      return "unknown error";
    case 1: 
      return "not supported";
    case 2: 
      return "syntax error";
    }
    return null;
  }
  
  public short getCode()
  {
    return code;
  }
  
  public Exception getException()
  {
    return e;
  }
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.CSSException
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public class CSSParseException
  extends CSSException
{
  private String uri;
  private int lineNumber;
  private int columnNumber;
  
  public CSSParseException(String paramString, Locator paramLocator)
  {
    super(paramString);
    code = 2;
    uri = paramLocator.getURI();
    lineNumber = paramLocator.getLineNumber();
    columnNumber = paramLocator.getColumnNumber();
  }
  
  public CSSParseException(String paramString, Locator paramLocator, Exception paramException)
  {
    super((short)2, paramString, paramException);
    uri = paramLocator.getURI();
    lineNumber = paramLocator.getLineNumber();
    columnNumber = paramLocator.getColumnNumber();
  }
  
  public CSSParseException(String paramString1, String paramString2, int paramInt1, int paramInt2)
  {
    super(paramString1);
    code = 2;
    uri = paramString2;
    lineNumber = paramInt1;
    columnNumber = paramInt2;
  }
  
  public CSSParseException(String paramString1, String paramString2, int paramInt1, int paramInt2, Exception paramException)
  {
    super((short)2, paramString1, paramException);
    uri = paramString2;
    lineNumber = paramInt1;
    columnNumber = paramInt2;
  }
  
  public String getURI()
  {
    return uri;
  }
  
  public int getLineNumber()
  {
    return lineNumber;
  }
  
  public int getColumnNumber()
  {
    return columnNumber;
  }
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.CSSParseException
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface CharacterDataSelector
  extends SimpleSelector
{
  public abstract String getData();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.CharacterDataSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface CombinatorCondition
  extends Condition
{
  public abstract Condition getFirstCondition();
  
  public abstract Condition getSecondCondition();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.CombinatorCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface Condition
{
  public static final short SAC_AND_CONDITION = 0;
  public static final short SAC_OR_CONDITION = 1;
  public static final short SAC_NEGATIVE_CONDITION = 2;
  public static final short SAC_POSITIONAL_CONDITION = 3;
  public static final short SAC_ATTRIBUTE_CONDITION = 4;
  public static final short SAC_ID_CONDITION = 5;
  public static final short SAC_LANG_CONDITION = 6;
  public static final short SAC_ONE_OF_ATTRIBUTE_CONDITION = 7;
  public static final short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION = 8;
  public static final short SAC_CLASS_CONDITION = 9;
  public static final short SAC_PSEUDO_CLASS_CONDITION = 10;
  public static final short SAC_ONLY_CHILD_CONDITION = 11;
  public static final short SAC_ONLY_TYPE_CONDITION = 12;
  public static final short SAC_CONTENT_CONDITION = 13;
  
  public abstract short getConditionType();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.Condition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ConditionFactory
{
  public abstract CombinatorCondition createAndCondition(Condition paramCondition1, Condition paramCondition2)
    throws CSSException;
  
  public abstract CombinatorCondition createOrCondition(Condition paramCondition1, Condition paramCondition2)
    throws CSSException;
  
  public abstract NegativeCondition createNegativeCondition(Condition paramCondition)
    throws CSSException;
  
  public abstract PositionalCondition createPositionalCondition(int paramInt, boolean paramBoolean1, boolean paramBoolean2)
    throws CSSException;
  
  public abstract AttributeCondition createAttributeCondition(String paramString1, String paramString2, boolean paramBoolean, String paramString3)
    throws CSSException;
  
  public abstract AttributeCondition createIdCondition(String paramString)
    throws CSSException;
  
  public abstract LangCondition createLangCondition(String paramString)
    throws CSSException;
  
  public abstract AttributeCondition createOneOfAttributeCondition(String paramString1, String paramString2, boolean paramBoolean, String paramString3)
    throws CSSException;
  
  public abstract AttributeCondition createBeginHyphenAttributeCondition(String paramString1, String paramString2, boolean paramBoolean, String paramString3)
    throws CSSException;
  
  public abstract AttributeCondition createClassCondition(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract AttributeCondition createPseudoClassCondition(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract Condition createOnlyChildCondition()
    throws CSSException;
  
  public abstract Condition createOnlyTypeCondition()
    throws CSSException;
  
  public abstract ContentCondition createContentCondition(String paramString)
    throws CSSException;
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ConditionFactory
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ConditionalSelector
  extends SimpleSelector
{
  public abstract SimpleSelector getSimpleSelector();
  
  public abstract Condition getCondition();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ConditionalSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ContentCondition
  extends Condition
{
  public abstract String getData();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ContentCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface DescendantSelector
  extends Selector
{
  public abstract Selector getAncestorSelector();
  
  public abstract SimpleSelector getSimpleSelector();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.DescendantSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface DocumentHandler
{
  public abstract void startDocument(InputSource paramInputSource)
    throws CSSException;
  
  public abstract void endDocument(InputSource paramInputSource)
    throws CSSException;
  
  public abstract void comment(String paramString)
    throws CSSException;
  
  public abstract void ignorableAtRule(String paramString)
    throws CSSException;
  
  public abstract void namespaceDeclaration(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract void importStyle(String paramString1, SACMediaList paramSACMediaList, String paramString2)
    throws CSSException;
  
  public abstract void startMedia(SACMediaList paramSACMediaList)
    throws CSSException;
  
  public abstract void endMedia(SACMediaList paramSACMediaList)
    throws CSSException;
  
  public abstract void startPage(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract void endPage(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract void startFontFace()
    throws CSSException;
  
  public abstract void endFontFace()
    throws CSSException;
  
  public abstract void startSelector(SelectorList paramSelectorList)
    throws CSSException;
  
  public abstract void endSelector(SelectorList paramSelectorList)
    throws CSSException;
  
  public abstract void property(String paramString, LexicalUnit paramLexicalUnit, boolean paramBoolean)
    throws CSSException;
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.DocumentHandler
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ElementSelector
  extends SimpleSelector
{
  public abstract String getNamespaceURI();
  
  public abstract String getLocalName();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ElementSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ErrorHandler
{
  public abstract void warning(CSSParseException paramCSSParseException)
    throws CSSException;
  
  public abstract void error(CSSParseException paramCSSParseException)
    throws CSSException;
  
  public abstract void fatalError(CSSParseException paramCSSParseException)
    throws CSSException;
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ErrorHandler
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

import java.io.InputStream;
import java.io.Reader;

public class InputSource
{
  private String uri;
  private InputStream byteStream;
  private String encoding;
  private Reader characterStream;
  private String title;
  private String media;
  
  public InputSource() {}
  
  public InputSource(String paramString)
  {
    setURI(paramString);
  }
  
  public InputSource(Reader paramReader)
  {
    setCharacterStream(paramReader);
  }
  
  public void setURI(String paramString)
  {
    uri = paramString;
  }
  
  public String getURI()
  {
    return uri;
  }
  
  public void setByteStream(InputStream paramInputStream)
  {
    byteStream = paramInputStream;
  }
  
  public InputStream getByteStream()
  {
    return byteStream;
  }
  
  public void setEncoding(String paramString)
  {
    encoding = paramString;
  }
  
  public String getEncoding()
  {
    return encoding;
  }
  
  public void setCharacterStream(Reader paramReader)
  {
    characterStream = paramReader;
  }
  
  public Reader getCharacterStream()
  {
    return characterStream;
  }
  
  public void setTitle(String paramString)
  {
    title = paramString;
  }
  
  public String getTitle()
  {
    return title;
  }
  
  public void setMedia(String paramString)
  {
    media = paramString;
  }
  
  public String getMedia()
  {
    if (media == null) {
      return "all";
    }
    return media;
  }
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.InputSource
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface LangCondition
  extends Condition
{
  public abstract String getLang();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.LangCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface LexicalUnit
{
  public static final short SAC_OPERATOR_COMMA = 0;
  public static final short SAC_OPERATOR_PLUS = 1;
  public static final short SAC_OPERATOR_MINUS = 2;
  public static final short SAC_OPERATOR_MULTIPLY = 3;
  public static final short SAC_OPERATOR_SLASH = 4;
  public static final short SAC_OPERATOR_MOD = 5;
  public static final short SAC_OPERATOR_EXP = 6;
  public static final short SAC_OPERATOR_LT = 7;
  public static final short SAC_OPERATOR_GT = 8;
  public static final short SAC_OPERATOR_LE = 9;
  public static final short SAC_OPERATOR_GE = 10;
  public static final short SAC_OPERATOR_TILDE = 11;
  public static final short SAC_INHERIT = 12;
  public static final short SAC_INTEGER = 13;
  public static final short SAC_REAL = 14;
  public static final short SAC_EM = 15;
  public static final short SAC_EX = 16;
  public static final short SAC_PIXEL = 17;
  public static final short SAC_INCH = 18;
  public static final short SAC_CENTIMETER = 19;
  public static final short SAC_MILLIMETER = 20;
  public static final short SAC_POINT = 21;
  public static final short SAC_PICA = 22;
  public static final short SAC_PERCENTAGE = 23;
  public static final short SAC_URI = 24;
  public static final short SAC_COUNTER_FUNCTION = 25;
  public static final short SAC_COUNTERS_FUNCTION = 26;
  public static final short SAC_RGBCOLOR = 27;
  public static final short SAC_DEGREE = 28;
  public static final short SAC_GRADIAN = 29;
  public static final short SAC_RADIAN = 30;
  public static final short SAC_MILLISECOND = 31;
  public static final short SAC_SECOND = 32;
  public static final short SAC_HERTZ = 33;
  public static final short SAC_KILOHERTZ = 34;
  public static final short SAC_IDENT = 35;
  public static final short SAC_STRING_VALUE = 36;
  public static final short SAC_ATTR = 37;
  public static final short SAC_RECT_FUNCTION = 38;
  public static final short SAC_UNICODERANGE = 39;
  public static final short SAC_SUB_EXPRESSION = 40;
  public static final short SAC_FUNCTION = 41;
  public static final short SAC_DIMENSION = 42;
  
  public abstract short getLexicalUnitType();
  
  public abstract LexicalUnit getNextLexicalUnit();
  
  public abstract LexicalUnit getPreviousLexicalUnit();
  
  public abstract int getIntegerValue();
  
  public abstract float getFloatValue();
  
  public abstract String getDimensionUnitText();
  
  public abstract String getFunctionName();
  
  public abstract LexicalUnit getParameters();
  
  public abstract String getStringValue();
  
  public abstract LexicalUnit getSubValues();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.LexicalUnit
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface Locator
{
  public abstract String getURI();
  
  public abstract int getLineNumber();
  
  public abstract int getColumnNumber();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.Locator
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface NegativeCondition
  extends Condition
{
  public abstract Condition getCondition();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.NegativeCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface NegativeSelector
  extends SimpleSelector
{
  public abstract SimpleSelector getSimpleSelector();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.NegativeSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

import java.io.IOException;
import java.util.Locale;

public abstract interface Parser
{
  public abstract void setLocale(Locale paramLocale)
    throws CSSException;
  
  public abstract void setDocumentHandler(DocumentHandler paramDocumentHandler);
  
  public abstract void setSelectorFactory(SelectorFactory paramSelectorFactory);
  
  public abstract void setConditionFactory(ConditionFactory paramConditionFactory);
  
  public abstract void setErrorHandler(ErrorHandler paramErrorHandler);
  
  public abstract void parseStyleSheet(InputSource paramInputSource)
    throws CSSException, IOException;
  
  public abstract void parseStyleSheet(String paramString)
    throws CSSException, IOException;
  
  public abstract void parseStyleDeclaration(InputSource paramInputSource)
    throws CSSException, IOException;
  
  public abstract void parseRule(InputSource paramInputSource)
    throws CSSException, IOException;
  
  public abstract String getParserVersion();
  
  public abstract SelectorList parseSelectors(InputSource paramInputSource)
    throws CSSException, IOException;
  
  public abstract LexicalUnit parsePropertyValue(InputSource paramInputSource)
    throws CSSException, IOException;
  
  public abstract boolean parsePriority(InputSource paramInputSource)
    throws CSSException, IOException;
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.Parser
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface PositionalCondition
  extends Condition
{
  public abstract int getPosition();
  
  public abstract boolean getTypeNode();
  
  public abstract boolean getType();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.PositionalCondition
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface ProcessingInstructionSelector
  extends SimpleSelector
{
  public abstract String getTarget();
  
  public abstract String getData();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.ProcessingInstructionSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface SACMediaList
{
  public abstract int getLength();
  
  public abstract String item(int paramInt);
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.SACMediaList
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface Selector
{
  public static final short SAC_CONDITIONAL_SELECTOR = 0;
  public static final short SAC_ANY_NODE_SELECTOR = 1;
  public static final short SAC_ROOT_NODE_SELECTOR = 2;
  public static final short SAC_NEGATIVE_SELECTOR = 3;
  public static final short SAC_ELEMENT_NODE_SELECTOR = 4;
  public static final short SAC_TEXT_NODE_SELECTOR = 5;
  public static final short SAC_CDATA_SECTION_NODE_SELECTOR = 6;
  public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR = 7;
  public static final short SAC_COMMENT_NODE_SELECTOR = 8;
  public static final short SAC_PSEUDO_ELEMENT_SELECTOR = 9;
  public static final short SAC_DESCENDANT_SELECTOR = 10;
  public static final short SAC_CHILD_SELECTOR = 11;
  public static final short SAC_DIRECT_ADJACENT_SELECTOR = 12;
  
  public abstract short getSelectorType();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.Selector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface SelectorFactory
{
  public abstract ConditionalSelector createConditionalSelector(SimpleSelector paramSimpleSelector, Condition paramCondition)
    throws CSSException;
  
  public abstract SimpleSelector createAnyNodeSelector()
    throws CSSException;
  
  public abstract SimpleSelector createRootNodeSelector()
    throws CSSException;
  
  public abstract NegativeSelector createNegativeSelector(SimpleSelector paramSimpleSelector)
    throws CSSException;
  
  public abstract ElementSelector createElementSelector(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract CharacterDataSelector createTextNodeSelector(String paramString)
    throws CSSException;
  
  public abstract CharacterDataSelector createCDataSectionSelector(String paramString)
    throws CSSException;
  
  public abstract ProcessingInstructionSelector createProcessingInstructionSelector(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract CharacterDataSelector createCommentSelector(String paramString)
    throws CSSException;
  
  public abstract ElementSelector createPseudoElementSelector(String paramString1, String paramString2)
    throws CSSException;
  
  public abstract DescendantSelector createDescendantSelector(Selector paramSelector, SimpleSelector paramSimpleSelector)
    throws CSSException;
  
  public abstract DescendantSelector createChildSelector(Selector paramSelector, SimpleSelector paramSimpleSelector)
    throws CSSException;
  
  public abstract SiblingSelector createDirectAdjacentSelector(short paramShort, Selector paramSelector, SimpleSelector paramSimpleSelector)
    throws CSSException;
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.SelectorFactory
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface SelectorList
{
  public abstract int getLength();
  
  public abstract Selector item(int paramInt);
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.SelectorList
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface SiblingSelector
  extends Selector
{
  public static final short ANY_NODE = 201;
  
  public abstract short getNodeType();
  
  public abstract Selector getSelector();
  
  public abstract SimpleSelector getSiblingSelector();
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.SiblingSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac;

public abstract interface SimpleSelector
  extends Selector
{}

/* Location:
 * Qualified Name:     org.w3c.css.sac.SimpleSelector
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
package org.w3c.css.sac.helpers;

import org.w3c.css.sac.Parser;

public class ParserFactory
{
  public Parser makeParser()
    throws ClassNotFoundException, IllegalAccessException, InstantiationException, NullPointerException, ClassCastException
  {
    String str = System.getProperty("org.w3c.css.sac.parser");
    if (str == null) {
      throw new NullPointerException("No value for sac.parser property");
    }
    return (Parser)Class.forName(str).newInstance();
  }
}

/* Location:
 * Qualified Name:     org.w3c.css.sac.helpers.ParserFactory
 * Java Class Version: 1.1 (45.3)
 * JD-Core Version:    0.7.1
 */
1

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


Copyright 2006-2017. Infinite Loop Ltd