Uses of Interface
net.sourceforge.pmd.lang.java.types.JMethodSig
-
Packages that use JMethodSig Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.symbols The new symbol resolution framework that inter-operates cleanly with type resolution.net.sourceforge.pmd.lang.java.symbols.table net.sourceforge.pmd.lang.java.types Support for compile-time type resolution on the AST. -
-
Uses of JMethodSig in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JMethodSig Modifier and Type Method Description JMethodSigASTLambdaExpression. getFunctionalMethod()Returns the method that is overridden in the functional interface.JMethodSigASTMethodReference. getFunctionalMethod()Returns the method that is overridden in the functional interface.JMethodSigFunctionalExpression. getFunctionalMethod()Returns the method that is overridden in the functional interface.JMethodSigASTExecutableDeclaration. getGenericSignature()Returns the generic signature for the method.default JMethodSigInvocationNode. getMethodType()Gets the type of the method or constructor that is called by this node.JMethodSigASTMethodDeclaration. getOverriddenMethod()Returns the signature of the method this method overrides in a supertype.JMethodSigASTMethodReference. getReferencedMethod()Returns the method that is referenced.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JMethodSig Modifier and Type Method Description static voidInternalApiBridge. setFunctionalMethod(FunctionalExpression node, JMethodSig methodType) -
Uses of JMethodSig in net.sourceforge.pmd.lang.java.symbols
Methods in net.sourceforge.pmd.lang.java.symbols that return JMethodSig Modifier and Type Method Description default JMethodSigJExecutableSymbol. getGenericSignature()Return a method sig corresponding to this symbol. -
Uses of JMethodSig in net.sourceforge.pmd.lang.java.symbols.table
Methods in net.sourceforge.pmd.lang.java.symbols.table that return types with arguments of type JMethodSig Modifier and Type Method Description ShadowChain<JMethodSig,ScopeInfo>JSymbolTable. methods()The chain of tables tracking method names that are in scope here. -
Uses of JMethodSig in net.sourceforge.pmd.lang.java.types
Fields in net.sourceforge.pmd.lang.java.types declared as JMethodSig Modifier and Type Field Description JMethodSigTypeSystem. UNRESOLVED_METHODSentinel value for an unresolved method.Methods in net.sourceforge.pmd.lang.java.types that return JMethodSig Modifier and Type Method Description static @Nullable JMethodSigTypeOps. findFunctionalInterfaceMethod(@Nullable JTypeMirror type)Finds the method of the given type that can be overridden as a lambda expression.@Nullable JMethodSigJClassType. getDeclaredMethod(JExecutableSymbol sym)Returns the typed signature for the symbol, if it is declared directly in this type, and not a supertype.JMethodSigJMethodSig. getErasure()The erasure of a method is a new, non-generic method, whose parameters, owner, and return type, are erased.JMethodSigOverloadSelectionResult. getMethodType()Returns the type of the method or constructor that is called by theInvocationNode.JMethodSigTypeSystem. sigOf(JExecutableSymbol methodSym)JMethodSigTypeSystem. sigOf(JExecutableSymbol methodSym, Substitution subst)JMethodSigJMethodSig. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Methods in net.sourceforge.pmd.lang.java.types that return types with arguments of type JMethodSig Modifier and Type Method Description static List<JMethodSig>TypeOps. filterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)List<JMethodSig>JArrayType. getConstructors()default List<JMethodSig>JTypeMirror. getConstructors()Returns a list of all the declared constructors for this type.static List<JMethodSig>TypeOps. getMethodsOf(JTypeMirror type, String name, boolean staticOnly, @NonNull JClassSymbol enclosing)static Iterable<JMethodSig>TypeOps. lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)Stream<JMethodSig>JArrayType. streamDeclaredMethods(Predicate<? super JMethodSymbol> prefilter)default Stream<JMethodSig>JTypeMirror. streamDeclaredMethods(Predicate<? super JMethodSymbol> prefilter)LikestreamMethods, but does not recurse into supertypes.Stream<JMethodSig>JArrayType. streamMethods(Predicate<? super JMethodSymbol> prefilter)Stream<JMethodSig>JIntersectionType. streamMethods(Predicate<? super JMethodSymbol> prefilter)default Stream<JMethodSig>JTypeMirror. streamMethods(Predicate<? super JMethodSymbol> prefilter)Returns a stream of method signatures declared in and inherited by this type.default Stream<JMethodSig>JTypeVar. streamMethods(Predicate<? super JMethodSymbol> prefilter)default Stream<JMethodSig>JWildcardType. streamMethods(Predicate<? super JMethodSymbol> prefilter)Methods in net.sourceforge.pmd.lang.java.types with parameters of type JMethodSig Modifier and Type Method Description static booleanTypeOps. areOverrideEquivalent(JMethodSig m1, JMethodSig m2)Two method signatures m1 and m2 are override-equivalent iff either m1 is a subsignature of m2 or m2 is a subsignature of m1.static booleanTypeOps. haveSameTypeParams(JMethodSig m1, JMethodSig m2)static booleanTypeOps. isContextDependent(JMethodSig sig)Deprecated.Since 7.11.0.static booleanTypeTestUtil. isDeclaredInClass(@NonNull Class<?> klass, @NonNull JMethodSig sig)Returns true if the signature is that of a method declared in the given class.static booleanTypeOps. isReturnTypeSubstitutable(JMethodSig m1, JMethodSig m2)Returns true if m1 is return-type substitutable with m2.static booleanTypeOps. isSameType(JMethodSig t, JMethodSig s)Return true if t and s are the same method type.static booleanTypeOps. isSubSignature(JMethodSig m1, JMethodSig m2)The signature of a method m1 is a subsignature of the signature of a method m2 if either: - m2 has the same signature as m1, or - the signature of m1 is the same as the erasure (ยง4.6) of the signature of m2.static booleanTypeOps. overrides(JMethodSig m1, JMethodSig m2, JTypeMirror origin)Returns true if m1 overrides m2, when both are view as members of class origin. m1 and m2 may be declared in supertypes of origin, possibly unrelated (default methods), which is why we need that third parameter.default RJTypeVisitor. visitMethodType(JMethodSig t, P p)Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type JMethodSig Modifier and Type Method Description static List<JMethodSig>TypeOps. filterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)static Iterable<JMethodSig>TypeOps. lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
-