Building Parsers with Java

sjm.examples.query
Interface Speller

All Known Implementing Classes:
MellowSpeller, ChipSpeller

public interface Speller

This interface defines the role of a speller, that returns the proper spelling of a class or variable name, given any spelling. For example, a speller might convert CUSTOMERID and customerId to CustomerId. A speller can set any policy regarding proper spelling.


Method Summary
 java.lang.String getClassName(java.lang.String s)
          Return the proper spelling of a class name.
 java.lang.String getVariableName(java.lang.String s)
          Return the proper spelling of a variable name.
 

Method Detail

getClassName

public java.lang.String getClassName(java.lang.String s)
Return the proper spelling of a class name.

getVariableName

public java.lang.String getVariableName(java.lang.String s)
Return the proper spelling of a variable name.

by Steve Metsker