Java Doc for Parser.java in  » IDE-Netbeans » visualweb.api.designer » org » apache » batik » css » parser » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.apache.batik.css.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.css.parser.Parser

All known Subclasses:   org.netbeans.modules.visualweb.designer.cssengine.RaveParser,
Parser
public class Parser implements ExtendedParser,Localizable(Code)
This class implements the org.w3c.css.sac.Parser interface.
author:
   Stephane Hillion
version:
   $Id$


Field Summary
final public static  StringBUNDLE_CLASSNAME
     The default resource bundle base name.
protected  ConditionFactoryconditionFactory
     The condition factory.
protected  intcurrent
     The current lexical unit.
protected  DocumentHandlerdocumentHandler
     The document handler.
protected  StringdocumentURI
     The document URI.
protected  ErrorHandlererrorHandler
     The error handler.
protected  LocalizableSupportlocalizableSupport
     The localizable support.
protected  StringpseudoElement
     To store the current pseudo element.
protected  Scannerscanner
     The scanner used to scan the input source.
protected  SelectorFactoryselectorFactory
     The selector factory.


Method Summary
protected  CSSParseExceptioncreateCSSParseException(String key)
     Creates a parse exception.
protected  CSSParseExceptioncreateCSSParseException(String key, Object[] params)
     Creates a parse exception.
protected  ScannercreateScanner(InputSource source)
     Creates a scanner, given an InputSource.
protected  LexicalUnitdimension(boolean positive, LexicalUnit prev)
     Converts the current lexical unit to a dimension.
public  StringformatMessage(String key, Object[] args)
     Implements org.apache.batik.i18n.Localizable.formatMessage(StringObject[]) .
public  intgetColumn()
    
public  intgetLine()
    
public  LocalegetLocale()
     Implements org.apache.batik.i18n.Localizable.getLocale .
public  StringgetParserVersion()
     SAC: Implements org.w3c.css.sac.Parser.getParserVersion .
protected  LexicalUnithexcolor(LexicalUnit prev)
     Converts a hash unit to a RGB color.
protected  booleanisPseudoElement(String s)
     Tells whether or not the given string represents a pseudo-element.
protected  intnext()
     Advances to the next token, ignoring comments.
protected  intnextIgnoreSpaces()
     Advances to the next token and skip the spaces, ignoring comments.
protected  floatnumber(boolean positive)
     Converts the current lexical unit to a float.
protected  voidparseAtRule()
     Parses an unknown rule.
protected  LexicalUnitparseExpression(boolean param)
     Parses a CSS2 expression.
protected  voidparseFontFaceRule()
     Parses a font-face rule.
protected  LexicalUnitparseFunction(boolean positive, LexicalUnit prev)
     Parses a CSS2 function.
protected  voidparseImportRule()
     Parses an import rule.
public  SACMediaListparseMedia(String mediaText)
     Implements ExtendedParser.parseMedia(String) .
protected  CSSSACMediaListparseMediaList()
     Parses a media list.
protected  voidparseMediaRule()
     Parses a media rule.
protected  voidparsePageRule()
     Parses a page rule.
