public abstract class AbstractCompatibleFunctionalPredicate<T> extends Object implements PreviousPredicateAware
| Constructor and Description |
|---|
AbstractCompatibleFunctionalPredicate(SymbolType scope,
org.walkmod.javalang.visitors.VoidVisitor<T> typeResolver,
List<org.walkmod.javalang.ast.expr.Expression> args,
T ctx,
SymbolTable symTable,
AbstractCompatibleArgsPredicate previousPredicate,
SymbolType[] calculatedTypeArgs) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,SymbolType> |
createMapping(Class<?> classToInspect,
Type interfaceToInspect,
SymbolType inferredArg,
Class<?> declaringClass) |
boolean |
filter(Constructor<?> method) |
boolean |
filter(org.walkmod.javalang.ast.expr.LambdaExpr lambda,
Class<?> interfaceToInspect,
Type equivalentTypeToInspect,
SymbolType inferredArg,
Class<?> declaringClass) |
boolean |
filter(Method method) |
boolean |
filter(org.walkmod.javalang.ast.expr.MethodReferenceExpr methodRef,
Class<?> interfaceToInspect,
Type equivalentTypeToInspect,
SymbolType inferredArg,
Class<?> declaringClass) |
boolean |
filter(Type[] genericTypes,
Class<?> declaringClass) |
Class<?>[] |
getParams() |
boolean |
isVarArgs() |
void |
setParams(Class<?>[] params) |
void |
setPreviousPredicate(Predicate<?> pred) |
void |
setTypeMapping(Map<String,SymbolType> typeMapping) |
void |
setVarArgs(boolean isVarArgs) |
public AbstractCompatibleFunctionalPredicate(SymbolType scope, org.walkmod.javalang.visitors.VoidVisitor<T> typeResolver, List<org.walkmod.javalang.ast.expr.Expression> args, T ctx, SymbolTable symTable, AbstractCompatibleArgsPredicate previousPredicate, SymbolType[] calculatedTypeArgs)
public Map<String,SymbolType> createMapping(Class<?> classToInspect, Type interfaceToInspect, SymbolType inferredArg, Class<?> declaringClass) throws Exception
Exceptionpublic boolean filter(org.walkmod.javalang.ast.expr.LambdaExpr lambda,
Class<?> interfaceToInspect,
Type equivalentTypeToInspect,
SymbolType inferredArg,
Class<?> declaringClass)
throws Exception
Exceptionpublic boolean filter(org.walkmod.javalang.ast.expr.MethodReferenceExpr methodRef,
Class<?> interfaceToInspect,
Type equivalentTypeToInspect,
SymbolType inferredArg,
Class<?> declaringClass)
throws Exception
Exceptionpublic boolean filter(Constructor<?> method) throws Exception
Exceptionpublic boolean filter(Type[] genericTypes, Class<?> declaringClass) throws Exception
Exceptionpublic void setTypeMapping(Map<String,SymbolType> typeMapping)
public Class<?>[] getParams()
public void setParams(Class<?>[] params)
public boolean isVarArgs()
public void setVarArgs(boolean isVarArgs)
public void setPreviousPredicate(Predicate<?> pred)
setPreviousPredicate in interface PreviousPredicateAwareCopyright © 2018. All rights reserved.