toggle menu
moonlight
1.0-SNAPSHOT
jvm
switch theme
search in API
script
/
io.github.moonlightsuite.moonlight.script
/
TypeEnvironment
Type
Environment
public
class
TypeEnvironment
Members
Constructors
Type
Environment
Link copied to clipboard
public
void
TypeEnvironment
(
)
public
void
TypeEnvironment
(
Map
<
String
,
Array
<
String
>
>
customTypes
,
Map
<
String
,
MoonLightType
>
typeEnvironment
,
Map
<
String
,
Array
<
MoonLightType
>
>
formulas
,
Set
<
String
>
edges
,
Set
<
String
>
signal
,
Set
<
String
>
location
,
Set
<
String
>
constants
)
Functions
add
Link copied to clipboard
public
synchronized
void
add
(
String
name
,
MoonLightType
type
)
add
Constant
Link copied to clipboard
public
synchronized
void
addConstant
(
String
name
,
MoonLightType
type
)
add
Edge
Link copied to clipboard
public
synchronized
void
addEdge
(
String
name
,
MoonLightType
type
)
add
Formula
Link copied to clipboard
public
synchronized
void
addFormula
(
String
name
,
Array
<
MoonLightType
>
args
)
add
Local
Link copied to clipboard
public
TypeEnvironment
addLocal
(
Map
<
String
,
MoonLightType
>
localContext
)
add
Location
Link copied to clipboard
public
synchronized
void
addLocation
(
String
name
,
MoonLightType
type
)
add
Signal
Link copied to clipboard
public
synchronized
void
addSignal
(
String
name
,
MoonLightType
type
)
exists
Link copied to clipboard
public
boolean
exists
(
String
name
)
get
Arguments
Link copied to clipboard
public
Array
<
MoonLightType
>
getArguments
(
String
name
)
get
Type
Of
Link copied to clipboard
public
MoonLightType
getTypeOf
(
String
name
)
is
Valid
In
Link copied to clipboard
public
boolean
isValidIn
(
String
name
,
TypeChecker.EvaluationContext
evaluationContext
)
number
Of
Arguments
Link copied to clipboard
public
int
numberOfArguments
(
String
name
)
record
Type
Link copied to clipboard
public
synchronized
void
recordType
(
ScriptTypeContext scriptTypeContext
)