Uses of Class
com.google.errorprone.refaster.Choice
Packages that use Choice
- 
Uses of Choice in com.google.errorprone.refaster
Subclasses with type arguments of type Choice in com.google.errorprone.refasterModifier and TypeClassDescriptionclassUTree<T extends com.sun.tools.javac.tree.JCTree>A serializable representation of a template syntax tree which can be unified with a target AST and inlined based on a set of substitutions.classA serializable representation of a type template, used for enforcing type constraints on target ASTs.Subinterfaces with type arguments of type Choice in com.google.errorprone.refasterMethods in com.google.errorprone.refaster that return ChoiceModifier and TypeMethodDescriptionReturns a choice of the options from thisChoiceor fromother.static <T> Choice<T> Choice.condition(boolean condition, T t) Returns aChoicewithtas an option ifcondition, and no options otherwise.UAnyOf.defaultAction(Tree tree, Unifier unifier) UFreeIdent.defaultAction(Tree target, Unifier unifier) UMethodIdent.defaultAction(Tree node, Unifier unifier) UPlaceholderExpression.defaultAction(Tree node, Unifier unifier) UStaticIdent.defaultAction(Tree node, Unifier unifier) UTree.defaultAction(Tree node, Unifier unifier) Filters the choices to those that satisfy the providedPredicate.<R> Choice<R> Returns all the choices obtained by choosing from thisChoiceand then choosing from theChoiceyielded by this function on the result.static <T> Choice<T> Choice.from(Collection<T> choices) static <T> Choice<T> Choice.fromOptional(Optional<T> optional) Returns a choice of the optional value, if it is present, or the empty choice if it is absent.<R> Choice<R> Maps the choices with the specified function.<R> Choice<R> Choice.mapIfPresent(Function<? super T, Optional<R>> function) Returns all the choices obtained by choosing from thisChoiceand yielding a presentOptional.static <T> Choice<T> Choice.none()The emptyChoice.static <T> Choice<T> Choice.of(T t) Returns aChoicewith only one option,t.Returns all valid unification paths (if any) from thisUnifierthat unify this withtarget.Returns all successful unification paths from the specifiedUnifierunifying the specified lists, disallowing varargs.Unifier.unifyList(Unifier unifier, @Nullable List<U> toUnify, @Nullable List<? extends T> targets, boolean allowVarargs) Returns all successful unification paths from the specifiedUnifierunifying the specified lists, allowing varargs if and only ifallowVarargsis true.Unifier.unifyNullable(Unifier unifier, @Nullable U unifiable, @Nullable T target) UClassType.visitClassType(com.sun.tools.javac.code.Type.ClassType classType, Unifier unifier) UIntersectionClassType.visitClassType(com.sun.tools.javac.code.Type.ClassType t, Unifier unifier) UForAll.visitForAll(com.sun.tools.javac.code.Type.ForAll target, Unifier unifier) UFreeIdent.visitIdentifier(IdentifierTree node, Unifier unifier) UMemberSelect.visitIdentifier(IdentifierTree ident, Unifier unifier) ULiteral.visitLiteral(LiteralTree literal, Unifier unifier) UMemberSelect.visitMemberSelect(MemberSelectTree fieldAccess, Unifier unifier) UMethodInvocation.visitMethodInvocation(MethodInvocationTree methodInvocation, @Nullable Unifier unifier) UMethodType.visitMethodType(com.sun.tools.javac.code.Type.MethodType methodTy, @Nullable Unifier unifier) UReturn.visitReturn(ReturnTree ret, @Nullable Unifier unifier) UVariableDecl.visitVariable(VariableTree decl, Unifier unifier) Methods in com.google.errorprone.refaster that return types with arguments of type ChoiceModifier and TypeMethodDescriptionUnifier.unifications(@Nullable U unifiable, @Nullable T target) Unifier.unifications(@Nullable List<U> toUnify, @Nullable List<? extends T> targets) Unifier.unifications(@Nullable List<U> toUnify, @Nullable List<? extends T> targets, boolean allowVarargs) Methods in com.google.errorprone.refaster with parameters of type ChoiceModifier and TypeMethodDescriptionReturns a choice of the options from thisChoiceor fromother.Method parameters in com.google.errorprone.refaster with type arguments of type Choice