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
ConstructorsModifierConstructorDescriptionprotectedTSCNode(TSCProgramContext programContext, com.caoccao.javet.values.reference.V8ValueObject nodeV8) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPosition(int position) @Nullable TSCNodefindNodeAtPosition(int position) Only intended for debugging and tests.firstNodeContaining(String text) firstNodeContaining(String text, @Nullable TSCSyntaxKind kind) firstNodeWithText(String text) @Nullable TSCNodecom.caoccao.javet.values.reference.V8ValueObjectint@Nullable TSCNodegetChildNode(String name) Deprecated.getChildNodeRequired(String name) Deprecated.getChildNodes(String name) Deprecated.intgetEnd()@Nullable TSCNodeintgetStart()int@Nullable TSCSymbolgetText()@Nullable TSCType@Nullable TSCNode@Nullable TSCNodevoidprintTree(PrintStream ps) inttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getProgramContextin 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:
getBackingV8Objectin interfaceTSCV8Backed
-