shexs
shexs
buildinfo
BuildInfo
es.weso.shexs
DataFormat
DataPath
DataSpec
DataSpec
EndpointOpt
EndpointOpt
Main
MainState
MainState
Manifest
Manifest
OutputOpt
SchemaAction
SchemaAction
ShowInheritanceGraph
ShowShape
SchemaCommand
SchemaCommand
SchemaMapping
SchemaPath
SchemaSpec
SchemaSpec
SchemaURI
ShExS
ShExsOptions
ShExsOptions
ShapeMapSpec
ShapeMapSpec
ShapePathEval
ShowMethod
ShowMethod
ShowFlat
ShowJSON
ShowPPrint
ShowQualified
ShowResult
UriOpt
Validate
Validate
ValidatorVersion
ValidatorVersion
Version21
Version22
VersionRef
VerboseLevelOpt
WikibaseValidate
WikibaseValidate
shexs
/
es.weso.shexs
/
Main
Main
object
Main
extends
CommandIOApp
Graph
Supertypes
Self type
class
CommandIOApp
trait
IOApp
class
Object
trait
Matchable
class
Any
Main
.type
Value members
Value members
Concrete methods
def
doSchemaMapping
(
smc:
SchemaMapping
):
IO
[
ExitCode
]
def
doShapePathEval
(
spc:
ShapePathEval
):
IO
[
ExitCode
]
def
info
(
msg:
String
,
verbose:
Boolean
):
IO
[
Unit
]
def
infoError
(
err:
Throwable
):
IO
[
ExitCode
]
override
def
main
:
Opts
[
IO
[
ExitCode
]]
Definition Classes
CommandIOApp
Inherited methods
final
def
main
(
args:
Array
[
String
]):
Unit
Inherited from:
_$1.toLowerCase())).filterNot(((_$2:String)=>_$2.contains("windows"))).flatMap[String](((_$3:String)=>List.apply[String]("USR1","INFO"))) liveFiberSnapshotSignal.foreach[Unit](((name:String)=>Signal.handle(name,((_$4:
)=>IOApp.this.runtime.fiberMonitor.liveFiberSnapshot(((_$5:String)=>System.err.print(_$5))))))) }else() valrt:Runtime=Runtime.getRuntime() valqueue:ArrayBlockingQueue[AnyRef]=newArrayBlockingQueue[AnyRef](1) valcounter:AtomicInteger=newAtomicInteger(1) valioa:IO[ExitCode]=IOApp.this.run(wrapRefArray[String](args).toList) valfiber:IOFiber[ExitCode]=ioa.unsafeRunFiber({ counter.decrementAndGet() queue.offer(newCancellationException("IOAppmainfiberwascanceled")) () },((t:Throwable)=>{ counter.decrementAndGet() queue.offer(t) () }),((a:ExitCode)=>{ counter.decrementAndGet() queue.offer(a) () }))(IOApp.this.runtime) if(isStackTracing){ IOApp.this.runtime.fiberMonitor.monitorSuspended(fiber) () }else() defhandleShutdown():Unit={ if(counter.compareAndSet(1,0)){ valcancelLatch:CountDownLatch=newCountDownLatch(1) fiber.cancel.unsafeRunAsync(((_$6:Either[Throwable,Unit])=>cancelLatch.countDown()))(IOApp.this.runtime) valtimeout:Duration=IOApp.this.runtimeConfig.shutdownHookTimeout if(timeout.isFinite){ blocking[Boolean](cancelLatch.await(timeout.length,timeout.unit)) () }elseblocking[Unit](cancelLatch.await()) }else() IOApp.this.runtime.shutdown.apply() } valhook:Thread=newThread((()=>handleShutdown())) hook.setName("io-cancel-hook") tryrt.addShutdownHook(hook)catch{ case_:IllegalStateException=> handleShutdown() } try{ valresult:Object=blocking[Object](queue.take()) resultmatch{ caseec:ExitCode=> IOApp.this.runtime.shutdown.apply() if(ec.==(ExitCode.Success))if(isForked.&&(NonDaemonThreadLogger.isEnabled()))newNonDaemonThreadLogger().start()else()elseif(isForked)System.exit(ec.code)else() casee:CancellationException=> if(isForked)System.exit(1)elsethrowe caseNonFatal(t)=> if(isForked){ `t₂`.printStackTrace() System.exit(1) }elsethrow`t₂` caset:Throwable=> `t₃`.printStackTrace() rt.halt(1) } }catch{ case_:InterruptedException=> hook.start() rt.removeShutdownHook(hook) Thread.currentThread().interrupt() } }">IOApp
final override
def
run
(
args:
List
[
String
]):
IO
[
ExitCode
]
Definition Classes
CommandIOApp
->
IOApp
Inherited from:
CommandIOApp
Concrete fields
lazy
val
mappingOpt
:
Opts
[
Path
]
lazy
val
schemaMappingCommand
:
Opts
[
SchemaMapping
]
lazy
val
shapePathOpt
:
Opts
[
String
]
lazy
val
shapePathValidateCommand
:
Opts
[
ShapePathEval
]