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
String
BUNDLE_CLASSNAME
The default resource bundle base name.
protected
ConditionFactory
conditionFactory
The condition factory.
protected
int
current
The current lexical unit.
protected
DocumentHandler
documentHandler
The document handler.
protected
String
documentURI
The document URI.
protected
ErrorHandler
errorHandler
The error handler.
protected
LocalizableSupport
localizableSupport
The localizable support.
protected
String
pseudoElement
To store the current pseudo element.
protected
Scanner
scanner
The scanner used to scan the input source.
protected
SelectorFactory
selectorFactory
The selector factory.
Method Summary
protected
CSSParseException
createCSSParseException
(
String
key)
Creates a parse exception.
protected
CSSParseException
createCSSParseException
(
String
key,
Object
[] params)
Creates a parse exception.
protected
Scanner
createScanner
(
InputSource
source)
Creates a scanner, given an InputSource.
protected
LexicalUnit
dimension
(boolean positive,
LexicalUnit
prev)
Converts the current lexical unit to a dimension.
public
String
formatMessage
(
String
key,
Object
[] args)
Implements
org.apache.batik.i18n.Localizable.formatMessage(StringObject[])
.
public
int
getColumn
()
public
int
getLine
()
public
Locale
getLocale
()
Implements
org.apache.batik.i18n.Localizable.getLocale
.
public
String
getParserVersion
()
SAC
: Implements
org.w3c.css.sac.Parser.getParserVersion
.
protected
LexicalUnit
hexcolor
(
LexicalUnit
prev)
Converts a hash unit to a RGB color.
protected
boolean
isPseudoElement
(
String
s)
Tells whether or not the given string represents a pseudo-element.
protected
int
next
()
Advances to the next token, ignoring comments.
protected
int
nextIgnoreSpaces
()
Advances to the next token and skip the spaces, ignoring comments.
protected
float
number
(boolean positive)
Converts the current lexical unit to a float.
protected
void
parseAtRule
()
Parses an unknown rule.
protected
LexicalUnit
parseExpression
(boolean param)
Parses a CSS2 expression.
protected
void
parseFontFaceRule
()
Parses a font-face rule.
protected
LexicalUnit
parseFunction
(boolean positive,
LexicalUnit
prev)
Parses a CSS2 function.
protected
void
parseImportRule
()
Parses an import rule.
public
SACMediaList
parseMedia
(
String
mediaText)
Implements
ExtendedParser.parseMedia(String)
.
protected
CSSSACMediaList
parseMediaList
()
Parses a media list.
protected
void
parseMediaRule
()
Parses a media rule.
protected
void
parsePageRule
()
Parses a page rule.
public
boolean
parsePriority
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parsePriority(InputSource)
.
public
boolean
parsePriority
(
String
source)
Implements
ExtendedParser.parsePriority(String)
.
protected
boolean
parsePriorityInternal
()
Parses the priority using the current scanner.
public
LexicalUnit
parsePropertyValue
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parsePropertyValue(InputSource)
.
public
LexicalUnit
parsePropertyValue
(
String
source)
Implements
ExtendedParser.parsePropertyValue(String)
.
protected
LexicalUnit
parsePropertyValueInternal
()
Parses property value using the current scanner.
public
void
parseRule
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parseRule(InputSource)
.
protected
void
parseRule
()
Parses a rule.
public
void
parseRule
(
String
source)
Implements
ExtendedParser.parseRule(String)
.
protected
void
parseRuleInternal
()
Parses a rule using the current scanner.
protected
void
parseRuleSet
()
Parses a ruleset.
protected
Selector
parseSelector
()
Parses a selector.
protected
SelectorList
parseSelectorList
()
public
SelectorList
parseSelectors
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parseSelectors(InputSource)
.
public
SelectorList
parseSelectors
(
String
source)
Implements
ExtendedParser.parseSelectors(String)
.
protected
SelectorList
parseSelectorsInternal
()
Parses selectors using the current scanner.
protected
SimpleSelector
parseSimpleSelector
()
Parses a simple selector.
public
void
parseStyleDeclaration
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parseStyleDeclaration(InputSource)
.
protected
void
parseStyleDeclaration
(boolean inSheet)
Parses the given reader.
public
void
parseStyleDeclaration
(
String
source)
Implements
ExtendedParser.parseStyleDeclaration(String)
.
protected
void
parseStyleDeclarationInternal
()
Parses a style declaration using the current scanner.
public
void
parseStyleSheet
(
InputSource
source)
SAC
: Implements
org.w3c.css.sac.Parser.parseStyleSheet(InputSource)
.
public
void
parseStyleSheet
(
String
uri)
SAC
: Implements
org.w3c.css.sac.Parser.parseStyleSheet(String)
.
protected
LexicalUnit
parseTerm
(
LexicalUnit
prev)
Parses a CSS2 term.
protected
void
reportError
(
String
key)
Reports a parsing error.
protected
void
reportError
(
String
key,
Object
[] params)
Reports a parsing error.
protected
void
reportError
(
CSSParseException
e)
Reports a parsing error.
public
void
setConditionFactory
(
ConditionFactory
factory)
SAC
: Implements
org.w3c.css.sac.Parser.setConditionFactory(ConditionFactory)
.
public
void
setDocumentHandler
(
DocumentHandler
handler)
SAC
: Implements
org.w3c.css.sac.Parser.setDocumentHandler(DocumentHandler)
.
public
void
setErrorHandler
(
ErrorHandler
handler)
SAC
: Implements
org.w3c.css.sac.Parser.setErrorHandler(ErrorHandler)
.
public
void
setLocale
(
Locale
locale)
SAC
: Implements
org.w3c.css.sac.Parser.setLocale(Locale)
.
public
void
setSelectorFactory
(
SelectorFactory
factory)
SAC
: Implements
org.w3c.css.sac.Parser.setSelectorFactory(SelectorFactory)
.
protected
int
skipSpaces
()
Skips the white spaces.
protected
int
skipSpacesAndCDOCDC
()
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.