org.symcomp.openmath
Class AbstractRenderer
java.lang.Object
org.symcomp.openmath.AbstractRenderer
- Direct Known Subclasses:
- LatexRenderer, PopcornRenderer
public abstract class AbstractRenderer
- extends java.lang.Object
|
Field Summary |
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> |
applicationMethods
|
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> |
bindMethods
|
protected java.io.Writer |
out
|
protected java.lang.String |
pack
|
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> |
precMethods
|
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> |
symbolMethods
|
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Constructor>> |
symbolRendererConstructors
|
protected java.util.HashMap<java.lang.String,SymbolRenderer> |
symbolRenderers
|
|
Constructor Summary |
protected |
AbstractRenderer(java.lang.String pack,
java.io.Writer out)
Registers all methods from the classes within the package with the
symbolic name pack to render symbols. |
|
Method Summary |
java.io.Writer |
getOut()
|
protected java.lang.Integer |
getPrec(org.symcomp.openmath.OMSymbol oms)
|
protected void |
render(org.symcomp.openmath.OMApply oma,
int level)
|
protected void |
render(org.symcomp.openmath.OMBinary omstr,
int level)
|
protected void |
render(org.symcomp.openmath.OMBind ombind,
int level)
|
protected void |
render(org.symcomp.openmath.OMError ome,
int level)
|
protected void |
render(org.symcomp.openmath.OMFloat omf,
int level)
|
protected void |
render(org.symcomp.openmath.OMForeign omf,
int level)
|
protected void |
render(org.symcomp.openmath.OMInteger omi,
int prec)
|
protected void |
render(org.symcomp.openmath.OMObject omobj,
int prec)
|
protected void |
render(org.symcomp.openmath.OMReference omr,
int level)
|
protected void |
render(org.symcomp.openmath.OMString omstr,
int level)
|
protected void |
render(org.symcomp.openmath.OMSymbol oms,
int level)
|
protected void |
render(org.symcomp.openmath.OMVariable omv,
int level)
|
protected void |
render(OpenMathBase om)
|
protected void |
render(OpenMathBase om,
int prec)
|
protected boolean |
renderApply(org.symcomp.openmath.OMSymbol oms,
OpenMathBase[] para,
int prec)
|
protected void |
renderBinary(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
|
protected boolean |
renderBind(OpenMathBase om,
org.symcomp.openmath.OMVariable[] bvars,
OpenMathBase param,
int prec)
|
protected void |
renderNAry(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
|
protected void |
renderNAry(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec,
boolean assoc)
|
protected void |
renderNonAssocBinary(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
|
protected boolean |
renderSymbol(org.symcomp.openmath.OMSymbol oms)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
symbolRendererConstructors
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Constructor>> symbolRendererConstructors
precMethods
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> precMethods
applicationMethods
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> applicationMethods
bindMethods
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> bindMethods
symbolMethods
protected static java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.reflect.Method>> symbolMethods
symbolRenderers
protected java.util.HashMap<java.lang.String,SymbolRenderer> symbolRenderers
pack
protected java.lang.String pack
out
protected java.io.Writer out
AbstractRenderer
protected AbstractRenderer(java.lang.String pack,
java.io.Writer out)
throws java.lang.Exception
- Registers all methods from the classes within the package with the
symbolic name pack to render symbols.
- Parameters:
pack - Symbolic name of the package containing the classesout - The writer to which to write
- Throws:
java.lang.Exception
getOut
public java.io.Writer getOut()
- Returns:
- this AbstractRenderer's Writer
render
protected void render(OpenMathBase om,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(OpenMathBase om)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMObject omobj,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMInteger omi,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMVariable omv,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMFloat omf,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMSymbol oms,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMReference omr,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMString omstr,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMBinary omstr,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMForeign omf,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMBind ombind,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMApply oma,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
render
protected void render(org.symcomp.openmath.OMError ome,
int level)
throws java.io.IOException
- Throws:
java.io.IOException
renderBinary
protected void renderBinary(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
renderNonAssocBinary
protected void renderNonAssocBinary(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
renderNAry
protected void renderNAry(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec)
throws java.io.IOException
- Throws:
java.io.IOException
renderNAry
protected void renderNAry(OpenMathBase[] params,
java.lang.String operator,
int iprec,
int prec,
boolean assoc)
throws java.io.IOException
- Throws:
java.io.IOException
renderApply
protected boolean renderApply(org.symcomp.openmath.OMSymbol oms,
OpenMathBase[] para,
int prec)
getPrec
protected java.lang.Integer getPrec(org.symcomp.openmath.OMSymbol oms)
renderBind
protected boolean renderBind(OpenMathBase om,
org.symcomp.openmath.OMVariable[] bvars,
OpenMathBase param,
int prec)
renderSymbol
protected boolean renderSymbol(org.symcomp.openmath.OMSymbol oms)
Copyright © 2010. All Rights Reserved.