return null;
}
- private final static void checkBounds(Object base, int idx) {
+ private static final void checkBounds(Object base, int idx) {
if (idx < 0 || idx >= Array.getLength(base)) {
throw new PropertyNotFoundException(
new ArrayIndexOutOfBoundsException(idx).getMessage());
}
}
- private final static int coerce(Object property) {
+ private static final int coerce(Object property) {
if (property instanceof Number) {
return ((Number) property).intValue();
}
return null;
}
- protected final static class BeanProperties {
+ protected static final class BeanProperties {
private final Map<String, BeanProperty> properties;
private final Class<?> type;
}
}
- protected final static class BeanProperty {
+ protected static final class BeanProperty {
private final Class<?> type;
private final Class<?> owner;
}
// Can't use Class<?> because API needs to match specification
- public @SuppressWarnings("rawtypes") Class getPropertyType() {
+ @SuppressWarnings("rawtypes")
+ public Class getPropertyType() {
return this.type;
}
return props.get(ctx, prop);
}
- private final static Method getMethod(Class<?> type, Method m) {
+ private static final Method getMethod(Class<?> type, Method m) {
if (m == null || Modifier.isPublic(type.getModifiers())) {
return m;
}
return null;
}
- private final static class ConcurrentCache<K,V> {
+ private static final class ConcurrentCache<K,V> {
private final int size;
private final Map<K,V> eden;
return null;
}
- private final static class FeatureIterator implements Iterator<FeatureDescriptor> {
+ private static final class FeatureIterator implements Iterator<FeatureDescriptor> {
private final ELContext context;
}
}
- public final static String RESOLVABLE_AT_DESIGN_TIME = "resolvableAtDesignTime";
+ public static final String RESOLVABLE_AT_DESIGN_TIME = "resolvableAtDesignTime";
- public final static String TYPE = "type";
+ public static final String TYPE = "type";
public abstract Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException;
private final boolean readOnly;
- private final static Class<?> UNMODIFIABLE =
+ private static final Class<?> UNMODIFIABLE =
Collections.unmodifiableList(new ArrayList<Object>()).getClass();
public ListELResolver() {
return null;
}
- private final static int coerce(Object property) {
+ private static final int coerce(Object property) {
if (property instanceof Number) {
return ((Number) property).intValue();
}
public class MapELResolver extends ELResolver {
- private final static Class<?> UNMODIFIABLE = Collections.unmodifiableMap(
+ private static final Class<?> UNMODIFIABLE = Collections.unmodifiableMap(
new HashMap<Object, Object>()).getClass();
private final boolean readOnly;
}
@Override
- // Can't use Iterator<FeatureDescriptor> because API needs to match specification
- public @SuppressWarnings({ "unchecked", "rawtypes" }) Iterator getFeatureDescriptors(
+ // Can't use Iterator<FeatureDescriptor> because API needs to match
+ // specification
+ @SuppressWarnings({ "unchecked", "rawtypes" })
+ public Iterator getFeatureDescriptors(
ELContext context, Object base) {
if (base instanceof ResourceBundle) {
List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
* is invalid
*
*/
- static public Hashtable<String,String[]> parseQueryString(String s) {
+ public static Hashtable<String,String[]> parseQueryString(String s) {
String valArray[] = null;
* sent by the POST method is invalid
*
*/
- static public Hashtable<String,String[]> parsePostData(int len,
+ public static Hashtable<String,String[]> parsePostData(int len,
ServletInputStream in) {
// XXX
// should a length of 0 be an IllegalArgumentException
/*
* Parse a name in the query string.
*/
- static private String parseName(String s, StringBuilder sb) {
+ private static String parseName(String s, StringBuilder sb) {
sb.setLength(0);
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
* @throws NullPointerException if the name is null
*/
- abstract public void setAttribute(String name, Object value);
+ public abstract void setAttribute(String name, Object value);
/**
* Register the name and value specified with appropriate
* invalidated.
*/
- abstract public void setAttribute(String name, Object value, int scope);
+ public abstract void setAttribute(String name, Object value, int scope);
/**
* Returns the object associated with the name in the page scope or null
* @throws NullPointerException if the name is null
*/
- abstract public Object getAttribute(String name);
+ public abstract Object getAttribute(String name);
/**
* Return the object associated with the name in the specified
* invalidated.
*/
- abstract public Object getAttribute(String name, int scope);
+ public abstract Object getAttribute(String name, int scope);
/**
* Searches for the named attribute in page, request, session (if valid),
* @throws NullPointerException if the name is null
*/
- abstract public Object findAttribute(String name);
+ public abstract Object findAttribute(String name);
/**
* Remove the object reference associated with the given name
* @throws NullPointerException if the name is null
*/
- abstract public void removeAttribute(String name);
+ public abstract void removeAttribute(String name);
/**
* Remove the object reference associated with the specified name
* @throws NullPointerException if the name is null
*/
- abstract public void removeAttribute(String name, int scope);
+ public abstract void removeAttribute(String name, int scope);
/**
* Get the scope where a given attribute is defined.
* @throws NullPointerException if the name is null
*/
- abstract public int getAttributesScope(String name);
+ public abstract int getAttributesScope(String name);
/**
* Enumerate all the attributes in a given scope.
* invalidated.
*/
- abstract public Enumeration<String> getAttributeNamesInScope(int scope);
+ public abstract Enumeration<String> getAttributeNamesInScope(int scope);
/**
* The current value of the out object (a JspWriter).
*
* @return the current JspWriter stream being used for client response
*/
- abstract public JspWriter getOut();
+ public abstract JspWriter getOut();
/**
* Provides programmatic access to the ExpressionEvaluator.
* @see java.io.BufferedWriter
* @see java.io.PrintWriter
*/
-abstract public class JspWriter extends java.io.Writer {
+public abstract class JspWriter extends java.io.Writer {
/**
* Constant indicating that the Writer is not buffering output.
* @exception IOException
* If an I/O error occurs
*/
- abstract public void newLine() throws IOException;
+ public abstract void newLine() throws IOException;
/**
* Print a boolean value. The string produced by <code>{@link
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(boolean b) throws IOException;
+ public abstract void print(boolean b) throws IOException;
/**
* Print a character. The character is written to the JspWriter's buffer or,
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(char c) throws IOException;
+ public abstract void print(char c) throws IOException;
/**
* Print an integer. The string produced by <code>{@link
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(int i) throws IOException;
+ public abstract void print(int i) throws IOException;
/**
* Print a long integer. The string produced by <code>{@link
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(long l) throws IOException;
+ public abstract void print(long l) throws IOException;
/**
* Print a floating-point number. The string produced by <code>{@link
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(float f) throws IOException;
+ public abstract void print(float f) throws IOException;
/**
* Print a double-precision floating-point number. The string produced by
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(double d) throws IOException;
+ public abstract void print(double d) throws IOException;
/**
* Print an array of characters. The characters are written to the
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(char s[]) throws IOException;
+ public abstract void print(char s[]) throws IOException;
/**
* Print a string. If the argument is <code>null</code> then the string
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(String s) throws IOException;
+ public abstract void print(String s) throws IOException;
/**
* Print an object. The string produced by the <code>{@link
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void print(Object obj) throws IOException;
+ public abstract void print(Object obj) throws IOException;
/**
* Terminate the current line by writing the line separator string. The line
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println() throws IOException;
+ public abstract void println() throws IOException;
/**
* Print a boolean value and then terminate the line. This method behaves as
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(boolean x) throws IOException;
+ public abstract void println(boolean x) throws IOException;
/**
* Print a character and then terminate the line. This method behaves as
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(char x) throws IOException;
+ public abstract void println(char x) throws IOException;
/**
* Print an integer and then terminate the line. This method behaves as
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(int x) throws IOException;
+ public abstract void println(int x) throws IOException;
/**
* Print a long integer and then terminate the line. This method behaves as
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(long x) throws IOException;
+ public abstract void println(long x) throws IOException;
/**
* Print a floating-point number and then terminate the line. This method
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(float x) throws IOException;
+ public abstract void println(float x) throws IOException;
/**
* Print a double-precision floating-point number and then terminate the
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(double x) throws IOException;
+ public abstract void println(double x) throws IOException;
/**
* Print an array of characters and then terminate the line. This method
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(char x[]) throws IOException;
+ public abstract void println(char x[]) throws IOException;
/**
* Print a String and then terminate the line. This method behaves as though
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(String x) throws IOException;
+ public abstract void println(String x) throws IOException;
/**
* Print an Object and then terminate the line. This method behaves as
* @throws java.io.IOException
* If an error occurred while writing
*/
- abstract public void println(Object x) throws IOException;
+ public abstract void println(Object x) throws IOException;
/**
* Clear the contents of the buffer. If the buffer has been already been
* @throws IOException
* If an I/O error occurs
*/
- abstract public void clear() throws IOException;
+ public abstract void clear() throws IOException;
/**
* Clears the current contents of the buffer. Unlike clear(), this method
* @throws IOException
* If an I/O error occurs
*/
- abstract public void clearBuffer() throws IOException;
+ public abstract void clearBuffer() throws IOException;
/**
* Flush the stream. If the stream has saved any characters from the various
* If an I/O error occurs
*/
@Override
- abstract public void flush() throws IOException;
+ public abstract void flush() throws IOException;
/**
* Close the stream, flushing it first.
* If an I/O error occurs
*/
@Override
- abstract public void close() throws IOException;
+ public abstract void close() throws IOException;
/**
* This method returns the size of the buffer used by the JspWriter.
*
* @return the number of bytes unused in the buffer
*/
- abstract public int getRemaining();
+ public abstract int getRemaining();
/**
* This method indicates whether the JspWriter is autoFlushing.
* and <code>handlePageException()</code>.
*/
-abstract public class PageContext
+public abstract class PageContext
extends JspContext
{
* is invalid
*/
- abstract public void initialize(Servlet servlet, ServletRequest request,
+ public abstract void initialize(Servlet servlet, ServletRequest request,
ServletResponse response, String errorPageURL, boolean needsSession,
int bufferSize, boolean autoFlush)
throws IOException, IllegalStateException, IllegalArgumentException;
*
*/
- abstract public void release();
+ public abstract void release();
/**
* The current value of the session object (an HttpSession).
* @return the HttpSession for this PageContext or null
*/
- abstract public HttpSession getSession();
+ public abstract HttpSession getSession();
/**
* The current value of the page object (In a Servlet environment,
* with this PageContext
*/
- abstract public Object getPage();
+ public abstract Object getPage();
/**
* @return The ServletRequest for this PageContext
*/
- abstract public ServletRequest getRequest();
+ public abstract ServletRequest getRequest();
/**
* The current value of the response object (a ServletResponse).
* @return the ServletResponse for this PageContext
*/
- abstract public ServletResponse getResponse();
+ public abstract ServletResponse getResponse();
/**
* The current value of the exception object (an Exception).
* @return any exception passed to this as an errorpage
*/
- abstract public Exception getException();
+ public abstract Exception getException();
/**
* The ServletConfig instance.
* @return the ServletConfig for this PageContext
*/
- abstract public ServletConfig getServletConfig();
+ public abstract ServletConfig getServletConfig();
/**
* The ServletContext instance.
* @return the ServletContext for this PageContext
*/
- abstract public ServletContext getServletContext();
+ public abstract ServletContext getServletContext();
/**
* <p>
* @throws IOException if an I/O error occurred while forwarding
*/
- abstract public void forward(String relativeUrlPath)
+ public abstract void forward(String relativeUrlPath)
throws ServletException, IOException;
/**
* a ServletException
* @throws IOException if an I/O error occurred while forwarding
*/
- abstract public void include(String relativeUrlPath)
+ public abstract void include(String relativeUrlPath)
throws ServletException, IOException;
/**
* @throws IOException if an I/O error occurred while forwarding
* @since 2.0
*/
- abstract public void include(String relativeUrlPath, boolean flush)
+ public abstract void include(String relativeUrlPath, boolean flush)
throws ServletException, IOException;
/**
* @see #handlePageException(Throwable)
*/
- abstract public void handlePageException(Exception e)
+ public abstract void handlePageException(Exception e)
throws ServletException, IOException;
/**
* @see #handlePageException(Exception)
*/
- abstract public void handlePageException(Throwable t)
+ public abstract void handlePageException(Throwable t)
throws ServletException, IOException;
/**
*/
public class ImplicitObjectELResolver extends ELResolver {
- private final static String[] SCOPE_NAMES = new String[] {
+ private static final String[] SCOPE_NAMES = new String[] {
"applicationScope", "cookie", "header", "headerValues",
"initParam", "pageContext", "pageScope", "param", "paramValues",
"requestScope", "sessionScope" };
- private final static int APPLICATIONSCOPE = 0;
+ private static final int APPLICATIONSCOPE = 0;
- private final static int COOKIE = 1;
+ private static final int COOKIE = 1;
- private final static int HEADER = 2;
+ private static final int HEADER = 2;
- private final static int HEADERVALUES = 3;
+ private static final int HEADERVALUES = 3;
- private final static int INITPARAM = 4;
+ private static final int INITPARAM = 4;
- private final static int PAGECONTEXT = 5;
+ private static final int PAGECONTEXT = 5;
- private final static int PAGESCOPE = 6;
+ private static final int PAGESCOPE = 6;
- private final static int PARAM = 7;
+ private static final int PARAM = 7;
- private final static int PARAM_VALUES = 8;
+ private static final int PARAM_VALUES = 8;
- private final static int REQUEST_SCOPE = 9;
+ private static final int REQUEST_SCOPE = 9;
- private final static int SESSION_SCOPE = 10;
+ private static final int SESSION_SCOPE = 10;
public ImplicitObjectELResolver() {
super();
}
private static class ScopeManager {
- private final static String MNGR_KEY = ScopeManager.class.getName();
+ private static final String MNGR_KEY = ScopeManager.class.getName();
private final PageContext page;
*/
@SuppressWarnings("dep-ann")
// TCK signature test fails with annotation
- public final static int EVAL_BODY_TAG = 2;
+ public static final int EVAL_BODY_TAG = 2;
/**
* Request the creation of new buffer, a BodyContent on which to evaluate
* BodyTag. This is an illegal return value for doStartTag when the class
* does not implement BodyTag.
*/
- public final static int EVAL_BODY_BUFFERED = 2;
+ public static final int EVAL_BODY_BUFFERED = 2;
/**
* Set the bodyContent property. This method is invoked by the JSP page
*
*/
- public final static int EVAL_BODY_AGAIN = 2;
+ public static final int EVAL_BODY_AGAIN = 2;
/**
* Process body (re)evaluation. This method is invoked by the
* when being passed to a TagLibraryValidator instance.
*/
-abstract public class PageData {
+public abstract class PageData {
/**
* Sole constructor. (For invocation by subclass constructors,
*
* @return An input stream on the document.
*/
- abstract public InputStream getInputStream();
+ public abstract InputStream getInputStream();
}
* Valid return value for doStartTag and doAfterBody.
*/
- public final static int SKIP_BODY = 0;
+ public static final int SKIP_BODY = 0;
/**
* Evaluate body into existing out stream.
* Valid return value for doStartTag.
*/
- public final static int EVAL_BODY_INCLUDE = 1;
+ public static final int EVAL_BODY_INCLUDE = 1;
/**
* Skip the rest of the page.
* Valid return value for doEndTag.
*/
- public final static int SKIP_PAGE = 5;
+ public static final int SKIP_PAGE = 5;
/**
* Continue evaluating the page.
* Valid return value for doEndTag().
*/
- public final static int EVAL_PAGE = 6;
+ public static final int EVAL_PAGE = 6;
// Setters for Tag handler data
* underlying TLD file. Most of the information is directly from the TLD, except
* for the prefix and the uri values used in the taglib directive
*/
-abstract public class TagLibraryInfo {
+public abstract class TagLibraryInfo {
/**
* Constructor. This will invoke the constructors for TagInfo, and
* attribute.
*/
-abstract public class TagLibraryValidator {
+public abstract class TagLibraryValidator {
/**
* Sole constructor. (For invocation by subclass constructors,