Class AdvancedFormatting::AdvancedFormatString

Direct supertypes

Indirect supertypes

Inherited predicates

booleanValuefrom StrConst
contains

Whether this contains inner syntactically

from AstNode
containsInScope

Whether this contains inner syntactically and inner has the same scope as this

from AstNode
defines

Whether this expression defines variable v If doing dataflow, then consider using SsaVariable.getDefinition() for more precision.

from Expr
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().

from StrConst
getAFlowNode

Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a ControlFlowNode

from AstNode
getASubExpression

Gets an immediate (non-nested) sub-expression of this expression

from StrConst
getAnImplicitlyConcatenatedPart

Gets an implicitly_concatenated_part of this string literal.

from Str_
getEnclosingModule

Gets the module in which this expression occurs

from Expr
getField

Gets the text of the formatting field at [start, end)

from PossibleAdvancedFormatString
getFieldName

Gets the name of the formatting field at [start, end)

from PossibleAdvancedFormatString
getFieldNumber

Gets the number of the formatting field at [start, end)

from PossibleAdvancedFormatString
getImplicitlyConcatenatedPart

Gets the nth implicitly_concatenated_part of this string literal.

from Str_
getImplicitlyConcatenatedParts

Gets the implicitly_concatenated_parts of this string literal.

from Str_
getLiteralObjectfrom StrConst
getLocationfrom Expr
getParentfrom Expr_
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
getPrefix

Gets the prefix of this string literal.

from Str_
getS

Gets the text of this string literal.

from Str_
getScope

Gets the scope of this expression

from Expr
getText

Gets the text of this str constant

from StrConst
hasSideEffects

Whether this expression may have a side effect (as determined purely from its syntax)

from Expr
isArtificial

Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source

from AstNode
isConstant

Whether this expression is a constant

from Expr
isDocString

Whether this is a docstring

from StrConst
isExplicitlyNumbered

Whether this format string has explicitly numbered fields

from PossibleAdvancedFormatString
isImplicitlyNumbered

Whether this format string has implicitly numbered fields

from PossibleAdvancedFormatString
isParenthesised

Use isParenthesized instead.

from Expr
isParenthesized

Whether the parenthesized property of this expression is true.

from Expr
isUnicodefrom StrConst
refersTo

Gets what this expression might “refer-to”. Performs a combination of localized (intra-procedural) points-to analysis and global module-level analysis. This points-to analysis favours precision over recall. It is highly precise, but may not provide information for a significant number of flow-nodes. If the class is unimportant then use refersTo(value) or refersTo(value, origin) instead. NOTE: For complex dataflow, involving multiple stages of points-to analysis, it may be more precise to use ControlFlowNode.refersTo(...) instead.

from Expr
refersTo

Gets what this expression might “refer-to” in the given context.

from Expr
refersTo

Whether this expression might “refer-to” to value which is from origin Unlike this.refersTo(value, _, origin), this predicate includes results where the class cannot be inferred.

from Expr
refersTo

Equivalent to this.refersTo(value, _)

from Expr
strValue

Use StrConst.getText() instead

from StrConst
toStringfrom Str_

Charpred