Drasil.GOOL.LanguageRenderer.JavaRenderer
Contents
Description
The logic to render Java code is contained in this module
newtype JavaCode a Source #
Constructors
Fields
Defined in Drasil.GOOL.LanguageRenderer.JavaRenderer
Methods
pure :: a -> JavaCode a #
(<*>) :: JavaCode (a -> b) -> JavaCode a -> JavaCode b #
liftA2 :: (a -> b -> c) -> JavaCode a -> JavaCode b -> JavaCode c #
(*>) :: JavaCode a -> JavaCode b -> JavaCode b #
(<*) :: JavaCode a -> JavaCode b -> JavaCode a #
fmap :: (a -> b) -> JavaCode a -> JavaCode b #
(<$) :: a -> JavaCode b -> JavaCode a #
(>>=) :: JavaCode a -> (a -> JavaCode b) -> JavaCode b #
(>>) :: JavaCode a -> JavaCode b -> JavaCode b #
return :: a -> JavaCode a #
toConcreteExc :: ExceptionType -> JavaCode Exception Source #
pointerArg :: SValue JavaCode -> SValue JavaCode Source #
(&-=) :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
(&+=) :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
(&++) :: SVariable JavaCode -> MSStatement JavaCode Source #
(&--) :: SVariable JavaCode -> MSStatement JavaCode Source #
assign :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
Associated Types
type Block JavaCode Source #
block :: [MSStatement JavaCode] -> MSBlock JavaCode Source #
type Body JavaCode Source #
body :: [MSBlock JavaCode] -> MSBody JavaCode Source #
addComments :: Label -> MSBody JavaCode -> MSBody JavaCode Source #
(?!) :: SValue JavaCode -> SValue JavaCode Source #
(?&&) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?||) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
arg :: Integer -> SValue JavaCode Source #
argsList :: SValue JavaCode Source #
argExists :: Integer -> SValue JavaCode Source #
comment :: Comment -> MSStatement JavaCode Source #
(?<) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?<=) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?>) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?>=) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?==) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(?!=) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
break :: MSStatement JavaCode Source #
continue :: MSStatement JavaCode Source #
returnStmt :: SValue JavaCode -> MSStatement JavaCode Source #
throw :: Label -> MSStatement JavaCode Source #
ifCond :: [(SValue JavaCode, MSBody JavaCode)] -> MSBody JavaCode -> MSStatement JavaCode Source #
switch :: SValue JavaCode -> [(SValue JavaCode, MSBody JavaCode)] -> MSBody JavaCode -> MSStatement JavaCode Source #
ifExists :: SValue JavaCode -> MSBody JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
for :: MSStatement JavaCode -> SValue JavaCode -> MSStatement JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
forRange :: SVariable JavaCode -> SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
forEach :: SVariable JavaCode -> SValue JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
while :: SValue JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
tryCatch :: MSBody JavaCode -> MSBody JavaCode -> MSStatement JavaCode Source #
assert :: SValue JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
varDec :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> MSStatement JavaCode Source #
varDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> SValue JavaCode -> MSStatement JavaCode Source #
listDec :: Integer -> SVariable JavaCode -> JavaCode (Scope JavaCode) -> MSStatement JavaCode Source #
listDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SValue JavaCode] -> MSStatement JavaCode Source #
setDec :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> MSStatement JavaCode Source #
setDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> SValue JavaCode -> MSStatement JavaCode Source #
arrayDec :: Integer -> SVariable JavaCode -> JavaCode (Scope JavaCode) -> MSStatement JavaCode Source #
arrayDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SValue JavaCode] -> MSStatement JavaCode Source #
constDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> SValue JavaCode -> MSStatement JavaCode Source #
funcDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SVariable JavaCode] -> MSBody JavaCode -> MSStatement JavaCode Source #
inOutCall :: InOutCall JavaCode Source #
extInOutCall :: Library -> InOutCall JavaCode Source #
type Function JavaCode Source #
print :: SValue JavaCode -> MSStatement JavaCode Source #
printLn :: SValue JavaCode -> MSStatement JavaCode Source #
printStr :: String -> MSStatement JavaCode Source #
printStrLn :: String -> MSStatement JavaCode Source #
printFile :: SValue JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
printFileLn :: SValue JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
printFileStr :: SValue JavaCode -> String -> MSStatement JavaCode Source #
printFileStrLn :: SValue JavaCode -> String -> MSStatement JavaCode Source #
getInput :: SVariable JavaCode -> MSStatement JavaCode Source #
discardInput :: MSStatement JavaCode Source #
getFileInput :: SValue JavaCode -> SVariable JavaCode -> MSStatement JavaCode Source #
discardFileInput :: SValue JavaCode -> MSStatement JavaCode Source #
openFileR :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
openFileW :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
openFileA :: SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
closeFile :: SValue JavaCode -> MSStatement JavaCode Source #
getFileInputLine :: SValue JavaCode -> SVariable JavaCode -> MSStatement JavaCode Source #
discardFileLine :: SValue JavaCode -> MSStatement JavaCode Source #
getFileInputAll :: SValue JavaCode -> SVariable JavaCode -> MSStatement JavaCode Source #
listSlice' :: Maybe (SValue JavaCode) -> Maybe (SValue JavaCode) -> Maybe (SValue JavaCode) -> SVariable JavaCode -> SValue JavaCode -> MSBlock JavaCode Source #
intToIndex :: SValue JavaCode -> SValue JavaCode Source #
indexToInt :: SValue JavaCode -> SValue JavaCode Source #
listSize :: SValue JavaCode -> SValue JavaCode Source #
listAdd :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
listAppend :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
listAccess :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
listSet :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
indexOf :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
litTrue :: SValue JavaCode Source #
litFalse :: SValue JavaCode Source #
litChar :: Char -> SValue JavaCode Source #
litDouble :: Double -> SValue JavaCode Source #
litFloat :: Float -> SValue JavaCode Source #
litInt :: Integer -> SValue JavaCode Source #
litString :: String -> SValue JavaCode Source #
litArray :: VSType JavaCode -> [SValue JavaCode] -> SValue JavaCode Source #
litList :: VSType JavaCode -> [SValue JavaCode] -> SValue JavaCode Source #
litSet :: VSType JavaCode -> [SValue JavaCode] -> SValue JavaCode Source #
pi :: SValue JavaCode Source #
type Method JavaCode Source #
docMain :: MSBody JavaCode -> SMethod JavaCode Source #
function :: Label -> JavaCode (Visibility JavaCode) -> VSType JavaCode -> [MSParameter JavaCode] -> MSBody JavaCode -> SMethod JavaCode Source #
mainFunction :: MSBody JavaCode -> SMethod JavaCode Source #
docFunc :: String -> [String] -> Maybe String -> SMethod JavaCode -> SMethod JavaCode Source #
inOutFunc :: Label -> JavaCode (Visibility JavaCode) -> InOutFunc JavaCode Source #
docInOutFunc :: Label -> JavaCode (Visibility JavaCode) -> DocInOutFunc JavaCode Source #
(#~) :: SValue JavaCode -> SValue JavaCode Source #
(#/^) :: SValue JavaCode -> SValue JavaCode Source #
(#|) :: SValue JavaCode -> SValue JavaCode Source #
(#+) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(#-) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(#*) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(#/) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(#%) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
(#^) :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
log :: SValue JavaCode -> SValue JavaCode Source #
ln :: SValue JavaCode -> SValue JavaCode Source #
exp :: SValue JavaCode -> SValue JavaCode Source #
sin :: SValue JavaCode -> SValue JavaCode Source #
cos :: SValue JavaCode -> SValue JavaCode Source #
tan :: SValue JavaCode -> SValue JavaCode Source #
csc :: SValue JavaCode -> SValue JavaCode Source #
sec :: SValue JavaCode -> SValue JavaCode Source #
cot :: SValue JavaCode -> SValue JavaCode Source #
arcsin :: SValue JavaCode -> SValue JavaCode Source #
arccos :: SValue JavaCode -> SValue JavaCode Source #
arctan :: SValue JavaCode -> SValue JavaCode Source #
floor :: SValue JavaCode -> SValue JavaCode Source #
ceil :: SValue JavaCode -> SValue JavaCode Source #
type Parameter JavaCode Source #
param :: SVariable JavaCode -> MSParameter JavaCode Source #
pointerParam :: SVariable JavaCode -> MSParameter JavaCode Source #
type Scope JavaCode Source #
global :: JavaCode (Scope JavaCode) Source #
mainFn :: JavaCode (Scope JavaCode) Source #
local :: JavaCode (Scope JavaCode) Source #
contains :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
setAdd :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
setRemove :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
setUnion :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
type Statement JavaCode Source #
valStmt :: SValue JavaCode -> MSStatement JavaCode Source #
emptyStmt :: MSStatement JavaCode Source #
multi :: [MSStatement JavaCode] -> MSStatement JavaCode Source #
stringSplit :: Char -> SVariable JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
stringListVals :: [SVariable JavaCode] -> SValue JavaCode -> MSStatement JavaCode Source #
stringListLists :: [SVariable JavaCode] -> SValue JavaCode -> MSStatement JavaCode Source #
thunkAssign :: SVariable JavaCode -> VSThunk JavaCode -> MSStatement JavaCode Source #
type Thunk JavaCode Source #
getType :: JavaCode (Type JavaCode) -> CodeType Source #
getTypeString :: JavaCode (Type JavaCode) -> String Source #
type Type JavaCode Source #
bool :: VSType JavaCode Source #
int :: VSType JavaCode Source #
float :: VSType JavaCode Source #
double :: VSType JavaCode Source #
char :: VSType JavaCode Source #
string :: VSType JavaCode Source #
infile :: VSType JavaCode Source #
outfile :: VSType JavaCode Source #
listType :: VSType JavaCode -> VSType JavaCode Source #
setType :: VSType JavaCode -> VSType JavaCode Source #
arrayType :: VSType JavaCode -> VSType JavaCode Source #
listInnerType :: VSType JavaCode -> VSType JavaCode Source #
funcType :: [VSType JavaCode] -> VSType JavaCode -> VSType JavaCode Source #
void :: VSType JavaCode Source #
inlineIf :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> SValue JavaCode Source #
funcAppMixedArgs :: MixedCall JavaCode Source #
extFuncAppMixedArgs :: Library -> MixedCall JavaCode Source #
libFuncAppMixedArgs :: Library -> MixedCall JavaCode Source #
lambda :: [SVariable JavaCode] -> SValue JavaCode -> SValue JavaCode Source #
notNull :: SValue JavaCode -> SValue JavaCode Source #
type Value JavaCode Source #
valueType :: JavaCode (Value JavaCode) -> JavaCode (Type JavaCode) Source #
variableName :: JavaCode (Variable JavaCode) -> String Source #
variableType :: JavaCode (Variable JavaCode) -> JavaCode (Type JavaCode) Source #
type Variable JavaCode Source #
var :: Label -> VSType JavaCode -> SVariable JavaCode Source #
constant :: Label -> VSType JavaCode -> SVariable JavaCode Source #
extVar :: Library -> Label -> VSType JavaCode -> SVariable JavaCode Source #
arrayElem :: Integer -> SVariable JavaCode -> SVariable JavaCode Source #
valueOf :: SVariable JavaCode -> SValue JavaCode Source #
vecDec :: Integer -> SVariable JavaCode -> JavaCode (Scope JavaCode) -> MSStatement JavaCode Source #
vecDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SValue JavaCode] -> MSStatement JavaCode Source #
vecScale :: SValue JavaCode -> VSThunk JavaCode -> VSThunk JavaCode Source #
vecAdd :: VSThunk JavaCode -> VSThunk JavaCode -> VSThunk JavaCode Source #
vecIndex :: SValue JavaCode -> VSThunk JavaCode -> SValue JavaCode Source #
vecDot :: VSThunk JavaCode -> VSThunk JavaCode -> VSThunk JavaCode Source #
vecThunk :: SVariable JavaCode -> VSThunk JavaCode Source #
vecType :: VSType JavaCode -> VSType JavaCode Source #
type Visibility JavaCode Source #
private :: JavaCode (Visibility JavaCode) Source #
public :: JavaCode (Visibility JavaCode) Source #
type Class JavaCode Source #
buildClass :: Maybe Label -> [CSStateVar JavaCode] -> [SMethod JavaCode] -> [SMethod JavaCode] -> SClass JavaCode Source #
extraClass :: Label -> Maybe Label -> [CSStateVar JavaCode] -> [SMethod JavaCode] -> [SMethod JavaCode] -> SClass JavaCode Source #
implementingClass :: Label -> [Label] -> [CSStateVar JavaCode] -> [SMethod JavaCode] -> [SMethod JavaCode] -> SClass JavaCode Source #
docClass :: String -> SClass JavaCode -> SClass JavaCode Source #
type File JavaCode Source #
fileDoc :: FSModule JavaCode -> SFile JavaCode Source #
docMod :: String -> [String] -> String -> SFile JavaCode -> SFile JavaCode Source #
get :: SValue JavaCode -> SVariable JavaCode -> SValue JavaCode Source #
set :: SValue JavaCode -> SVariable JavaCode -> SValue JavaCode -> SValue JavaCode Source #
objMethodCallMixedArgs' :: Label -> VSType JavaCode -> SValue JavaCode -> [SValue JavaCode] -> NamedArgs JavaCode -> SValue JavaCode Source #
type Module JavaCode Source #
buildModule :: Label -> [Label] -> [SMethod JavaCode] -> [SClass JavaCode] -> FSModule JavaCode Source #
objDecDef :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> SValue JavaCode -> MSStatement JavaCode Source #
objDecNew :: SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SValue JavaCode] -> MSStatement JavaCode Source #
extObjDecNew :: Library -> SVariable JavaCode -> JavaCode (Scope JavaCode) -> [SValue JavaCode] -> MSStatement JavaCode Source #
selfInOutCall :: InOutCall JavaCode Source #
func :: Label -> VSType JavaCode -> [SValue JavaCode] -> VSFunction JavaCode Source #
objAccess :: SValue JavaCode -> VSFunction JavaCode -> SValue JavaCode Source #
method :: Label -> JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> VSType JavaCode -> [MSParameter JavaCode] -> MSBody JavaCode -> SMethod JavaCode Source #
getMethod :: SVariable JavaCode -> SMethod JavaCode Source #
setMethod :: SVariable JavaCode -> SMethod JavaCode Source #
constructor :: [MSParameter JavaCode] -> Initializers JavaCode -> MSBody JavaCode -> SMethod JavaCode Source #
inOutMethod :: Label -> JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> InOutFunc JavaCode Source #
docInOutMethod :: Label -> JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> DocInOutFunc JavaCode Source #
obj :: ClassName -> VSType JavaCode Source #
selfFuncAppMixedArgs :: MixedCall JavaCode Source #
newObjMixedArgs :: MixedCtorCall JavaCode Source #
extNewObjMixedArgs :: Library -> MixedCtorCall JavaCode Source #
libNewObjMixedArgs :: Library -> MixedCtorCall JavaCode Source #
staticVar' :: Bool -> Label -> VSType JavaCode -> SVariable JavaCode Source #
self :: SVariable JavaCode Source #
classVar :: VSType JavaCode -> SVariable JavaCode -> SVariable JavaCode Source #
extClassVar :: VSType JavaCode -> SVariable JavaCode -> SVariable JavaCode Source #
objVar :: SVariable JavaCode -> SVariable JavaCode -> SVariable JavaCode Source #
objVarSelf :: SVariable JavaCode -> SVariable JavaCode Source #
notifyObservers :: VSFunction JavaCode -> VSType JavaCode -> MSStatement JavaCode Source #
type Permanence JavaCode Source #
static :: JavaCode (Permanence JavaCode) Source #
dynamic :: JavaCode (Permanence JavaCode) Source #
type Program JavaCode Source #
prog :: Label -> Label -> [SFile JavaCode] -> GSProgram JavaCode Source #
type StateVar JavaCode Source #
stateVar :: JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> SVariable JavaCode -> CSStateVar JavaCode Source #
stateVarDef :: JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> SVariable JavaCode -> SValue JavaCode -> CSStateVar JavaCode Source #
constVar :: JavaCode (Visibility JavaCode) -> SVariable JavaCode -> SValue JavaCode -> CSStateVar JavaCode Source #
runStrategy :: Label -> [(Label, MSBody JavaCode)] -> Maybe (SValue JavaCode) -> Maybe (SVariable JavaCode) -> MSBlock JavaCode Source #
type BinaryOp JavaCode Source #
equalOp :: VSBinOp JavaCode Source #
notEqualOp :: VSBinOp JavaCode Source #
greaterOp :: VSBinOp JavaCode Source #
greaterEqualOp :: VSBinOp JavaCode Source #
lessOp :: VSBinOp JavaCode Source #
lessEqualOp :: VSBinOp JavaCode Source #
plusOp :: VSBinOp JavaCode Source #
minusOp :: VSBinOp JavaCode Source #
multOp :: VSBinOp JavaCode Source #
divideOp :: VSBinOp JavaCode Source #
powerOp :: VSBinOp JavaCode Source #
moduloOp :: VSBinOp JavaCode Source #
andOp :: VSBinOp JavaCode Source #
orOp :: VSBinOp JavaCode Source #
blockComment' :: JavaCode (BlockComment JavaCode) -> Doc Source #
type BlockComment JavaCode Source #
blockComment :: [String] -> JavaCode (BlockComment JavaCode) Source #
docComment :: State a [String] -> State a (JavaCode (BlockComment JavaCode)) Source #
block :: JavaCode (Block JavaCode) -> Doc Source #
body :: JavaCode (Body JavaCode) -> Doc Source #
functionType :: JavaCode (Function JavaCode) -> JavaCode (Type JavaCode) Source #
function :: JavaCode (Function JavaCode) -> Doc Source #
import' :: JavaCode (Import JavaCode) -> Doc Source #
type Import JavaCode Source #
langImport :: Label -> JavaCode (Import JavaCode) Source #
modImport :: Label -> JavaCode (Import JavaCode) Source #
multiAssign :: [SVariable JavaCode] -> [SValue JavaCode] -> MSStatement JavaCode Source #
multiReturn :: [SValue JavaCode] -> MSStatement JavaCode Source #
printSt :: Bool -> Maybe (SValue JavaCode) -> SValue JavaCode -> SValue JavaCode -> MSStatement JavaCode Source #
listSizeFunc :: SValue JavaCode -> VSFunction JavaCode Source #
listAddFunc :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> VSFunction JavaCode Source #
listAppendFunc :: SValue JavaCode -> SValue JavaCode -> VSFunction JavaCode Source #
listAccessFunc :: VSType JavaCode -> SValue JavaCode -> VSFunction JavaCode Source #
listSetFunc :: SValue JavaCode -> SValue JavaCode -> SValue JavaCode -> VSFunction JavaCode Source #
type' :: JavaCode (Type JavaCode) -> Doc Source #
variableBind :: JavaCode (Variable JavaCode) -> Binding Source #
variable :: JavaCode (Variable JavaCode) -> Doc Source #
method :: JavaCode (Method JavaCode) -> Doc Source #
type MethodType JavaCode Source #
mType :: VSType JavaCode -> MSMthdType JavaCode Source #
uOp :: JavaCode (UnaryOp JavaCode) -> Doc Source #
bOp :: JavaCode (BinaryOp JavaCode) -> Doc Source #
uOpPrec :: JavaCode (UnaryOp JavaCode) -> Int Source #
bOpPrec :: JavaCode (BinaryOp JavaCode) -> Int Source #
parameterName :: JavaCode (Parameter JavaCode) -> Label Source #
parameterType :: JavaCode (Parameter JavaCode) -> JavaCode (Type JavaCode) Source #
parameter :: JavaCode (Parameter JavaCode) -> Doc Source #
multiBlock :: [MSBlock JavaCode] -> MSBlock JavaCode Source #
multiBody :: [MSBody JavaCode] -> MSBody JavaCode Source #
funcFromData :: Doc -> VSType JavaCode -> VSFunction JavaCode Source #
commentedFunc :: MS (JavaCode (BlockComment JavaCode)) -> SMethod JavaCode -> SMethod JavaCode Source #
mthdFromData :: VisibilityTag -> Doc -> SMethod JavaCode Source #
paramFromData :: SVariable JavaCode -> Doc -> MSParameter JavaCode Source #
stmt :: MSStatement JavaCode -> MSStatement JavaCode Source #
loopStmt :: MSStatement JavaCode -> MSStatement JavaCode Source #
stmtFromData :: Doc -> Terminator -> MSStatement JavaCode Source #
multiType :: [VSType JavaCode] -> VSType JavaCode Source #
typeFromData :: CodeType -> String -> Doc -> VSType JavaCode Source #
inputFunc :: SValue JavaCode Source #
printFunc :: SValue JavaCode Source #
printLnFunc :: SValue JavaCode Source #
printFileFunc :: SValue JavaCode -> SValue JavaCode Source #
printFileLnFunc :: SValue JavaCode -> SValue JavaCode Source #
cast :: VSType JavaCode -> SValue JavaCode -> SValue JavaCode Source #
call :: Maybe Library -> Maybe Doc -> MixedCall JavaCode Source #
valFromData :: Maybe Int -> Maybe Integer -> VSType JavaCode -> Doc -> SValue JavaCode Source #
varFromData :: Binding -> String -> VSType JavaCode -> Doc -> SVariable JavaCode Source #
visibilityFromData :: VisibilityTag -> Doc -> JavaCode (Visibility JavaCode) Source #
scopeData :: JavaCode (Scope JavaCode) -> ScopeData Source #
statement :: JavaCode (Statement JavaCode) -> Doc Source #
statementTerm :: JavaCode (Statement JavaCode) -> Terminator Source #
type UnaryOp JavaCode Source #
notOp :: VSUnOp JavaCode Source #
negateOp :: VSUnOp JavaCode Source #
sqrtOp :: VSUnOp JavaCode Source #
absOp :: VSUnOp JavaCode Source #
logOp :: VSUnOp JavaCode Source #
lnOp :: VSUnOp JavaCode Source #
expOp :: VSUnOp JavaCode Source #
sinOp :: VSUnOp JavaCode Source #
cosOp :: VSUnOp JavaCode Source #
tanOp :: VSUnOp JavaCode Source #
asinOp :: VSUnOp JavaCode Source #
acosOp :: VSUnOp JavaCode Source #
atanOp :: VSUnOp JavaCode Source #
floorOp :: VSUnOp JavaCode Source #
ceilOp :: VSUnOp JavaCode Source #
valuePrec :: JavaCode (Value JavaCode) -> Maybe Int Source #
valueInt :: JavaCode (Value JavaCode) -> Maybe Integer Source #
value :: JavaCode (Value JavaCode) -> Doc Source #
visibility :: JavaCode (Visibility JavaCode) -> Doc Source #
class' :: JavaCode (Class JavaCode) -> Doc Source #
getFunc :: SVariable JavaCode -> VSFunction JavaCode Source #
setFunc :: VSType JavaCode -> SVariable JavaCode -> SValue JavaCode -> VSFunction JavaCode Source #
module' :: JavaCode (Module JavaCode) -> Doc Source #
construct :: Label -> MSMthdType JavaCode Source #
intMethod :: Bool -> Label -> JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> MSMthdType JavaCode -> [MSParameter JavaCode] -> MSBody JavaCode -> SMethod JavaCode Source #
intFunc :: Bool -> Label -> JavaCode (Visibility JavaCode) -> JavaCode (Permanence JavaCode) -> MSMthdType JavaCode -> [MSParameter JavaCode] -> MSBody JavaCode -> SMethod JavaCode Source #
destructor :: [CSStateVar JavaCode] -> SMethod JavaCode Source #
perm :: JavaCode (Permanence JavaCode) -> Doc Source #
binding :: JavaCode (Permanence JavaCode) -> Binding Source #
intClass :: Label -> JavaCode (Visibility JavaCode) -> JavaCode ParentSpec -> [CSStateVar JavaCode] -> [SMethod JavaCode] -> [SMethod JavaCode] -> SClass JavaCode Source #
inherit :: Maybe Label -> JavaCode ParentSpec Source #
implements :: [Label] -> JavaCode ParentSpec Source #
commentedClass :: CS (JavaCode (BlockComment JavaCode)) -> SClass JavaCode -> SClass JavaCode Source #
top :: JavaCode (Module JavaCode) -> JavaCode (Block JavaCode) Source #
bottom :: JavaCode (Block JavaCode) Source #
commentedMod :: SFile JavaCode -> FS (JavaCode (BlockComment JavaCode)) -> SFile JavaCode Source #
fileFromData :: FilePath -> FSModule JavaCode -> SFile JavaCode Source #
modFromData :: String -> FS Doc -> FSModule JavaCode Source #
updateModuleDoc :: (Doc -> Doc) -> JavaCode (Module JavaCode) -> JavaCode (Module JavaCode) Source #
stateVar :: JavaCode (StateVar JavaCode) -> Doc Source #
jName :: String Source #
jVersion :: String Source #