src/jsx-node-front.jsx

The entry point module of JSX compiler on NodeJS

class NodePlatform extends Platform

Access to platform via NodeJS API

new NodePlatform()

new NodePlatform(root : string)

override function getRoot() : string

override function fileExists(name : string) : boolean

override function getFilesInDirectory(path : string) : Array.<string>

override function load(name : string) : string

override function save(outputFile : Nullable.<string>, content : string) : void

override function setWorkingDir(dir : string) : void

override function mkpath(path : string) : void

override function makeFileExecutable(file : string, runEnv : string) : void

override function execute(scriptFile : Nullable.<string>, jsSource : string, args : Array.<string>) : void

static function getEnvOpts() : Array.<string>

override function runCompilationServer(arg : variant) : number

class CompilationServerPlatform extends NodePlatform

NodePlatform variation for compiler server

new CompilationServerPlatform(root : string, reqId : number, req : ServerRequest, res : ServerResponse)

override function save(outputFile : Nullable.<string>, content : string) : void

override function log(message : string) : void

override function warn(message : string) : void

override function error(message : string) : void

override function execute(jsFile : Nullable.<string>, jsSource : string, jsArgs : Array.<string>) : void

function setStatusCode(statusCode : number) : void

function getContents() : Map.<variant>

override function makeFileExecutable(file : string, runEnv : string) : void

override function runCompilationServer(arg : variant) : number

class CompilationServer

static const var AUTO_SHUTDOWN : boolean

static const var LIFE : number

new CompilationServer(parentPlatform : Platform)

static function start(platform : Platform, port : int) : number

function shutdown(reason : string) : void

function handleRequest(request : ServerRequest, response : ServerResponse) : void

function handleGET(id : number, startTime : Date, request : ServerRequest, response : ServerResponse) : void

function finishRequest(id : number, startTime : Date, response : ServerResponse, statusCode : number, data : variant) : void