Skip to content

Commit

Permalink
review fixes 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Bigorajski committed Sep 27, 2024
1 parent 442e275 commit 7ec6d19
Show file tree
Hide file tree
Showing 15 changed files with 807 additions and 333 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package pl.touk.nussknacker.engine.benchmarks.spel
import cats.data.Validated.{Invalid, Valid}
import org.openjdk.jmh.annotations._
import pl.touk.nussknacker.engine.api.context.ValidationContext
import pl.touk.nussknacker.engine.api.process.ClassExtractionSettings
import pl.touk.nussknacker.engine.api.typed.typing.{Typed, Unknown}
import pl.touk.nussknacker.engine.api.{Context, NodeId}
import pl.touk.nussknacker.engine.compile.ExpressionCompiler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package pl.touk.nussknacker.engine.benchmarks.spel

import cats.data.Validated.{Invalid, Valid}
import pl.touk.nussknacker.engine.api.context.ValidationContext
import pl.touk.nussknacker.engine.api.process.ClassExtractionSettings
import pl.touk.nussknacker.engine.api.typed.typing.{Typed, Unknown}
import pl.touk.nussknacker.engine.api.{Context, NodeId}
import pl.touk.nussknacker.engine.compile.ExpressionCompiler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,48 @@
{
"clazzName": {"refClazzName": "java.lang.CharSequence"},
"methods": {
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"charAt": [
{
"name": "charAt",
Expand Down Expand Up @@ -2823,6 +2865,48 @@
}
}
],
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"doubleValue": [
{
"name": "doubleValue",
Expand Down Expand Up @@ -2883,6 +2967,48 @@
{
"clazzName": {"type": "Unknown"},
"methods": {
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"toString": [
{
"name": "toString",
Expand Down Expand Up @@ -9814,6 +9940,48 @@
{
"clazzName": {"refClazzName": "java.time.ZoneId"},
"methods": {
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"getDisplayName": [
{
"name": "getDisplayName",
Expand Down Expand Up @@ -11137,6 +11305,48 @@
{
"clazzName": {"refClazzName": "java.time.temporal.Temporal"},
"methods": {
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"toString": [
{
"name": "toString",
Expand All @@ -11162,6 +11372,48 @@
"refClazzName": "java.util.Collection"
},
"methods": {
"canCastTo": [
{
"description": "Checks if a type can be casted to a given class",
"name": "canCastTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castTo": [
{
"description": "Casts a type to a given class or throws exception if type cannot be casted.",
"name": "castTo",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"castToOrNull": [
{
"description": "Casts a type to a given class or return null if type cannot be casted.",
"name": "castToOrNull",
"signatures": [
{
"noVarArgs": [
{"name": "className", "refClazz": {"refClazzName": "java.lang.String"}}
],
"result": {"type": "Unknown"}
}
]
}
],
"contains": [
{
"name": "contains",
Expand Down Expand Up @@ -12994,25 +13246,6 @@
{
"clazzName": {"refClazzName": "pl.touk.nussknacker.engine.variables.MetaVariables"},
"methods": {
"scenarioLabels": [
{
"name": "scenarioLabels",
"signature": {
"noVarArgs": [],
"result": {
"refClazzName": "java.util.List",
"params" : [
{
"display" : "String",
"params" : [],
"refClazzName" : "java.lang.String",
"type" : "TypedClass"
}
]
}
}
}
],
"processName": [
{
"name": "processName",
Expand Down Expand Up @@ -13047,6 +13280,25 @@
}
}
],
"scenarioLabels": [
{
"name": "scenarioLabels",
"signature": {
"noVarArgs": [],
"result": {
"params": [
{
"display": "String",
"params": [],
"refClazzName": "java.lang.String",
"type": "TypedClass"
}
],
"refClazzName": "java.util.List"
}
}
}
],
"toString": [
{
"name": "toString",
Expand All @@ -13067,15 +13319,15 @@
{
"name": "scenarioLabels",
"refClazz": {
"refClazzName": "java.util.List",
"params" : [
"params": [
{
"display" : "String",
"params" : [],
"refClazzName" : "java.lang.String",
"type" : "TypedClass"
"display": "String",
"params": [],
"refClazzName": "java.lang.String",
"type": "TypedClass"
}
]
],
"refClazzName": "java.util.List"
}
},
{
Expand Down
Loading

0 comments on commit 7ec6d19

Please sign in to comment.