Class StringPart
A part of a string literal formed by implicit concatenation.
For example the string literal “abc” expressed in the source as "a" "b" "c"
would be composed of three StringPart
s.
Import path
import python
Direct supertypes
Indirect supertypes
Predicates
contextSize | Holds if the content of string |
getAChildNode | Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). |
getContentLength | Gets the length of the content, that is the text between the prefix and the quote. See |
getLocation | |
getScope | Gets the scope that this node occurs in |
toString |
Inherited predicates
contains | Whether this contains | from AstNode |
containsInScope | Whether this contains | from AstNode |
getAFlowNode | Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a | from AstNode |
getParent | Gets a parent of this implicitly concatenated part | from StringPart_ |
getParentNode | Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. | from AstNode |
getText | Gets the text of this implicitly concatenated part. | from StringPart_ |
isArtificial | Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source | from AstNode |