|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.extex.interpreter.type.AbstractCode
org.extex.interpreter.primitives.register.real.AbstractMath
public abstract class AbstractMath
Abstract class for math primitives. E.g. sin, cos
Field Summary |
---|
Fields inherited from class org.extex.interpreter.type.AbstractCode |
---|
serialVersionUID |
Constructor Summary | |
---|---|
AbstractMath(CodeToken token)
Creates a new object. |
Method Summary | |
---|---|
protected abstract Real |
calculate(Context context,
TokenSource source,
Typesetter typesetter)
Calculate |
long |
convertCount(Context context,
TokenSource source,
Typesetter typesetter)
This method converts a register into a count. |
Real |
convertReal(Context context,
TokenSource source,
Typesetter typesetter)
Convert to a real. |
void |
execute(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
execute |
Tokens |
the(Context context,
TokenSource source,
Typesetter typesetter)
This method is the getter for the description of the primitive. |
Methods inherited from class org.extex.interpreter.type.AbstractCode |
---|
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractMath(CodeToken token)
token
- the initial token for the primitiveMethod Detail |
---|
public void execute(Flags prefix, Context context, TokenSource source, Typesetter typesetter) throws HelpingException, TypesetterException
execute
in interface Code
execute
in class AbstractCode
prefix
- the prefix controlling the executioncontext
- the interpreter contextsource
- the token sourcetypesetter
- the typesetter
HelpingException
- in case of an error
TypesetterException
- in case of an error in the typesetterCode.execute(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public Tokens the(Context context, TokenSource source, Typesetter typesetter) throws ConfigurationException, CatcodeException, HelpingException, TypesetterException
the
in interface Theable
context
- the interpreter contextsource
- the source for further tokens to qualify the requesttypesetter
- the typesetter to use
CatcodeException
- in case of an error in token creation
ConfigurationException
- in case of an configuration error
HelpingException
- in case of an error
TypesetterException
- in case of an errorTheable.the(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public Real convertReal(Context context, TokenSource source, Typesetter typesetter) throws ConfigurationException, HelpingException, TypesetterException
RealConvertible
convertReal
in interface RealConvertible
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter
ConfigurationException
- in case of an configuration error
HelpingException
- in case of an error
TypesetterException
- in case of an error in the typesetterRealConvertible.convertReal(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, Typesetter)
public long convertCount(Context context, TokenSource source, Typesetter typesetter) throws ConfigurationException, HelpingException, TypesetterException
convertCount
in interface CountConvertible
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter to use for conversion
ConfigurationException
- in case of an configuration error
HelpingException
- in case of an error
TypesetterException
- in case of an error in the typesetterCountConvertible.convertCount(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
protected abstract Real calculate(Context context, TokenSource source, Typesetter typesetter) throws ConfigurationException, HelpingException, TypesetterException
context
- the contextsource
- the token sourcetypesetter
- the typesetter
HelpingException
- in case of an error
ConfigurationException
- in case of an configuration error
TypesetterException
- in case of an error in the typesetter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |