Package org.sonar.python.tree
Class PythonTreeMaker
java.lang.Object
org.sonar.python.tree.PythonTreeMaker
- Direct Known Subclasses:
IPythonTreeMaker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotatedAssignment(StatementWithSeparator statementWithSeparator) protected ExpressionannotatedRhs(com.sonar.sslr.api.AstNode annotatedRhs) argument(com.sonar.sslr.api.AstNode astNode) assertStatement(StatementWithSeparator statementWithSeparator) assignment(StatementWithSeparator statementWithSeparator) breakStatement(StatementWithSeparator statementWithSeparator) caseBlock(com.sonar.sslr.api.AstNode caseBlock) voidcheckExceptClauses(List<ExceptClause> excepts) classDefStatement(com.sonar.sslr.api.AstNode astNode) static PatternclosedPattern(com.sonar.sslr.api.AstNode closedPattern) compoundAssignment(StatementWithSeparator statementWithSeparator) continueStatement(StatementWithSeparator statementWithSeparator) delStatement(StatementWithSeparator statementWithSeparator) execStatement(StatementWithSeparator statementWithSeparator) expression(com.sonar.sslr.api.AstNode astNode) expressionStatement(StatementWithSeparator statementWithSeparator) fileInput(com.sonar.sslr.api.AstNode astNode) forStatement(com.sonar.sslr.api.AstNode astNode) funcDefStatement(com.sonar.sslr.api.AstNode astNode) globalStatement(StatementWithSeparator statementWithSeparator) guard(com.sonar.sslr.api.AstNode guardNode) ifStatement(com.sonar.sslr.api.AstNode astNode) importStatement(StatementWithSeparator statementWithSeparator) lambdaExpression(com.sonar.sslr.api.AstNode astNode) matchStatement(com.sonar.sslr.api.AstNode matchStmt) protected static Namename(com.sonar.sslr.api.AstNode astNode) nonlocalStatement(StatementWithSeparator statementWithSeparator) passStatement(StatementWithSeparator statementWithSeparator) static Patternpattern(com.sonar.sslr.api.AstNode pattern) printStatement(StatementWithSeparator statementWithSeparator) raiseStatement(StatementWithSeparator statementWithSeparator) static voidrecognitionException(int line, String message) returnStatement(StatementWithSeparator statementWithSeparator) voidsetParents(Tree root) protected Statementstatement(StatementWithSeparator statementWithSeparator) protected static TokentoPyToken(com.sonar.sslr.api.Token token) tryStatement(com.sonar.sslr.api.AstNode astNode) typeAliasStatement(StatementWithSeparator statementWithSeparator) whileStatement(com.sonar.sslr.api.AstNode astNode) withStatement(com.sonar.sslr.api.AstNode astNode) yieldExpression(com.sonar.sslr.api.AstNode astNode) yieldStatement(StatementWithSeparator statementWithSeparator)
-
Constructor Details
-
PythonTreeMaker
public PythonTreeMaker()
-
-
Method Details
-
fileInput
-
recognitionException
-
toPyToken
-
setParents
-
statement
-
annotatedAssignment
-
printStatement
-
execStatement
-
assertStatement
-
passStatement
-
delStatement
-
returnStatement
-
yieldStatement
-
yieldExpression
-
raiseStatement
-
breakStatement
-
continueStatement
-
importStatement
-
globalStatement
-
nonlocalStatement
-
ifStatement
-
funcDefStatement
-
classDefStatement
-
name
-
forStatement
-
whileStatement
-
expressionStatement
-
typeAliasStatement
-
assignment
-
annotatedRhs
-
compoundAssignment
public CompoundAssignmentStatement compoundAssignment(StatementWithSeparator statementWithSeparator) -
tryStatement
-
checkExceptClauses
-
withStatement
-
matchStatement
-
caseBlock
-
guard
-
pattern
-
closedPattern
-
expression
-
argument
-
lambdaExpression
-