Class TSCNode
java.lang.Object
org.openrewrite.javascript.internal.tsc.TSCNode
- All Implemented Interfaces:
TSCV8Backed
- Direct Known Subclasses:
TSCNode.SourceFile
,TSCNode.TypeNode
,TSCSyntaxListNode
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.javascript.internal.tsc.TSCV8Backed
TSCV8Backed.DebugInfo, TSCV8Backed.Wrapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TSCNode
(TSCProgramContext programContext, com.caoccao.javet.values.reference.V8ValueObject nodeV8) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsPosition
(int position) @Nullable TSCNode
findNodeAtPosition
(int position) Only intended for debugging and tests.firstNodeContaining
(String text) firstNodeContaining
(String text, @Nullable TSCSyntaxKind kind) firstNodeWithText
(String text) @Nullable TSCNode
com.caoccao.javet.values.reference.V8ValueObject
int
@Nullable TSCNode
getChildNode
(String name) Deprecated.getChildNodeRequired
(String name) Deprecated.getChildNodes
(String name) Deprecated.int
getEnd()
@Nullable TSCNode
int
getStart()
int
@Nullable TSCSymbol
getText()
@Nullable TSCType
@Nullable TSCNode
@Nullable TSCNode
void
printTree
(PrintStream ps) int
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.openrewrite.javascript.internal.tsc.TSCV8Backed
as, getAllPropertiesForDebugging, getAllPropertyNames, getBooleanProperty, getConstructorName, getDebugInfo, getIndexInfoListProperty, getIndexInfoProperty, getIntProperty, getLongProperty, getNodeListProperty, getNodeProperty, getOptionalBooleanProperty, getOptionalIndexInfoListProperty, getOptionalIndexInfoProperty, getOptionalIntProperty, getOptionalLongProperty, getOptionalNodeListProperty, getOptionalNodeProperty, getOptionalSignatureListProperty, getOptionalSignatureProperty, getOptionalStringProperty, getOptionalSymbolListProperty, getOptionalSymbolProperty, getOptionalSyntaxKindProperty, getOptionalSyntaxListProperty, getOptionalTypeListProperty, getOptionalTypeNodeProperty, getOptionalTypeProperty, getOwnPropertyNames, getPropertyNonNull, getPropertyNullable, getPropertyUnsafe, getSignatureListProperty, getSignatureProperty, getStringProperty, getSymbolListProperty, getSymbolProperty, getSyntaxKindProperty, getSyntaxListProperty, getTS, getTypeChecker, getTypeListProperty, getTypeNodeProperty, getTypeProperty, hasProperty, invokeMethodBoolean, invokeMethodNonNull, invokeMethodNullable, invokeMethodUnsafe
-
Field Details
-
nodeV8
public final com.caoccao.javet.values.reference.V8ValueObject nodeV8
-
-
Constructor Details
-
TSCNode
protected TSCNode(TSCProgramContext programContext, com.caoccao.javet.values.reference.V8ValueObject nodeV8)
-
-
Method Details
-
getProgramContext
- Specified by:
getProgramContext
in interfaceTSCV8Backed
-
toString
-
syntaxKindCode
public int syntaxKindCode() -
syntaxKind
-
getTypeForNode
-
firstNodeContaining
-
firstNodeContaining
-
firstNodeWithText
-
firstNodeWithTextOrNull
-
findNodeAtPosition
Only intended for debugging and tests. -
containsPosition
public boolean containsPosition(int position) -
getSymbolForNode
-
getStartWithLeadingSpace
public int getStartWithLeadingSpace() -
getStart
public int getStart() -
getEnd
public int getEnd() -
getChildCount
public int getChildCount() -
getParent
-
nearestContainingNamedDeclaration
-
nearestContainingNamedDeclarationOrNull
-
getChildNode
Deprecated. -
getChildNodeRequired
Deprecated. -
getChildNodes
Deprecated. -
getSourceFile
-
assertSourceFile
-
getText
-
assertTypeNode
-
getAllChildNodes
-
printTree
-
getBackingV8Object
public com.caoccao.javet.values.reference.V8ValueObject getBackingV8Object()- Specified by:
getBackingV8Object
in interfaceTSCV8Backed
-