public  booleanparsePriority(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parsePriority(InputSource) .
public  booleanparsePriority(String source)
     Implements ExtendedParser.parsePriority(String) .
protected  booleanparsePriorityInternal()
     Parses the priority using the current scanner.
public  LexicalUnitparsePropertyValue(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parsePropertyValue(InputSource) .
public  LexicalUnitparsePropertyValue(String source)
     Implements ExtendedParser.parsePropertyValue(String) .
protected  LexicalUnitparsePropertyValueInternal()
     Parses property value using the current scanner.
public  voidparseRule(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parseRule(InputSource) .
protected  voidparseRule()
     Parses a rule.
public  voidparseRule(String source)
     Implements ExtendedParser.parseRule(String) .
protected  voidparseRuleInternal()
     Parses a rule using the current scanner.
protected  voidparseRuleSet()
     Parses a ruleset.
protected  SelectorparseSelector()
     Parses a selector.
protected  SelectorListparseSelectorList()
    
public  SelectorListparseSelectors(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parseSelectors(InputSource) .
public  SelectorListparseSelectors(String source)
     Implements ExtendedParser.parseSelectors(String) .
protected  SelectorListparseSelectorsInternal()
     Parses selectors using the current scanner.
protected  SimpleSelectorparseSimpleSelector()
     Parses a simple selector.
public  voidparseStyleDeclaration(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parseStyleDeclaration(InputSource) .
protected  voidparseStyleDeclaration(boolean inSheet)
     Parses the given reader.
public  voidparseStyleDeclaration(String source)
     Implements ExtendedParser.parseStyleDeclaration(String) .
protected  voidparseStyleDeclarationInternal()
     Parses a style declaration using the current scanner.
public  voidparseStyleSheet(InputSource source)
     SAC: Implements org.w3c.css.sac.Parser.parseStyleSheet(InputSource) .
public  voidparseStyleSheet(String uri)
     SAC: Implements org.w3c.css.sac.Parser.parseStyleSheet(String) .
protected  LexicalUnitparseTerm(LexicalUnit prev)
     Parses a CSS2 term.
protected  voidreportError(String key)
     Reports a parsing error.
protected  voidreportError(String key, Object[] params)
     Reports a parsing error.
protected  voidreportError(CSSParseException e)
     Reports a parsing error.
public  voidsetConditionFactory(ConditionFactory factory)
     SAC: Implements org.w3c.css.sac.Parser.setConditionFactory(ConditionFactory) .
public  voidsetDocumentHandler(DocumentHandler handler)
     SAC: Implements org.w3c.css.sac.Parser.setDocumentHandler(DocumentHandler) .
public  voidsetErrorHandler(ErrorHandler handler)
     SAC: Implements org.w3c.css.sac.Parser.setErrorHandler(ErrorHandler) .
public  voidsetLocale(Locale locale)
     SAC: Implements org.w3c.css.sac.Parser.setLocale(Locale) .
public  voidsetSelectorFactory(SelectorFactory factory)
     SAC: Implements org.w3c.css.sac.Parser.setSelectorFactory(SelectorFactory) .
protected  intskipSpaces()
     Skips the white spaces.
protected  intskipSpacesAndCDOCDC()
     Skips the white spaces and CDO/CDC units.

Field Detail
BUNDLE_CLASSNAME
final public static String BUNDLE_CLASSNAME(Code)
The default resource bundle base name.



conditionFactory
protected ConditionFactory conditionFactory(Code)
The condition factory.



current
protected int current(Code)
The current lexical unit.



documentHandler
protected DocumentHandler documentHandler(Code)
The document handler.



documentURI
protected String documentURI(Code)
The document URI.



errorHandler
protected ErrorHandler errorHandler(Code)
The error handler.



localizableSupport
protected LocalizableSupport localizableSupport(Code)
The localizable support.



pseudoElement
protected String pseudoElement(Code)
To store the current pseudo element.



scanner
protected Scanner scanner(Code)
The scanner used to scan the input source.



selectorFactory
protected SelectorFactory selectorFactory(Code)
The selector factory.





Method Detail
createCSSParseException
protected CSSParseException createCSSParseException(String key)(Code)
Creates a parse exception.



createCSSParseException
protected CSSParseException createCSSParseException(String key, Object[] params)(Code)
Creates a parse exception.



createScanner
protected Scanner createScanner(InputSource source)(Code)
Creates a scanner, given an InputSource.



dimension
protected LexicalUnit dimension(boolean positive, LexicalUnit prev)(Code)
Converts the current lexical unit to a dimension.



formatMessage
public String formatMessage(String key, Object[] args) throws MissingResourceException(Code)
Implements org.apache.batik.i18n.Localizable.formatMessage(StringObject[]) .



getColumn
public int getColumn()(Code)



getLine
public int getLine()(Code)



getLocale
public Locale getLocale()(Code)
Implements org.apache.batik.i18n.Localizable.getLocale .



getParserVersion
public String getParserVersion()(Code)
SAC: Implements org.w3c.css.sac.Parser.getParserVersion . "http://www.w3.org/TR/REC-CSS2".



hexcolor
protected LexicalUnit hexcolor(LexicalUnit prev)(Code)
Converts a hash unit to a RGB color.



isPseudoElement
protected boolean isPseudoElement(String s)(Code)
Tells whether or not the given string represents a pseudo-element.



next
protected int next()(Code)
Advances to the next token, ignoring comments.



nextIgnoreSpaces
protected int nextIgnoreSpaces()(Code)
Advances to the next token and skip the spaces, ignoring comments.



number
protected float number(boolean positive)(Code)
Converts the current lexical unit to a float.



parseAtRule
protected void parseAtRule()(Code)
Parses an unknown rule.



parseExpression
protected LexicalUnit parseExpression(boolean param)(Code)
Parses a CSS2 expression.
Parameters:
  lex - The type of the current lexical unit.



parseFontFaceRule
protected void parseFontFaceRule()(Code)
Parses a font-face rule.



parseFunction
protected LexicalUnit parseFunction(boolean positive, LexicalUnit prev)(Code)
Parses a CSS2 function.



parseImportRule
protected void parseImportRule()(Code)
Parses an import rule. Assumes the current token is '@import'.



parseMedia
public SACMediaList parseMedia(String mediaText) throws CSSException, IOException(Code)
Implements ExtendedParser.parseMedia(String) .



parseMediaList
protected CSSSACMediaList parseMediaList()(Code)
Parses a media list.



parseMediaRule
protected void parseMediaRule()(Code)
Parses a media rule.



parsePageRule
protected void parsePageRule()(Code)
Parses a page rule.



parsePriority
public boolean parsePriority(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parsePriority(InputSource) .



parsePriority
public boolean parsePriority(String source) throws CSSException, IOException(Code)
Implements ExtendedParser.parsePriority(String) .



parsePriorityInternal
protected boolean parsePriorityInternal() throws CSSException, IOException(Code)
Parses the priority using the current scanner.



parsePropertyValue
public LexicalUnit parsePropertyValue(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parsePropertyValue(InputSource) .



parsePropertyValue
public LexicalUnit parsePropertyValue(String source) throws CSSException, IOException(Code)
Implements ExtendedParser.parsePropertyValue(String) .



parsePropertyValueInternal
protected LexicalUnit parsePropertyValueInternal() throws CSSException, IOException(Code)
Parses property value using the current scanner.



parseRule
public void parseRule(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parseRule(InputSource) .



parseRule
protected void parseRule()(Code)
Parses a rule.



parseRule
public void parseRule(String source) throws CSSException, IOException(Code)
Implements ExtendedParser.parseRule(String) .



parseRuleInternal
protected void parseRuleInternal() throws CSSException, IOException(Code)
Parses a rule using the current scanner.



parseRuleSet
protected void parseRuleSet()(Code)
Parses a ruleset.



parseSelector
protected Selector parseSelector()(Code)
Parses a selector.



parseSelectorList
protected SelectorList parseSelectorList()(Code)
Parses a selector list



parseSelectors
public SelectorList parseSelectors(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parseSelectors(InputSource) .



parseSelectors
public SelectorList parseSelectors(String source) throws CSSException, IOException(Code)
Implements ExtendedParser.parseSelectors(String) .



parseSelectorsInternal
protected SelectorList parseSelectorsInternal() throws CSSException, IOException(Code)
Parses selectors using the current scanner.



parseSimpleSelector
protected SimpleSelector parseSimpleSelector()(Code)
Parses a simple selector.



parseStyleDeclaration
public void parseStyleDeclaration(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parseStyleDeclaration(InputSource) .



parseStyleDeclaration
protected void parseStyleDeclaration(boolean inSheet) throws CSSException(Code)
Parses the given reader.



parseStyleDeclaration
public void parseStyleDeclaration(String source) throws CSSException, IOException(Code)
Implements ExtendedParser.parseStyleDeclaration(String) .



parseStyleDeclarationInternal
protected void parseStyleDeclarationInternal() throws CSSException, IOException(Code)
Parses a style declaration using the current scanner.



parseStyleSheet
public void parseStyleSheet(InputSource source) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parseStyleSheet(InputSource) .



parseStyleSheet
public void parseStyleSheet(String uri) throws CSSException, IOException(Code)
SAC: Implements org.w3c.css.sac.Parser.parseStyleSheet(String) .



parseTerm
protected LexicalUnit parseTerm(LexicalUnit prev)(Code)
Parses a CSS2 term.



reportError
protected void reportError(String key)(Code)
Reports a parsing error.



reportError
protected void reportError(String key, Object[] params)(Code)
Reports a parsing error.



reportError
protected void reportError(CSSParseException e)(Code)
Reports a parsing error.



setConditionFactory
public void setConditionFactory(ConditionFactory factory)(Code)
SAC: Implements org.w3c.css.sac.Parser.setConditionFactory(ConditionFactory) .



setDocumentHandler
public void setDocumentHandler(DocumentHandler handler)(Code)
SAC: Implements org.w3c.css.sac.Parser.setDocumentHandler(DocumentHandler) .



setErrorHandler
public void setErrorHandler(ErrorHandler handler)(Code)
SAC: Implements org.w3c.css.sac.Parser.setErrorHandler(ErrorHandler) .



setLocale
public void setLocale(Locale locale) throws CSSException(Code)
SAC: Implements org.w3c.css.sac.Parser.setLocale(Locale) .



setSelectorFactory
public void setSelectorFactory(SelectorFactory factory)(Code)
SAC: Implements org.w3c.css.sac.Parser.setSelectorFactory(SelectorFactory) .



skipSpaces
protected int skipSpaces()(Code)
Skips the white spaces.



skipSpacesAndCDOCDC
protected int skipSpacesAndCDOCDC()(Code)
Skips the white spaces and CDO/CDC units.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.