| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.webcompmath.data.Parser
net.sourceforge.webcompmath.data.beans.WCMParserBean
public class WCMParserBean
This class is for use with GUI builders. It's primary job is to expose the options that Parser encodes in an integer. It provides a set/get pair of methods for each option. Note that you can only add an option to a Parser, so setSomeOption(false) will have no effect. it is provided so that Gui builders will recognize the property and so that designers can change their minds about which options to set for a parser (i.e., if you set an option property to true in a gui builder, and later in the design you decide it should be false, the gui builder will usually generate a method call to set the option false; this will then juse be ignored by the parser, since the option is false by default). The only problem this causes is for the Boolean and Standard Function properties; these are turned on by default in the parser and there is currently no way to turn them off when using a WCMParserBean.
| Field Summary | 
|---|
| Fields inherited from class net.sourceforge.webcompmath.data.Parser | 
|---|
BOOLEANS, BRACES, BRACKETS, CASE_SENSITIVE, DEFAULT_OPTIONS, FACTORIAL, NO_DIGITS_IN_IDENTIFIERS, NO_UNDERSCORE_IN_IDENTIFIERS, OPTIONAL_FUNCTIONS, OPTIONAL_PARENS, OPTIONAL_SPACES, OPTIONAL_STARS, options, RATIONAL_EXPONENTS, STANDARD_FUNCTIONS, symbols | 
| Constructor Summary | |
|---|---|
WCMParserBean()
The default constructor  | 
|
WCMParserBean(int options)
Constructor with options  | 
|
WCMParserBean(Parser parent)
Constructor with parent  | 
|
WCMParserBean(Parser parent,
              int options)
Constructor with parent and options  | 
|
| Method Summary | |
|---|---|
 boolean | 
getBooleans()
Get the booleans option.  | 
 boolean | 
getBraces()
Get the braces option  | 
 boolean | 
getBrackets()
Get the brackets option  | 
 boolean | 
getCaseSensitive()
Get the case sensitive option  | 
 boolean | 
getFactorial()
Get the factorial option  | 
 boolean | 
getNoDigitsInIdentifiers()
Get the no digits in identifiers option  | 
 boolean | 
getNoUnderscoreInIdentifiers()
Get the no underscore in identifiers option  | 
 boolean | 
getOptionalFunctions()
Get the optional functions option  | 
 boolean | 
getOptionalParens()
Get the optional parens option  | 
 boolean | 
getOptionalSpaces()
Get the optional spaces option  | 
 boolean | 
getOptionalStars()
Get the optional stars option  | 
 boolean | 
getRationalExponents()
Get the rational exponents option  | 
 boolean | 
getStandardFunctions()
Get the standard functions option.  | 
 void | 
propertyChange(java.beans.PropertyChangeEvent evt)
Handle notifications of property changes.  | 
 void | 
setBraces(boolean b)
An option that can be set for this parser.  | 
 void | 
setBrackets(boolean b)
An option that can be set for this parser.  | 
 void | 
setCaseSensitive(boolean b)
An option that can be set for this parser.  | 
 void | 
setFactorial(boolean b)
An option that can be set for this parser.  | 
 void | 
setMathObject1(ParserMathObject m)
Add a named object to the parser, usually a WCMVariableBean, WCMExpressionInputBean, WCMExpressionFunctionBean, WCMVariableInputBean, WCMVariableJSliderBean, or WCMConstantBean.  | 
 void | 
setMathObject2(ParserMathObject m)
add another named object  | 
 void | 
setMathObject3(ParserMathObject m)
add another named object  | 
 void | 
setMathObject4(ParserMathObject m)
add another named object  | 
 void | 
setMathObject5(ParserMathObject m)
add another named object  | 
 void | 
setMathObject6(ParserMathObject m)
add another named object  | 
 void | 
setMathObject7(ParserMathObject m)
add another named object  | 
 void | 
setMathObject8(ParserMathObject m)
add another named object  | 
 void | 
setMathObject9(ParserMathObject m)
add another named object  | 
 void | 
setNoDigitsInIdentifiers(boolean b)
An option that can be set for this parser.  | 
 void | 
setNoUnderscoreInIdentifiers(boolean b)
An option that can be set for this parser.  | 
 void | 
setOptionalFunctions(boolean b)
An option that can be set for this parser.  | 
 void | 
setOptionalParens(boolean b)
An option that can be set for this parser.  | 
 void | 
setOptionalSpaces(boolean b)
An option that can be set for this parser.  | 
 void | 
setOptionalStars(boolean b)
An that can be set for this parser.  | 
 void | 
setRationalExponents(boolean b)
An option that can be set for this parser.  | 
| Methods inherited from class net.sourceforge.webcompmath.data.Parser | 
|---|
add, addOptions, get, getOptions, parse, parseExpression, parseFactor, parseLogical, parseLogicalExpression, parseLogicalFactor, parseLogicalTerm, parsePrimary, parseRelation, parseTerm, remove, setVariable | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WCMParserBean()
public WCMParserBean(int options)
options - 
public WCMParserBean(Parser parent,
                     int options)
parent - options - public WCMParserBean(Parser parent)
parent - | Method Detail | 
|---|
public void setCaseSensitive(boolean b)
b - public boolean getCaseSensitive()
public void setOptionalStars(boolean b)
b - public boolean getOptionalStars()
public void setOptionalSpaces(boolean b)
b - public boolean getOptionalSpaces()
public void setBrackets(boolean b)
b - public boolean getBrackets()
public void setBraces(boolean b)
b - public boolean getBraces()
public boolean getBooleans()
public void setFactorial(boolean b)
b - public boolean getFactorial()
public void setNoUnderscoreInIdentifiers(boolean b)
b - public boolean getNoUnderscoreInIdentifiers()
public void setNoDigitsInIdentifiers(boolean b)
b - public boolean getNoDigitsInIdentifiers()
public void setOptionalParens(boolean b)
b - public boolean getOptionalParens()
public boolean getStandardFunctions()
public void setOptionalFunctions(boolean b)
b - public boolean getOptionalFunctions()
public void setRationalExponents(boolean b)
b - public boolean getRationalExponents()
public void setMathObject1(ParserMathObject m)
m - the object to addpublic void setMathObject2(ParserMathObject m)
m - the object to addpublic void setMathObject3(ParserMathObject m)
m - the object to addpublic void setMathObject4(ParserMathObject m)
m - the object to addpublic void setMathObject5(ParserMathObject m)
m - the object to addpublic void setMathObject6(ParserMathObject m)
m - the object to addpublic void setMathObject7(ParserMathObject m)
m - the object to addpublic void setMathObject8(ParserMathObject m)
m - the object to addpublic void setMathObject9(ParserMathObject m)
m - the object to addpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||