| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.GOOL.RendererClassesOO
Documentation
class (CommonRenderSym r vis smt md, FileSym r vis smt md svr att, InternalValueExp r, GetSet r, ObserverPattern r smt, StrategyPattern r smt, OOVariableValue r, OOValueExpression r, RenderClass r vis md svr, ClassElim r, RenderFile r, InternalGetSet r, OORenderMethod r vis md att, RenderMod r, ModuleElim r, StateVarElim r svr, PermElim r att) => OORenderSym r vis smt md svr att Source #
Instances
class BlockCommentSym r => RenderFile r where Source #
Methods
top :: r Module -> r Block Source #
commentedMod :: FS (r File) -> FS (r Doc) -> FS (r File) Source #
fileFromData :: FilePath -> FS (r Module) -> FS (r File) Source #
Instances
class PermElim r att where Source #
Instances
class InternalGetSet r where Source #
Methods
getFunc :: SVariable r -> VS (r FuncData) Source #
setFunc :: VS (r TypeData) -> SVariable r -> SValue r -> VS (r FuncData) Source #
Instances
class StateVarElim r svr | r -> svr where Source #
Instances
| StateVarElim CSharpCode StateVar Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer | |
| StateVarElim CppHdrCode StateVarData Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: CppHdrCode StateVarData -> Doc Source # | |
| StateVarElim CppSrcCode StateVarData Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: CppSrcCode StateVarData -> Doc Source # | |
| StateVarElim JavaCode StateVar Source # | |
| StateVarElim PythonCode StateVar Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer | |
| StateVarElim SwiftCode StateVar Source # | |
| Pair p => StateVarElim (p CppSrcCode CppHdrCode) StateVarData Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: p CppSrcCode CppHdrCode StateVarData -> Doc Source # | |
type ParentSpec = Doc Source #
class BlockCommentSym r => RenderClass r vis md svr | r -> vis md svr where Source #
Methods
intClass :: Label -> r vis -> r ParentSpec -> [CSStateVar r svr] -> [MS (r md)] -> [MS (r md)] -> CS (r Class) Source #
inherit :: Maybe Label -> r ParentSpec Source #
implements :: [Label] -> r ParentSpec Source #
commentedClass :: CS (r Doc) -> CS (r Class) -> CS (r Class) Source #
Instances
class ClassElim r where Source #
Instances
| ClassElim CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer | |
| ClassElim CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer | |
| ClassElim CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer | |
| ClassElim JavaCode Source # | |
| ClassElim PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer | |
| ClassElim SwiftCode Source # | |
| Pair p => ClassElim (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods class' :: p CppSrcCode CppHdrCode Class -> Doc Source # | |
class RenderMod r where Source #
Methods
modFromData :: String -> FS Doc -> FS (r Module) Source #
updateModuleDoc :: (Doc -> Doc) -> r Module -> r Module Source #
Instances
class ModuleElim r where Source #
Instances
| ModuleElim CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer | |
| ModuleElim CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer | |
| ModuleElim CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer | |
| ModuleElim JavaCode Source # | |
| ModuleElim PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer | |
| ModuleElim SwiftCode Source # | |
| Pair p => ModuleElim (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods module' :: p CppSrcCode CppHdrCode Module -> Doc Source # | |
class (RenderMethod r md, OOMethodTypeSym r) => OORenderMethod r vis md att | r -> vis att where Source #
Methods
intMethod :: Bool -> Label -> r vis -> r att -> MSMthdType r -> [MS (r ParamData)] -> MS (r Body) -> MS (r md) Source #
Main method?, name, publicprivate, classLevelinstanceLevel, return type, parameters, body
intFunc :: Bool -> Label -> r vis -> r att -> MSMthdType r -> [MS (r ParamData)] -> MS (r Body) -> MS (r md) Source #
True for main function, name, publicprivate, classLevelinstanceLevel, return type, parameters, body
destructor :: [CSStateVar r svr] -> MS (r md) Source #
Instances
class MethodTypeSym r => OOMethodTypeSym r where Source #
Methods
construct :: Label -> MSMthdType r Source #
Instances
| OOMethodTypeSym CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer Methods construct :: Label -> MSMthdType CSharpCode Source # | |
| OOMethodTypeSym CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods construct :: Label -> MSMthdType CppHdrCode Source # | |
| OOMethodTypeSym CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods construct :: Label -> MSMthdType CppSrcCode Source # | |
| OOMethodTypeSym JavaCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.JavaRenderer | |
| OOMethodTypeSym PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer Methods construct :: Label -> MSMthdType PythonCode Source # | |
| OOMethodTypeSym SwiftCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.SwiftRenderer | |
| Pair p => OOMethodTypeSym (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods construct :: Label -> MSMthdType (p CppSrcCode CppHdrCode) Source # | |