Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Drasil.GOOL.RendererClassesOO
Documentation
class (CommonRenderSym r, FileSym r, InternalValueExp r, GetSet r, ObserverPattern r, StrategyPattern r, OOVariableValue r, OOValueExpression r, RenderClass r, ClassElim r, RenderFile r, InternalGetSet r, OORenderMethod r, RenderMod r, ModuleElim r, StateVarElim r, PermElim r) => OORenderSym r Source #
Instances
class BlockCommentSym r => RenderFile r where Source #
Methods
top :: r (Module r) -> r (Block r) Source #
bottom :: r (Block r) Source #
commentedMod :: SFile r -> FS (r (BlockComment r)) -> SFile r Source #
Instances
class PermElim r where Source #
Instances
class InternalGetSet r where Source #
Methods
getFunc :: SVariable r -> VSFunction r Source #
setFunc :: VSType r -> SVariable r -> SValue r -> VSFunction r Source #
Instances
class StateVarElim r where Source #
Instances
StateVarElim CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer Methods stateVar :: CSharpCode (StateVar CSharpCode) -> Doc Source # | |
StateVarElim CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: CppHdrCode (StateVar CppHdrCode) -> Doc Source # | |
StateVarElim CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: CppSrcCode (StateVar CppSrcCode) -> Doc Source # | |
StateVarElim JavaCode Source # | |
StateVarElim PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer Methods stateVar :: PythonCode (StateVar PythonCode) -> Doc Source # | |
StateVarElim SwiftCode Source # | |
Pair p => StateVarElim (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods stateVar :: p CppSrcCode CppHdrCode (StateVar (p CppSrcCode CppHdrCode)) -> Doc Source # |
type ParentSpec = Doc Source #
class BlockCommentSym r => RenderClass r where Source #
Methods
intClass :: Label -> r (Visibility r) -> r ParentSpec -> [CSStateVar r] -> [SMethod r] -> [SMethod r] -> SClass r Source #
inherit :: Maybe Label -> r ParentSpec Source #
implements :: [Label] -> r ParentSpec Source #
commentedClass :: CS (r (BlockComment r)) -> SClass r -> SClass r Source #
Instances
class ClassElim r where Source #
Instances
ClassElim CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer Methods class' :: CSharpCode (Class CSharpCode) -> Doc Source # | |
ClassElim CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods class' :: CppHdrCode (Class CppHdrCode) -> Doc Source # | |
ClassElim CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods class' :: CppSrcCode (Class CppSrcCode) -> Doc Source # | |
ClassElim JavaCode Source # | |
ClassElim PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer Methods class' :: PythonCode (Class PythonCode) -> Doc Source # | |
ClassElim SwiftCode Source # | |
Pair p => ClassElim (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods class' :: p CppSrcCode CppHdrCode (Class (p CppSrcCode CppHdrCode)) -> Doc Source # |
class RenderMod r where Source #
Methods
modFromData :: String -> FS Doc -> FSModule r Source #
updateModuleDoc :: (Doc -> Doc) -> r (Module r) -> r (Module r) Source #
Instances
class ModuleElim r where Source #
Instances
ModuleElim CSharpCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CSharpRenderer Methods module' :: CSharpCode (Module CSharpCode) -> Doc Source # | |
ModuleElim CppHdrCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods module' :: CppHdrCode (Module CppHdrCode) -> Doc Source # | |
ModuleElim CppSrcCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods module' :: CppSrcCode (Module CppSrcCode) -> Doc Source # | |
ModuleElim JavaCode Source # | |
ModuleElim PythonCode Source # | |
Defined in Drasil.GOOL.LanguageRenderer.PythonRenderer Methods module' :: PythonCode (Module PythonCode) -> Doc Source # | |
ModuleElim SwiftCode Source # | |
Pair p => ModuleElim (p CppSrcCode CppHdrCode) Source # | |
Defined in Drasil.GOOL.LanguageRenderer.CppRenderer Methods module' :: p CppSrcCode CppHdrCode (Module (p CppSrcCode CppHdrCode)) -> Doc Source # |
class (RenderMethod r, OOMethodTypeSym r) => OORenderMethod r where Source #
Methods
intMethod :: Bool -> Label -> r (Visibility r) -> r (Permanence r) -> MSMthdType r -> [MSParameter r] -> MSBody r -> SMethod r Source #
Main method?, name, publicprivate, staticdynamic, return type, parameters, body
intFunc :: Bool -> Label -> r (Visibility r) -> r (Permanence r) -> MSMthdType r -> [MSParameter r] -> MSBody r -> SMethod r Source #
True for main function, name, publicprivate, staticdynamic, return type, parameters, body
destructor :: [CSStateVar r] -> SMethod r 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 # |