Class TSCObjectCache<T extends TSCV8Backed>
java.lang.Object
org.openrewrite.javascript.internal.tsc.TSCV8ValueHolder
org.openrewrite.javascript.internal.tsc.TSCObjectCache<T>
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract T
getOrCreate
(TSCProgramContext programContext, com.caoccao.javet.values.reference.V8ValueObject objectV8) static <T extends TSCV8Backed>
TSCObjectCache<T>usingInternalKey
(TSCObjectCache.InstanceConstructor<T> makeInstance) static <T extends TSCV8Backed>
TSCObjectCache<T>usingPropertyAsKey
(String propertyName, TSCObjectCache.InstanceConstructor<T> makeInstance) Methods inherited from class org.openrewrite.javascript.internal.tsc.TSCV8ValueHolder
close, lifecycleLinked
-
Constructor Details
-
TSCObjectCache
public TSCObjectCache()
-
-
Method Details
-
usingInternalKey
public static <T extends TSCV8Backed> TSCObjectCache<T> usingInternalKey(TSCObjectCache.InstanceConstructor<T> makeInstance) -
usingPropertyAsKey
public static <T extends TSCV8Backed> TSCObjectCache<T> usingPropertyAsKey(String propertyName, TSCObjectCache.InstanceConstructor<T> makeInstance) -
getOrCreate
public abstract T getOrCreate(TSCProgramContext programContext, com.caoccao.javet.values.reference.V8ValueObject objectV8)
-