+ *
* @author Ronald Brill
+ *
*/
public abstract class AbstractCSSRuleImpl extends AbstractLocatable implements Serializable {
@@ -28,6 +31,7 @@ public abstract class AbstractCSSRuleImpl extends AbstractLocatable implements S
/**
* Ctor.
+ *
* @param parentStyleSheet the parent style sheet
* @param parentRule the parent rule
*/
@@ -38,6 +42,8 @@ public AbstractCSSRuleImpl(final CSSStyleSheetImpl parentStyleSheet, final Abstr
}
/**
+ *
getCssText.
+ *
* @return the current css text
*/
public abstract String getCssText();
@@ -65,6 +71,8 @@ public void setParentRule(final AbstractCSSRuleImpl parentRule) {
}
/**
+ *
getParentStyleSheet.
+ *
* @return the parent style sheet
*/
public CSSStyleSheetImpl getParentStyleSheet() {
@@ -72,12 +80,15 @@ public CSSStyleSheetImpl getParentStyleSheet() {
}
/**
+ *
getParentRule.
+ *
* @return the parent rule
*/
public AbstractCSSRuleImpl getParentRule() {
return parentRule_;
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -91,6 +102,7 @@ public boolean equals(final Object obj) {
// recursive loop -> stack overflow!
}
+ /** {@inheritDoc} */
@Override
public int hashCode() {
final int hash = super.hashCode();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSCharsetRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSCharsetRuleImpl.java
index 96c6d41..da30f56 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSCharsetRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSCharsetRuleImpl.java
@@ -25,6 +25,7 @@
* Implementation of CSSCharsetRule.
*
* @author Ronald Brill
+ *
*/
public class CSSCharsetRuleImpl extends AbstractCSSRuleImpl {
@@ -45,9 +46,7 @@ public CSSCharsetRuleImpl(
encoding_ = encoding;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setCssText(final String cssText) throws DOMException {
try {
@@ -79,12 +78,15 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
+ *
getEncoding.
+ *
* @return the encoding
*/
public String getEncoding() {
return encoding_;
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -98,6 +100,7 @@ public boolean equals(final Object obj) {
&& ParserUtils.equals(getEncoding(), ccr.getEncoding());
}
+ /** {@inheritDoc} */
@Override
public int hashCode() {
int hash = super.hashCode();
@@ -105,14 +108,13 @@ public int hashCode() {
return hash;
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String getCssText() {
final StringBuilder sb = new StringBuilder();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSFontFaceRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSFontFaceRuleImpl.java
index 811e76f..60c7372 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSFontFaceRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSFontFaceRuleImpl.java
@@ -25,6 +25,7 @@
* Implementation of CSSFontFaceRule.
*
* @author Ronald Brill
+ *
*/
public class CSSFontFaceRuleImpl extends AbstractCSSRuleImpl {
@@ -32,6 +33,7 @@ public class CSSFontFaceRuleImpl extends AbstractCSSRuleImpl {
/**
* Ctor.
+ *
* @param parentStyleSheet the parent style sheet
* @param parentRule the parent rule
*/
@@ -39,9 +41,7 @@ public CSSFontFaceRuleImpl(final CSSStyleSheetImpl parentStyleSheet, final Abstr
super(parentStyleSheet, parentRule);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String getCssText() {
final StringBuilder sb = new StringBuilder();
@@ -58,9 +58,7 @@ public String getCssText() {
return sb.toString();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setCssText(final String cssText) throws DOMException {
try {
@@ -92,6 +90,8 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
+ *
getStyle.
+ *
* @return the style
*/
public CSSStyleDeclarationImpl getStyle() {
@@ -100,12 +100,14 @@ public CSSStyleDeclarationImpl getStyle() {
/**
* Sets the style to a new one.
+ *
* @param style the new style
*/
public void setStyle(final CSSStyleDeclarationImpl style) {
style_ = style;
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -119,6 +121,7 @@ public boolean equals(final Object obj) {
&& ParserUtils.equals(getStyle(), cffr.getStyle());
}
+ /** {@inheritDoc} */
@Override
public int hashCode() {
int hash = super.hashCode();
@@ -126,6 +129,7 @@ public int hashCode() {
return hash;
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSImportRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSImportRuleImpl.java
index c001abc..d2413b5 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSImportRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSImportRuleImpl.java
@@ -25,6 +25,7 @@
* Implementation of CSSImportRule.
*
* @author Ronald Brill
+ *
*/
public class CSSImportRuleImpl extends AbstractCSSRuleImpl {
@@ -49,9 +50,7 @@ public CSSImportRuleImpl(
media_ = media;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String getCssText() {
final StringBuilder sb = new StringBuilder();
@@ -70,9 +69,7 @@ public String getCssText() {
return sb.toString();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setCssText(final String cssText) throws DOMException {
try {
@@ -105,6 +102,8 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
+ *
getHref.
+ *
* @return the href
*/
public String getHref() {
@@ -112,6 +111,8 @@ public String getHref() {
}
/**
+ *
getMedia.
+ *
* @return the media lsit
*/
public MediaListImpl getMedia() {
@@ -119,17 +120,21 @@ public MediaListImpl getMedia() {
}
/**
+ *
getStyleSheet.
+ *
* @return the parent style sheet
*/
public CSSStyleSheetImpl getStyleSheet() {
return getParentStyleSheet();
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -144,6 +149,7 @@ public boolean equals(final Object obj) {
&& ParserUtils.equals(getMedia(), cir.getMedia());
}
+ /** {@inheritDoc} */
@Override
public int hashCode() {
int hash = super.hashCode();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSMediaRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSMediaRuleImpl.java
index e466bfc..ee1d348 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSMediaRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSMediaRuleImpl.java
@@ -28,6 +28,7 @@
* Implementation of CSSMediaRule.
*
* @author Ronald Brill
+ *
*/
public class CSSMediaRuleImpl extends AbstractCSSRuleImpl {
@@ -36,6 +37,7 @@ public class CSSMediaRuleImpl extends AbstractCSSRuleImpl {
/**
* Ctor.
+ *
* @param parentStyleSheet the parent style sheet
* @param parentRule the parent rule
* @param media the media
@@ -48,9 +50,7 @@ public CSSMediaRuleImpl(
mediaList_ = media;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String getCssText() {
final StringBuilder sb = new StringBuilder("@media ");
@@ -65,9 +65,7 @@ public String getCssText() {
return sb.toString();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setCssText(final String cssText) throws DOMException {
try {
@@ -100,6 +98,8 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
+ *
getMediaList.
+ *
* @return the media list
*/
public MediaListImpl getMediaList() {
@@ -107,6 +107,8 @@ public MediaListImpl getMediaList() {
}
/**
+ *
getCssRules.
+ *
* @return the css rules
*/
public CSSRuleListImpl getCssRules() {
@@ -118,6 +120,7 @@ public CSSRuleListImpl getCssRules() {
/**
* Insert a new rule at the given index.
+ *
* @param rule the rule to be inserted
* @param index the insert pos
* @throws DOMException in case of error
@@ -181,11 +184,13 @@ public void setRuleList(final CSSRuleListImpl rules) {
cssRules_ = rules;
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSPageRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSPageRuleImpl.java
index ab835f4..6d392e2 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSPageRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSPageRuleImpl.java
@@ -109,7 +109,9 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
- * @return the current selector text
+ *
getSelectorText.
+ *
+ * @return the selector text
*/
public String getSelectorText() {
if (null == pseudoPage_) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSRuleListImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSRuleListImpl.java
index 90459b9..d428eae 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSRuleListImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSRuleListImpl.java
@@ -30,6 +30,8 @@ public class CSSRuleListImpl implements Serializable {
private final List rules_ = new ArrayList<>();
/**
+ *
getRules.
+ *
* @return the rules
*/
public List getRules() {
@@ -44,6 +46,8 @@ public CSSRuleListImpl() {
}
/**
+ *
getLength.
+ *
* @return the number of rules
*/
public int getLength() {
@@ -75,6 +79,7 @@ public void delete(final int index) {
getRules().remove(index);
}
+ /** {@inheritDoc} */
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
@@ -87,6 +92,7 @@ public String toString() {
return sb.toString();
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleDeclarationImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleDeclarationImpl.java
index 1b0558c..e0fa1d9 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleDeclarationImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleDeclarationImpl.java
@@ -46,6 +46,8 @@ public CSSStyleDeclarationImpl(final AbstractCSSRuleImpl parentRule) {
}
/**
+ *
getProperties.
+ *
* @return the properties
*/
public List getProperties() {
@@ -113,6 +115,8 @@ public String getPropertyValue(final String propertyName) {
}
/**
+ *
getPropertyCSSValue.
+ *
* @param propertyName the property name
* @return the property value
*/
@@ -146,6 +150,8 @@ public String removeProperty(final String propertyName) throws DOMException {
}
/**
+ *
getPropertyPriority.
+ *
* @param propertyName the name of the property
* @return the priority
*/
@@ -194,6 +200,8 @@ public void setProperty(
}
/**
+ *
getLength.
+ *
* @return the properties count
*/
public int getLength() {
@@ -201,6 +209,8 @@ public int getLength() {
}
/**
+ *
getParentRule.
+ *
* @return the parent rule
*/
public AbstractCSSRuleImpl getParentRule() {
@@ -219,6 +229,8 @@ public void addProperty(final Property p) {
}
/**
+ *
getPropertyDeclaration.
+ *
* @param propertyName the name of the propery
* @return the property
*/
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetImpl.java
index c5855dd..25187b2 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetImpl.java
@@ -61,6 +61,8 @@ public CSSStyleSheetImpl() {
}
/**
+ *
getDisabled.
+ *
* @return the disable state
*/
public boolean getDisabled() {
@@ -77,6 +79,8 @@ public void setDisabled(final boolean disabled) {
}
/**
+ *
getOwnerNode.
+ *
* @return the owner node
*/
public Node getOwnerNode() {
@@ -84,6 +88,8 @@ public Node getOwnerNode() {
}
/**
+ *
getHref.
+ *
* @return the href
*/
public String getHref() {
@@ -91,6 +97,8 @@ public String getHref() {
}
/**
+ *
getTitle.
+ *
* @return the title
*/
public String getTitle() {
@@ -98,6 +106,8 @@ public String getTitle() {
}
/**
+ *
getMedia.
+ *
* @return the media list
*/
public MediaListImpl getMedia() {
@@ -105,6 +115,8 @@ public MediaListImpl getMedia() {
}
/**
+ *
getOwnerRule.
+ *
* @return the owner rule
*/
public AbstractCSSRuleImpl getOwnerRule() {
@@ -112,6 +124,8 @@ public AbstractCSSRuleImpl getOwnerRule() {
}
/**
+ *
getCssRules.
+ *
* @return the css rules
*/
public CSSRuleListImpl getCssRules() {
@@ -275,6 +289,8 @@ public void setMediaText(final String mediaText) {
}
/**
+ *
setOwnerRule.
+ *
* @param ownerRule the new ownerRule
*/
public void setOwnerRule(final AbstractCSSRuleImpl ownerRule) {
@@ -282,17 +298,25 @@ public void setOwnerRule(final AbstractCSSRuleImpl ownerRule) {
}
/**
+ *
+ *
* @return the CSSStyleSheetRuleIndex
*/
public CSSStyleSheetRuleIndex getRuleIndex() {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetListImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetListImpl.java
index 9305621..12b5f68 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetListImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSStyleSheetListImpl.java
@@ -29,6 +29,8 @@ public class CSSStyleSheetListImpl {
private List cssStyleSheets_;
/**
+ *
getCSSStyleSheets.
+ *
* @return the list of style sheets
*/
public List getCSSStyleSheets() {
@@ -39,6 +41,8 @@ public List getCSSStyleSheets() {
}
/**
+ *
getLength.
+ *
* @return the number of style sheets
*/
public int getLength() {
@@ -75,6 +79,7 @@ public CSSStyleSheetImpl merge() {
return merged;
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSUnknownRuleImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSUnknownRuleImpl.java
index a9c49df..3dc9bce 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSUnknownRuleImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSUnknownRuleImpl.java
@@ -44,9 +44,7 @@ public CSSUnknownRuleImpl(
text_ = text;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String getCssText() {
if (null == text_) {
@@ -55,9 +53,7 @@ public String getCssText() {
return text_;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setCssText(final String cssText) throws DOMException {
try {
@@ -88,11 +84,13 @@ public void setCssText(final String cssText) throws DOMException {
}
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CSSValueImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CSSValueImpl.java
index d5d80d6..599b334 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CSSValueImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CSSValueImpl.java
@@ -164,6 +164,8 @@ public enum CSSPrimitiveValueType {
private Object value_;
/**
+ *
getValue.
+ *
* @return the value
*/
public Object getValue() {
@@ -238,6 +240,8 @@ public CSSValueImpl(final LexicalUnit value) {
}
/**
+ *
getCssText.
+ *
* @return the css text
*/
public String getCssText() {
@@ -294,6 +298,8 @@ public void setCssText(final String cssText) throws DOMException {
}
/**
+ *
getCssValueType.
+ *
* @return the css value type
*/
public CSSValueType getCssValueType() {
@@ -308,6 +314,8 @@ public CSSValueType getCssValueType() {
}
/**
+ *
getPrimitiveType.
+ *
* @return the primitive type
*/
public CSSPrimitiveValueType getPrimitiveType() {
@@ -405,6 +413,8 @@ else if (value_ instanceof CounterImpl) {
}
/**
+ *
getLexicalUnitType.
+ *
* @return the lexical unit type
*/
public LexicalUnit.LexicalUnitType getLexicalUnitType() {
@@ -425,8 +435,9 @@ public void setDoubleValue(final double doubleValue) throws DOMException {
}
/**
- * @return the double value.
+ *
getDoubleValue.
*
+ * @return the double value.
* @throws DOMException in case of error
*/
public double getDoubleValue() throws DOMException {
@@ -443,6 +454,8 @@ public double getDoubleValue() throws DOMException {
}
/**
+ *
getStringValue.
+ *
* @return the string value.
* @throws DOMException case of error
*/
@@ -485,9 +498,10 @@ public int getLength() {
}
/**
+ *
item.
+ *
* @param index the position
* @return the value at the position
- * @throws DOMException in case of error
*/
@SuppressWarnings("unchecked")
public CSSValueImpl item(final int index) {
@@ -498,11 +512,13 @@ public CSSValueImpl item(final int index) {
return null;
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getCssText();
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
diff --git a/src/main/java/org/htmlunit/cssparser/dom/CounterImpl.java b/src/main/java/org/htmlunit/cssparser/dom/CounterImpl.java
index 1da9fcd..f4fffe6 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/CounterImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/CounterImpl.java
@@ -33,6 +33,7 @@ public class CounterImpl implements Serializable {
/**
* Creates new CounterImpl.
+ *
* @param separatorSpecified true if the separator is specified
* @param lu the lexical unit
* @throws DOMException in case of error
@@ -73,6 +74,8 @@ public CounterImpl(final boolean separatorSpecified, final LexicalUnit lu) throw
}
/**
+ *
getIdentifier.
+ *
* @return the identifier
*/
public String getIdentifier() {
@@ -80,6 +83,8 @@ public String getIdentifier() {
}
/**
+ *
getListStyle.
+ *
* @return the list style
*/
public String getListStyle() {
@@ -87,12 +92,15 @@ public String getListStyle() {
}
/**
+ *
getSeparator.
+ *
* @return the separator
*/
public String getSeparator() {
return separator_;
}
+ /** {@inheritDoc} */
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/MediaListImpl.java b/src/main/java/org/htmlunit/cssparser/dom/MediaListImpl.java
index 29f1149..d82de0e 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/MediaListImpl.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/MediaListImpl.java
@@ -51,6 +51,8 @@ public MediaListImpl(final MediaQueryList mediaList) {
}
/**
+ *
getMediaText.
+ *
* @return the media text
*/
public String getMediaText() {
@@ -89,6 +91,8 @@ public void setMediaText(final String mediaText) throws DOMException {
}
/**
+ *
getLength.
+ *
* @return the media query count
*/
public int getLength() {
@@ -96,6 +100,8 @@ public int getLength() {
}
/**
+ *
mediaQuery.
+ *
* @param index the position of the media query
* @return the media query at the given pos
*/
@@ -106,6 +112,7 @@ public MediaQuery mediaQuery(final int index) {
return mediaQueries_.get(index);
}
+ /** {@inheritDoc} */
@Override
public String toString() {
return getMediaText();
@@ -145,6 +152,7 @@ private boolean equalsMedia(final MediaListImpl ml) {
return true;
}
+ /** {@inheritDoc} */
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -157,6 +165,7 @@ public boolean equals(final Object obj) {
return super.equals(obj) && equalsMedia(ml);
}
+ /** {@inheritDoc} */
@Override
public int hashCode() {
int hash = super.hashCode();
diff --git a/src/main/java/org/htmlunit/cssparser/dom/Property.java b/src/main/java/org/htmlunit/cssparser/dom/Property.java
index 16901be..e6e0816 100644
--- a/src/main/java/org/htmlunit/cssparser/dom/Property.java
+++ b/src/main/java/org/htmlunit/cssparser/dom/Property.java
@@ -20,6 +20,8 @@
import org.htmlunit.cssparser.util.ParserUtils;
/**
+ *
*
* @param key the message lookup key
* @param e the parse exception
@@ -282,6 +289,8 @@ protected CSSParseException toCSSParseException(final String key, final ParseExc
}
/**
+ *
toCSSParseException.
+ *
* @param e the DOMException
* @return a new CSSParseException
*/
@@ -292,6 +301,8 @@ protected CSSParseException toCSSParseException(final DOMException e) {
}
/**
+ *
toCSSParseException.
+ *
* @param e the TokenMgrException
* @return a new CSSParseException
*/
diff --git a/src/main/java/org/htmlunit/cssparser/parser/AbstractLocatable.java b/src/main/java/org/htmlunit/cssparser/parser/AbstractLocatable.java
index 004c795..a174edf 100644
--- a/src/main/java/org/htmlunit/cssparser/parser/AbstractLocatable.java
+++ b/src/main/java/org/htmlunit/cssparser/parser/AbstractLocatable.java
@@ -23,11 +23,13 @@ public class AbstractLocatable implements Locatable {
private Locator locator_;
+ /** {@inheritDoc} */
@Override
public Locator getLocator() {
return locator_;
}
+ /** {@inheritDoc} */
@Override
public void setLocator(final Locator locator) {
locator_ = locator;
diff --git a/src/main/java/org/htmlunit/cssparser/parser/CSSErrorHandler.java b/src/main/java/org/htmlunit/cssparser/parser/CSSErrorHandler.java
index 2b7af57..3f73702 100644
--- a/src/main/java/org/htmlunit/cssparser/parser/CSSErrorHandler.java
+++ b/src/main/java/org/htmlunit/cssparser/parser/CSSErrorHandler.java
@@ -25,6 +25,7 @@ public interface CSSErrorHandler {
*
* @param exception the {@link CSSParseException} that is the reason for the warning.
* @exception CSSException in case of error
+ * @throws CSSException if any.
*/
void warning(CSSParseException exception) throws CSSException;
@@ -33,6 +34,7 @@ public interface CSSErrorHandler {
*
* @param exception the {@link CSSParseException} that is the reason for the error.
* @exception CSSException in case of error
+ * @throws CSSException if any.
*/
void error(CSSParseException exception) throws CSSException;
@@ -41,6 +43,7 @@ public interface CSSErrorHandler {
*
* @param exception the {@link CSSParseException} that is the reason for the error.
* @exception CSSException in case of error
+ * @throws CSSException if any.
*/
void fatalError(CSSParseException exception) throws CSSException;
}
diff --git a/src/main/java/org/htmlunit/cssparser/parser/CSSException.java b/src/main/java/org/htmlunit/cssparser/parser/CSSException.java
index e0f0307..e9a38fb 100644
--- a/src/main/java/org/htmlunit/cssparser/parser/CSSException.java
+++ b/src/main/java/org/htmlunit/cssparser/parser/CSSException.java
@@ -78,6 +78,8 @@ public CSSException(final ErrorCode code, final String message, final Exception
}
/**
+ * {@inheritDoc}
+ *
* Returns the detail message of this throwable object.
*
* @return the detail message of this Throwable, or null if this Throwable
@@ -106,6 +108,8 @@ public String getMessage() {
}
/**
+ *
+ *
* @param eh the error handler to be used
*/
public void setErrorHandler(final CSSErrorHandler eh) {
@@ -108,8 +99,8 @@ public CSSStyleDeclarationImpl parseStyleDeclaration(final String styleDecl) thr
* @throws IOException if the underlying SAC parser throws an IOException
*/
public void parseStyleDeclaration(final CSSStyleDeclarationImpl sd, final String styleDecl) throws IOException {
- try (InputSource source = new InputSource(new StringReader(styleDecl))) {
- final Stack