Uses of Class
com.github.javaparser.ast.stmt.SwitchStmt
-
Packages that use SwitchStmt Package Description com.github.javaparser com.github.javaparser.ast.stmt com.github.javaparser.ast.visitor com.github.javaparser.printer com.github.javaparser.resolution com.github.javaparser.symbolsolver.javaparsermodel Implementation of model based on JavaParser. -
-
Uses of SwitchStmt in com.github.javaparser
Methods in com.github.javaparser that return SwitchStmt Modifier and Type Method Description SwitchStmtGeneratedJavaParser. SwitchStatement()Note that theSwitchExpressionandSwitchStatemntare similar but different. -
Uses of SwitchStmt in com.github.javaparser.ast.stmt
Methods in com.github.javaparser.ast.stmt that return SwitchStmt Modifier and Type Method Description SwitchStmtStatement. asSwitchStmt()SwitchStmtSwitchStmt. asSwitchStmt()SwitchStmtSwitchStmt. clone()SwitchStmtSwitchStmt. setEntries(NodeList<SwitchEntry> entries)SwitchStmtSwitchStmt. setSelector(Expression selector)Methods in com.github.javaparser.ast.stmt that return types with arguments of type SwitchStmt Modifier and Type Method Description java.util.Optional<SwitchStmt>Statement. toSwitchStmt()java.util.Optional<SwitchStmt>SwitchStmt. toSwitchStmt()Method parameters in com.github.javaparser.ast.stmt with type arguments of type SwitchStmt Modifier and Type Method Description voidStatement. ifSwitchStmt(java.util.function.Consumer<SwitchStmt> action)voidSwitchStmt. ifSwitchStmt(java.util.function.Consumer<SwitchStmt> action) -
Uses of SwitchStmt in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type SwitchStmt Modifier and Type Method Description VisitableCloneVisitor. visit(SwitchStmt n, java.lang.Object arg)java.lang.BooleanEqualsVisitor. visit(SwitchStmt n, Visitable arg)java.util.List<R>GenericListVisitorAdapter. visit(SwitchStmt n, A arg)RGenericVisitor. visit(SwitchStmt n, A arg)RGenericVisitorAdapter. visit(SwitchStmt n, A arg)RGenericVisitorWithDefaults. visit(SwitchStmt n, A arg)java.lang.IntegerHashCodeVisitor. visit(SwitchStmt n, java.lang.Void arg)VisitableModifierVisitor. visit(SwitchStmt n, A arg)java.lang.BooleanNoCommentEqualsVisitor. visit(SwitchStmt n, Visitable arg)java.lang.IntegerNoCommentHashCodeVisitor. visit(SwitchStmt n, java.lang.Void arg)voidNodeFinderVisitor. visit(SwitchStmt n, Range arg)java.lang.BooleanObjectIdentityEqualsVisitor. visit(SwitchStmt n, Visitable arg)java.lang.IntegerObjectIdentityHashCodeVisitor. visit(SwitchStmt n, java.lang.Void arg)voidVoidVisitor. visit(SwitchStmt n, A arg)voidVoidVisitorAdapter. visit(SwitchStmt n, A arg)voidVoidVisitorWithDefaults. visit(SwitchStmt n, A arg) -
Uses of SwitchStmt in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type SwitchStmt Modifier and Type Method Description voidDefaultPrettyPrinterVisitor. visit(SwitchStmt n, java.lang.Void arg)voidPrettyPrintVisitor. visit(SwitchStmt n, java.lang.Void arg)Deprecated. -
Uses of SwitchStmt in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return SwitchStmt Modifier and Type Method Description static SwitchStmtNavigator. demandSwitch(Node node)static SwitchStmtNavigator. findSwitch(Node node)Deprecated.Methods in com.github.javaparser.resolution that return types with arguments of type SwitchStmt Modifier and Type Method Description private static java.util.Optional<SwitchStmt>Navigator. findSwitchHelper(Node node) -
Uses of SwitchStmt in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type SwitchStmt Modifier and Type Method Description private static booleanNormalCompletionVisitor. isEnhanced(SwitchStmt stmt)From https://docs.oracle.com/javase/specs/jls/se21/html/jls-14.html#jls-14.11.2 An enhanced switch statement is one where either (i) the type of the selector expression is not char, byte, short, int, Character, Byte, Short, Integer, String, or an enum type, or (ii) there is a case pattern or null literal associated with the switch block.ResolvedTypeDefaultVisitorAdapter. visit(SwitchStmt node, java.lang.Boolean aBoolean)java.lang.BooleanNormalCompletionVisitor. visit(SwitchStmt switchStmt, java.lang.Void unused)A switch statement whose switch block is empty, or contains only switch labels, can complete normally.
-