diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 16694ff..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -tidelift: "maven/com.fasterxml:classmate" -github: cowtowncoder diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 2390d8c..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - groups: - github-actions: - patterns: - - "*" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 2c378b2..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Build -on: - push: - branches: - - master - - "1.6" - paths-ignore: - - "README.md" - - "release-notes/*" - pull_request: - branches: - - master - - "1.6" -permissions: - contents: read -jobs: - build: - runs-on: 'ubuntu-22.04' - strategy: - fail-fast: false - matrix: - # Alas, JDK14 can't be yet used while build is for Java 6 - java_version: ['8', '11', '17'] - env: - JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up JDK - uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 - with: - distribution: "temurin" - java-version: ${{ matrix.java_version }} - cache: 'maven' - - name: Build - run: ./mvnw -B -ff -ntp clean verify - - name: Generate code coverage - if: github.event_name != 'pull_request' && matrix.java_version == '8' - run: ./mvnw -B -q -ff -ntp test - - name: Publish code coverage - if: github.event_name != 'pull_request' && matrix.java_version == '8' - uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./target/site/jacoco/jacoco.xml - flags: unittests diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b98907f..0000000 --- a/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -# Skip maven 'target' directory -target - -# plus eclipse artifacts -.classpath -.project -.settings - -# plus intellij files -*.ipr -*.iws -*.iml -.idea - -# and emacs temp save files -*~ - -# and maven wrapper -.mvn/wrapper/maven-wrapper.jar diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties deleted file mode 100644 index 8d98d6d..0000000 --- a/.mvn/wrapper/maven-wrapper.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ec7cb2d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -os: linux -arch: - - amd64 - - ppc64le -language: java - -# 23-Mar-2019, tatu: With 1.5.0, must build with JDK8 or above -jdk: - - openjdk8 - - openjdk11 - -addons: - apt: - packages: - - maven - -# whitelist -branches: - only: - - master - -cache: - directories: - - $HOME/.m2 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md deleted file mode 100644 index c3453be..0000000 --- a/README.md +++ /dev/null @@ -1,356 +0,0 @@ -## Overview - -ClassMate is a zero-dependency Java library for accurately introspecting type information, including reliable resolution of generic type declarations for both classes ("types") and members (fields, methods and constructors). - -Project is licensed under [Apache 2](http://www.apache.org/licenses/LICENSE-2.0.txt). - -## Status - -| Type | Status | -| ---- | ------ | -| Build (CI) | [![Build (github)](https://github.com/FasterXML/java-classmate/actions/workflows/main.yml/badge.svg)](https://github.com/FasterXML/java-classmate/actions/workflows/main.yml) | -| Artifact | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.fasterxml/classmate/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.fasterxml/classmate/) | -| OSS Sponsorship | [![Tidelift](https://tidelift.com/badges/package/maven/com.fasterxml:classmate)](https://tidelift.com/subscription/pkg/maven-com-fasterxml-classmate?utm_source=maven-com-fasterxml-classmate&utm_medium=referral&utm_campaign=readme) | -| JavaDocs | [![Javadoc](https://javadoc.io/badge/com.fasterxml/classmate.svg)](http://www.javadoc.io/doc/com.fasterxml/classmate) | -| Code coverage (master) | [![codecov.io](https://codecov.io/github/FasterXML/java-classmate/coverage.svg?branch=master)](https://codecov.io/github/FasterXML/java-classmate?branch=master) | -| OpenSSF Score | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/FasterXML/java-classmate/badge)](https://securityscorecards.dev/viewer/?uri=github.com/FasterXML/java-classmate) | - -## Support - -### Community support - -Classmate is supported by the community via the mailing list: [java-classmate-user](https://groups.google.com/forum/#!forum/java-classmate-users) - -### Enterprise support - -Available as part of the Tidelift Subscription. - -The maintainers of `classmate` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/maven-com-fasterxml-classmate?utm_source=maven-com-fasterxml-classmate&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -## Contributing - -Contributions are welcome (of course!); we require a simple one-page CLA to help simplify distribution -(corporate users want to know how contributions are handled), one per contributor. Feel free to submit -Pull Requests and we will get you through this formality. - -One special case is that for reporting possible security issues ("vulnerabilities"), we recommend filing a -[Tidelift security contact](https://tidelift.com/security) (NOTE: you do NOT have to be a subscriber to do this). - -## Documentation - -[Project wiki](/../../wiki) has Javadocs. - -External links that may help include: - -* [Resolving Generic Types with Classmate](http://www.cowtowncoder.com/blog/archives/2012/04/entry_471.html) (some simple usage examples) -* [Problem with java.lang.reflect.Type](http://www.cowtowncoder.com/blog/archives/2010/12/entry_436.html) (explanation of issues ClassMate was written to solve) - ------ - -## Compatibility - -#### JDK baseline - -ClassMate versions up to 1.6 require Java 6 to run. - -ClassMate versions 1.7 and above require Java 8 to run - -#### JPMS compatibility - -ClassMate versions 1.5 and above contain `module-info.class` information to work with JPMS. -Module name to use is `com.fasterxml.classmate`. - -## Usage - -### Maven dependency - -To use ClassMate via Maven, include following dependency: - -```xml - - com.fasterxml - classmate - 1.7.0 - -``` - -### Non-Maven - -Downloads available from [Project wiki](../../wiki). - -### Resolving Class type information - -Main class used for fully resolving type information for classes is `com.fasterxml.classmate.TypeResolver`. -TypeResolver does simple caching for resolved supertypes (since many subtypes resolve to smaller set of supertypes, typically). Since all access to shared data is synchronized, a single `TypeResolver` instance is typically shared for a single system (as a plain old static singleton): there are no benefits to instantiating more instances. - -Its main resolution methods are: - -* `resolve(Class cls)`: given a plain old class, will use generic type information that super type declarations (extends, implements) may have. -* `resolve(GenericType)`: given a subtype of `GenericType` (which uses ["Super-type Token" pattern](http://gafter.blogspot.com/2006/12/super-type-tokens.html)), fully resolve type information -* `resolve(Class baseType, Class typeParameter1, ... , Class typeParameter2)`: given base type (like `List.class`) and zero or more type parameters (either as `Class` es to resolve, or as `ResolvedType` s), resolves type information - -Result in all these cases is an instance of `ResolvedType`, which you can think of as generic type information containing replacement for `java.lang.Class`. It is also the starting point for resolving member (constructor, field, method) information. - -### Resolving Type parameters for a class - -While finding type parameters for specific class is relatively easy (using `getTypeParameters`), what you more commonly need to know is type parameters for a type implemented or extended. -Specifically, consider case of: - - public class StringIntMap extends HashMap { } - -where you would want to know `key` and `value` types of your Map sub-type. -The first step is the same: - - ResolvedType type = typeResolver.resolve(StringIntMap.class); - -and to find parameter bindings for `java.util.Map`, you will use: - - List mapParams = type.typeParametersFor(Map.class); - ResolvedType keyType = mapParams.get(0); - ResolvedType valueType = mapParams.get(1); - -Note: if types were left unspecified (like, say, `public class MyMap extends Map`), you will always get resolved types based on bounds: in this case, it would be equivalent to parameterization of `Map List -ResolvedType listType = typeResolver.resolve(List.class); -``` - -##### Resolve `List.class` - -```java -// listType => List -ResolvedType listType = typeResolver.resolve(List.class, String.class); -``` - -##### Resolve `List.class` (leveraging already ResolvedType object) - -```java -ResolvedType stringType = typeResolver.resolve(String.class); -// listType => List -ResolvedType listType = typeResolver.resolve(List.class, stringType); -``` - -##### Resolve `List.class` using ["super type token"](http://gafter.blogspot.com/2006/12/super-type-tokens.html) - -```java -// listType => List -ResolvedType listType = typeResolver.resolve(new GenericType>() {}); -``` - -### Resolving Members (i.e., Field/Method/Constructor) - -#### Resolving All Members - -##### Resolve `ArrayList` static/instance Methods - -```java -ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); -// get static methods -ResolvedMethod[] staticArrayListMethods = arrayListTypeWithMembers.getStaticMethods(); -// get instance methods -ResolvedMethod[] arrayListMethods = arrayListTypeWithMembers.getMemberMethods(); -``` - -##### Resolve `ArrayList` Fields - -```java -ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); -// get static/instance fields -ResolvedField[] arrayListFields = arrayListTypeWithMembers.getMemberFields(); -``` - -##### Resolve `ArrayList` Constructors - -```java -ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); -// get static/instance fields -ResolvedConstructor[] arrayListConstructors = arrayListTypeWithMembers.getConstructors(); -``` - -#### Resolving Particular Members (i.e., Filtering) - -##### Resolve `ArrayList#size()` Method - -```java -ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "size".equals(element.getName()); - } -}); -ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); -ResolvedMethod sizeMethod = arrayListTypeWithMembers.getMemberMethods()[0]; -``` - -##### Resolve `ArrayList.size` Field - -```java -ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -memberResolver.setFieldFilter(new Filter() { - @Override public boolean include(RawField element) { - return "size".equals(element.getName()); - } -}); -ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); -ResolvedField sizeField = arrayListTypeWithMembers.getMemberFields()[0]; -``` - -#### Resolving Members and their Annotations - -Classes for reference in the examples below: -```java -@Retention(RetentionPolicy.RUNTIME) -public @interface Marker { } - -@Retention(RetentionPolicy.RUNTIME) -@Inherited -public @interface MarkerA { } - -public class SomeClass { - @Marker @MarkerA - public void someMethod() { } -} -public class SomeSubclass extends SomeClass { - @Override - public void someMethod() { } -} -``` - -##### Resolve `SomeClass#someMethod()`'s Annotations - -```java -ResolvedType someType = typeResolver.resolve(SomeClass.class); -MemberResolver memberResolver = new MemberResolver(typeResolver); -memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } -}); -AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); -ResolvedTypeWithMembers someTypeWithMembers = memberResolver.resolve(someType, annConfig, null); -ResolvedMethod someMethod = someTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker != null -MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null -``` - -##### Resolve `SomeSubclass#someMethod()`'s Annotations - -```java - -// setup removed for brevity; same as above only using SomeSubclass instead of SomeClass - -AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); -ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); -ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker == null -MarkerA markerA = someMethod.get(MarkerA.class); // markerA == null -Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) -``` - -##### Resolve `SomeSubclass#someMethod()`'s Annotations including @Inherited - -```java - -// setup removed for brevity; same as above - -AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED); -ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); -ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker == null -MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null -Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) -``` - -##### Resolve `SomeSubclass#someMethod()`'s Annotations including all super class's Annotations - -```java - -// setup removed for brevity; same as above - -AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT); -ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); -ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker != null -MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null -Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) -``` - -#### Using Annotation "mix-ins" - -Types with the same method signature, field definition or constructor signature but which aren't explicitly related to one another (i.e., _extend_ each other or _implement_ the same interface) can have their annotations "mixed in" to others' resolved types. For example, using the `SomeClass` from above, let's add another class definition. - -```java -public class SomeOtherClass { - public void someMethod() { } -} -``` - -The `someMethod` signature on `SomeOtherClass` is the same as `SomeClass` however `SomeOtherClass` does not extend from `SomeClass`. Member resolution for `SomeOtherClass`, like we've done above, will (of course) result in no Annotations. - -```java - -// setup removed for brevity; similar to above but using SomeOtherClass - -AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT); -ResolvedTypeWithMembers someOtherClassTypeWithMembers = memberResolver.resolve(someOtherClassType, annConfig, null); -ResolvedMethod someMethod = someOtherClassTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker == null, of course -MarkerA markerA = someMethod.get(MarkerA.class); // markerA == null, of course -``` - -We can augment the annotations returned by `SomeOtherClass` with "mix-ins" - -```java -// setup removed for brevity; same as above, using SomeOtherClass - -// MIX-IN -> take SomeClass and apply to SomeOtherClass -AnnotationOverrides annOverrides = AnnotationOverrides.builder().add(SomeOtherClass.class, SomeClass.class).build(); - -ResolvedTypeWithMembers someOtherTypeWithMembers = memberResolver.resolve(someOtherType, annConfig, annOverrides); -ResolvedMethod someMethod = someOtherTypeWithMembers.getMemberMethods()[0]; -Marker marker = someMethod.get(Marker.class); // marker != null -MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null -``` - -Now the `ResolvedMethod` for `SomeOtherClass` also contains the `Marker` and `MarkerA` annotations! diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 6926c03..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,22 +0,0 @@ -# Security Policy - -Last Updated: 2019-11-26 - -## Supported Versions - -Current status of open branches, with new releases, can be found from [Jackson Releases](https://github.com/FasterXML/jackson/wiki/Jackson-Releases) -wiki page - -## Reporting a Vulnerability - -The recommended mechanism for reporting possible security vulnerabilities follows -so-called "Coordinated Disclosure Plan" (see [definition of DCP](https://vuls.cert.org/confluence/display/Wiki/Coordinated+Vulnerability+Disclosure+Guidance) -for general idea). The first step is to file a [Tidelift security contact](https://tidelift.com/security) (https://tidelift.com/security): -Tidelift will route all reports via their system to maintainers of relevant package(s), and start the -process that will evaluate concern and issue possible fixes, send update notices and so on. -Note that you do not need to be a Tidelift subscriber to file a security contact. - -Alternatively you may also report possible vulnerabilities to `info` at fasterxml dot com -mailing address. Note that filing an issue to go with report is fine, but if you do that please -DO NOT include details of security problem in the issue but only in email contact. -This is important to give us time to provide a patch, if necessary, for the problem. diff --git a/VERSION.txt b/VERSION.txt deleted file mode 100644 index 3d59be9..0000000 --- a/VERSION.txt +++ /dev/null @@ -1,109 +0,0 @@ -Java ClassMate project: licensed under Apache License 2.0 -(http://www.apache.org/licenses/LICENSE-2.0.txt) - -Release notes: - -1.7.0 (02-Jan-2024) - -#51: `TypeResolver.resolve(Long[].class)` should not return a `ResolvedType` - whose parent type is null - (reported by @ljnelson) -#75: Move JDK baseline to Java 8 - (contributed by Dave B, @mebigfatguy) -#83: Simplify code by not calling `Set.contains()` before `add()` -- Remove `Automatic-Module-Name` since we provide proper module-info - -1.6.0 (10-Oct-2023) - -#70: Remove dead allocation - (reported by Dave B, @mebigfatguy) -#73: Make `GenericType` not implement `Serializable` -- Oss-parent to version 55 (junit version, javadoc links, jacoco) - -1.5.1 (20-Oct-2019) - -- Patch release to satisfy odd metadata requirements of a security tool - (wrt https/http for `url` in pom.xml) - -1.5.0 (23-Mar-2019) - -#43: Missing synchronization on `ResolvedObjectType#getConstructors` - (reported by pkwarren@github) -- Add JDK9+ module-info using Moditect plugin - -1.4.0 (27-Mar-2018) - -#41: Make cache used by `TypeResolver` pluggable; offer concurrent - variant in addition to LRU - -1.3.4 (09-Sep-2017) - -#38: Add `Automatic-Module-Name` for JDK9 interoperability - -1.3.3 (28-Sep-2016) - -#33: "ghost" type parameter in field - (reported, fix contributed by web-online@github) - -1.3.2 (25-Sep-2016) - -#30: ArrayIndexOutOfBoundsException when resolving Object.class - (reported by meszibalu@github) - -1.3.1 (25-Oct-2015) - -- Fix a problem with caching of subtype-extended types, causing problems - due to mutable `TypePlaceHolder` - -1.3.0 (16-Sep-2015) - -#28: Parametrised classes does not resolve method types properly - (reported by dawrut@github) - -1.2.0 (22-May-2015) - -#22: ResolvedTypeWithMembers should expose static fields as well - (proposed by arikkfir@github) -- Made `ResolvedMethod`, `ResolvedField` sortable to simplify tests -- More unit tests, from Jackson type resolver fails - -1.1.0 (19-Aug-2014) - -#16: ClassCastException in TypeResolver (ResolvedRecursiveType cannot be cast to ResolvedObjectType) - (reported by deki@github) - -1.0.0 (15-Oct-2013) - -The official Big One-Oh version! - -(no functional changes since 0.9.0) - -0.9.0: - -#14: Fixed 2 unit tests that failed with JDK 1.7 (due to addition of members to 'java.lang.Object` - and `java.util.ArrayList`) -#15: ClassMate jar should include LICENSE file - -0.8.0: - -* Combine various ResolvedType.resolve(...) methods, using `java.lang.reflect.Type` - as common super type -* Changed order arguments for "resolve" that takes TypeBindings and Type, to prevent - problems with overloading: now TypeBindings is the first argument, not second - -0.7.0: - -#11: ResolvedType uses `java.lang.reflect.Type` to allow combination - of Class, GenericType and ResolvedType. -#12: ResolvedType now implements `java.lang.reflect.Type` - -0.6.0: - -#5: Make `GenericType` Serializable - (suggested by Yuri S) -#8: Add additional pass-through methods in RawMember for all modifiers - (requested by Phillip S) - -0.5.4: - -* #4: problems with self-referential type variables diff --git a/index.html b/index.html new file mode 100644 index 0000000..c57a5b8 --- /dev/null +++ b/index.html @@ -0,0 +1,115 @@ + + + + + + + cowtowncoder/java-classmate @ GitHub + + + + + + + Fork me on GitHub + +
+ +
+ + + + +
+ +

java-classmate + by cowtowncoder

+ +
+ Library for introspecting and resolving generic type information. +
+ +

Need to know actual content types of that List that your bean contains? ClassMate can help there.

+ +

Dependencies

+

None! (except for JUnit for unit tests)

+ + +

Install

+

Add as a Maven dependency, or just download jar.

+ +

License

+

Apache License 2.0

+ +

Documentation

+ +

Javadocs

+ + + +

Authors

+

Tatu Saloranta (tsaloranta@gmail.com) +

+ +

Contact

+

Tatu Saloranta (tsaloranta@gmail.com) +

+ +

Download

+ +Artifacts are typically access via Maven, here are links for manual downloads, + +

Latest: 0.5.2

+ + + +

Source code

+

+Library is usually used via Maven, but you can also +download this project in either + + zip or + tar formats. +

+

You can also clone the project with Git + by running: +

$ git clone git://github.com/cowtowncoder/java-classmate
+

+ + + +
+ + + + diff --git a/javadoc/0.5.2/allclasses-frame.html b/javadoc/0.5.2/allclasses-frame.html new file mode 100644 index 0000000..f4a4d51 --- /dev/null +++ b/javadoc/0.5.2/allclasses-frame.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.2/allclasses-noframe.html b/javadoc/0.5.2/allclasses-noframe.html new file mode 100644 index 0000000..c06d767 --- /dev/null +++ b/javadoc/0.5.2/allclasses-noframe.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..a35acc7 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,477 @@ + + + + + + + +AnnotationConfiguration.StdConfiguration (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration.StdConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+      extended by com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
+
+
Enclosing class:
AnnotationConfiguration
+
+
+
+
public static class AnnotationConfiguration.StdConfiguration
extends AnnotationConfiguration
+ + +

+Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types. Same default is used for both class and + member method annotations (constructor, field and static method + annotations are never inherited) +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
+  + + + + + + + + + + + + + + + +
+Field Summary
+protected  AnnotationInclusion_defaultInclusion + +
+           
+protected  HashMap<ClassKey,AnnotationInclusion>_inclusions + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  AnnotationInclusion_inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+ AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ voidsetInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_defaultInclusion

+
+protected final AnnotationInclusion _defaultInclusion
+
+
+
+
+
+ +

+_inclusions

+
+protected HashMap<ClassKey,AnnotationInclusion> _inclusions
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration.StdConfiguration

+
+public AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
Specified by:
getInclusionForClass in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForConstructor

+
+public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForConstructor in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForField

+
+public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForField in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForMethod

+
+public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
Specified by:
getInclusionForMethod in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+setInclusion

+
+public void setInclusion(Class<? extends Annotation> annotationType,
+                         AnnotationInclusion incl)
+
+
+
+
+
+
+ +

+_inclusionFor

+
+protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.html new file mode 100644 index 0000000..6ea8154 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationConfiguration.html @@ -0,0 +1,363 @@ + + + + + + + +AnnotationConfiguration (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+
+
+
Direct Known Subclasses:
AnnotationConfiguration.StdConfiguration
+
+
+
+
public abstract class AnnotationConfiguration
extends Object
+ + +

+Interface for object that determines handling of annotations in regards + to inheritance, overrides. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+abstract  AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+abstract  AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+abstract  AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration

+
+public AnnotationConfiguration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
+
+
+
+ +

+getInclusionForConstructor

+
+public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForField

+
+public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForMethod

+
+public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationInclusion.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationInclusion.html new file mode 100644 index 0000000..af3f92c --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationInclusion.html @@ -0,0 +1,365 @@ + + + + + + + +AnnotationInclusion (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Enum AnnotationInclusion

+
+java.lang.Object
+  extended by java.lang.Enum<AnnotationInclusion>
+      extended by com.fasterxml.classmate.AnnotationInclusion
+
+
+
All Implemented Interfaces:
Serializable, Comparable<AnnotationInclusion>
+
+
+
+
public enum AnnotationInclusion
extends Enum<AnnotationInclusion>
+ + +

+Enumeration that defines different settings for handling behavior + of individual annotations +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Enum Constant Summary
DONT_INCLUDE + +
+          Value that indicates that annotation is to be ignored, not included + in resolved bean information.
INCLUDE_AND_INHERIT + +
+          Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes.
INCLUDE_BUT_DONT_INHERIT + +
+          Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationInclusionvalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+DONT_INCLUDE

+
+public static final AnnotationInclusion DONT_INCLUDE
+
+
Value that indicates that annotation is to be ignored, not included + in resolved bean information. + Applicable to all member types. +

+

+
+
+
+ +

+INCLUDE_BUT_DONT_INHERIT

+
+public static final AnnotationInclusion INCLUDE_BUT_DONT_INHERIT
+
+
Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes. + Applicable only to member methods; if used with other members will + mean basic inclusion. +

+

+
+
+
+ +

+INCLUDE_AND_INHERIT

+
+public static final AnnotationInclusion INCLUDE_AND_INHERIT
+
+
Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes. + Note that inheritance only matters with member methods; for other types + it just means "include". +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static AnnotationInclusion[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (AnnotationInclusion c : AnnotationInclusion.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static AnnotationInclusion valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..b6cece0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,344 @@ + + + + + + + +AnnotationOverrides.StdBuilder (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdBuilder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdBuilder
extends Object
+ + +

+To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ AnnotationOverrides.StdBuilderadd(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderadd(ClassKey target, + Class<?> mixin) + +
+           
+ AnnotationOverridesbuild() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdBuilder

+
+public AnnotationOverrides.StdBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(Class<?> target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(ClassKey target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+build

+
+public AnnotationOverrides build()
+
+
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..c942c26 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html @@ -0,0 +1,330 @@ + + + + + + + +AnnotationOverrides.StdImpl (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdImpl

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+      extended by com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdImpl
extends AnnotationOverrides
+ + +

+Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones). +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationOverrides
AnnotationOverrides.StdBuilder, AnnotationOverrides.StdImpl
+  + + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<Class<?>>mixInsFor(ClassKey target) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.AnnotationOverrides
builder, mixInsFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdImpl

+
+public AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides)
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(ClassKey target)
+
+
+
Specified by:
mixInsFor in class AnnotationOverrides
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.html b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.html new file mode 100644 index 0000000..644ab85 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/AnnotationOverrides.html @@ -0,0 +1,337 @@ + + + + + + + +AnnotationOverrides (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+
+
+
Direct Known Subclasses:
AnnotationOverrides.StdImpl
+
+
+
+
public abstract class AnnotationOverrides
extends Object
+ + +

+Interface for object that can provide mix-ins to override annotations. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationOverrides.StdBuilderbuilder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+ List<Class<?>>mixInsFor(Class<?> beanClass) + +
+          Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
+abstract  List<Class<?>>mixInsFor(ClassKey beanClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides

+
+public AnnotationOverrides()
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(Class<?> beanClass)
+
+
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +

+

+ +
Returns:
List of mix-in sources (starting with highest priority); + can be null or empty list if no mix-ins are to be used.
+
+
+
+ +

+mixInsFor

+
+public abstract List<Class<?>> mixInsFor(ClassKey beanClass)
+
+
+
+
+
+
+ +

+builder

+
+public static AnnotationOverrides.StdBuilder builder()
+
+
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/Annotations.html b/javadoc/0.5.2/com/fasterxml/classmate/Annotations.html new file mode 100644 index 0000000..1c839fb --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/Annotations.html @@ -0,0 +1,417 @@ + + + + + + + +Annotations (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class Annotations

+
+java.lang.Object
+  extended by com.fasterxml.classmate.Annotations
+
+
+
+
public class Annotations
extends Object
+ + +

+Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors). +

+ +

+

+
Author:
+
tatu
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<Class<? extends Annotation>,Annotation>_annotations + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Annotations() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(Annotation override) + +
+          Method for adding specified annotation, overriding existing value + for the annotation type.
+ voidaddAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+ voidaddAsDefault(Annotation defValue) + +
+          Method for adding specified annotation if and only if no value + exists for the annotation type.
+ + + + + +
+<A extends Annotation> +
+A
+
get(Class<A> cls) + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_annotations

+
+protected HashMap<Class<? extends Annotation>,Annotation> _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Annotations

+
+public Annotations()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(Annotation override)
+
+
Method for adding specified annotation, overriding existing value + for the annotation type. +

+

+
+
+
+
+ +

+addAll

+
+public void addAll(Annotations overrides)
+
+
Method for adding all annotations from specified set, as overrides + to annotations this set has +

+

+
+
+
+
+ +

+addAsDefault

+
+public void addAsDefault(Annotation defValue)
+
+
Method for adding specified annotation if and only if no value + exists for the annotation type. +

+

+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+get

+
+public <A extends Annotation> A get(Class<A> cls)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/Filter.html b/javadoc/0.5.2/com/fasterxml/classmate/Filter.html new file mode 100644 index 0000000..37cfdec --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/Filter.html @@ -0,0 +1,212 @@ + + + + + + + +Filter (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Interface Filter<T>

+
+
+
public interface Filter<T>
+ + +

+Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ booleaninclude(T element) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+include

+
+boolean include(T element)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/GenericType.html b/javadoc/0.5.2/com/fasterxml/classmate/GenericType.html new file mode 100644 index 0000000..69b2ee7 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/GenericType.html @@ -0,0 +1,243 @@ + + + + + + + +GenericType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class GenericType<T>

+
+java.lang.Object
+  extended by com.fasterxml.classmate.GenericType<T>
+
+
+
+
public abstract class GenericType<T>
extends Object
+ + +

+This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects). + It is based on ideas from + http://gafter.blogspot.com/2006/12/super-type-tokens.html, +

+ Usage is by sub-classing: here is one way to instantiate reference + to generic type List<Integer>: +

+  GenericType type = new GenericType<List<Integer>>() { };
+
+ which can be passed to methods that accept GenericReference. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected GenericType() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GenericType

+
+protected GenericType()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/MemberResolver.html b/javadoc/0.5.2/com/fasterxml/classmate/MemberResolver.html new file mode 100644 index 0000000..2b8eac0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/MemberResolver.html @@ -0,0 +1,520 @@ + + + + + + + +MemberResolver (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class MemberResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.MemberResolver
+
+
+
+
public class MemberResolver
extends Object
+ + +

+Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes). +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_cfgIncludeLangObject + +
+          Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>_fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>_methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+protected  TypeResolver_typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  + + + + + + + + + + +
+Constructor Summary
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  void_gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedTypeWithMembersresolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ MemberResolversetConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolversetFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolversetIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolversetMethodFilter(Filter<RawMethod> f) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +

+

+
+
+
+ +

+_cfgIncludeLangObject

+
+protected boolean _cfgIncludeLangObject
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MemberResolver

+
+public MemberResolver(TypeResolver typeResolver)
+
+
Constructor for resolver that does not include java.lang.Object + in type hierarchy +

+

+ + + + + + + + +
+Method Detail
+ +

+setIncludeLangObject

+
+public MemberResolver setIncludeLangObject(boolean state)
+
+
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +

+

+
+
+
+
+ +

+setFieldFilter

+
+public MemberResolver setFieldFilter(Filter<RawField> f)
+
+
+
+
+
+
+ +

+setMethodFilter

+
+public MemberResolver setMethodFilter(Filter<RawMethod> f)
+
+
+
+
+
+
+ +

+setConstructorFilter

+
+public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
+
+
+
+
+
+
+ +

+resolve

+
+public ResolvedTypeWithMembers resolve(ResolvedType mainType,
+                                       AnnotationConfiguration annotationConfig,
+                                       AnnotationOverrides annotationOverrides)
+
+
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +

+

+
Parameters:
mainType - Resolved type that is the starting point (i.e. the leaf class) + for member resolution.
annotationConfig - Configuration of annotation types; which ones to include, how to inherit
annotationOverrides - Definitions of annotation overrides to use, if any (may be null)
+
+
+
+ +

+_gatherTypes

+
+protected void _gatherTypes(ResolvedType currentType,
+                            Set<ClassKey> seenTypes,
+                            List<ResolvedType> types)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/ResolvedType.html b/javadoc/0.5.2/com/fasterxml/classmate/ResolvedType.html new file mode 100644 index 0000000..833720c --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/ResolvedType.html @@ -0,0 +1,1227 @@ + + + + + + + +ResolvedType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+
+
+
Direct Known Subclasses:
ResolvedArrayType, ResolvedInterfaceType, ResolvedObjectType, ResolvedPrimitiveType, ResolvedRecursiveType, TypePlaceHolder
+
+
+
+
public abstract class ResolvedType
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Class<?>_erasedType + +
+           
+protected  TypeBindings_typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+protected static RawConstructor[]NO_CONSTRUCTORS + +
+           
+protected static RawField[]NO_FIELDS + +
+           
+protected static RawMethod[]NO_METHODS + +
+           
+protected static ResolvedType[]NO_TYPES + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringBuilder_appendClassDescription(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassName(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassSignature(StringBuilder sb) + +
+           
+protected  StringBuilder_appendErasedClassSignature(StringBuilder sb) + +
+           
+protected  RawConstructor[]_getConstructors() + +
+           
+protected  RawField[]_getFields(boolean statics) + +
+           
+protected  RawMethod[]_getMethods(boolean statics) + +
+           
+abstract  StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+abstract  StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtype(Class<?> subtype) + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
+abstract  booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetBriefDescription() + +
+          Human-readable brief description of type, which does not include + information about super types.
+ List<RawConstructor>getConstructors() + +
+           
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ Class<?>getErasedType() + +
+          Returns type-erased Class that this resolved type has.
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+abstract  List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+abstract  ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ TypeBindingsgetTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ List<ResolvedType>getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ inthashCode() + +
+           
+abstract  booleanisAbstract() + +
+           
+abstract  booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisConcrete() + +
+           
+ booleanisInstanceOf(Class<?> type) + +
+           
+abstract  booleanisInterface() + +
+           
+abstract  booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ StringtoString() + +
+           
+ List<ResolvedType>typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_TYPES

+
+protected static final ResolvedType[] NO_TYPES
+
+
+
+
+
+ +

+NO_CONSTRUCTORS

+
+protected static final RawConstructor[] NO_CONSTRUCTORS
+
+
+
+
+
+ +

+NO_FIELDS

+
+protected static final RawField[] NO_FIELDS
+
+
+
+
+
+ +

+NO_METHODS

+
+protected static final RawMethod[] NO_METHODS
+
+
+
+
+
+ +

+_erasedType

+
+protected final Class<?> _erasedType
+
+
+
+
+
+ +

+_typeBindings

+
+protected final TypeBindings _typeBindings
+
+
Type bindings active when resolving members (methods, fields, + constructors) of this type +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedType

+
+protected ResolvedType(Class<?> cls,
+                       TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public abstract boolean canCreateSubtypes()
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
+
+
+
+ +

+canCreateSubtype

+
+public final boolean canCreateSubtype(Class<?> subtype)
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +

+

+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
Returns type-erased Class that this resolved type has. +

+

+
+
+
+
+ +

+getParentClass

+
+public abstract ResolvedType getParentClass()
+
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
+
+
+
+ +

+getSelfReferencedType

+
+public abstract ResolvedType getSelfReferencedType()
+
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
+
+
+
+ +

+getArrayElementType

+
+public abstract ResolvedType getArrayElementType()
+
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
+
+
+
+ +

+getImplementedInterfaces

+
+public abstract List<ResolvedType> getImplementedInterfaces()
+
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Returns list of generic type declarations for this type, in order they + are declared in class description. +

+

+
+
+
+
+ +

+getTypeBindings

+
+public TypeBindings getTypeBindings()
+
+
Method for accessing bindings of type variables to resolved types in context + of this type. It has same number of entries as return List of + getTypeParameters(), accessible using declared name to which they + bind; for example, Map has 2 type bindings; one for + key type (name "K", from Map.java) and one for value type + (name "V", from Map.java). +

+

+
+
+
+
+ +

+typeParametersFor

+
+public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
+
+
Method that will try to find type parameterization this type + has for specified super type +

+

+ +
Returns:
List of type parameters for specified supertype (which may + be empty, if supertype is not a parametric type); null if specified + type is not a super type of this type
+
+
+
+ +

+findSupertype

+
+public ResolvedType findSupertype(Class<?> erasedSupertype)
+
+
Method for finding super type of this type that has specified type + erased signature. If supertype is an interface which is implemented + using multiple inheritance paths, preference is given to interfaces + implemented "highest up the stack" (directly implemented interfaces + over interfaces superclass implements). +

+

+
+
+
+
+ +

+isInterface

+
+public abstract boolean isInterface()
+
+
+
+
+
+
+ +

+isConcrete

+
+public final boolean isConcrete()
+
+
+
+
+
+
+ +

+isAbstract

+
+public abstract boolean isAbstract()
+
+
+
+
+
+
+ +

+isArray

+
+public abstract boolean isArray()
+
+
Method that indicates whether this type is an array type. +

+

+
+
+
+
+ +

+isPrimitive

+
+public abstract boolean isPrimitive()
+
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
+
+
+
+ +

+isInstanceOf

+
+public final boolean isInstanceOf(Class<?> type)
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
+
+
+
+ +

+getBriefDescription

+
+public String getBriefDescription()
+
+
Human-readable brief description of type, which does not include + information about super types. +

+

+
+
+
+
+ +

+appendBriefDescription

+
+public abstract StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public abstract StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendSignature

+
+public abstract StringBuilder appendSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public abstract StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+_appendClassSignature

+
+protected StringBuilder _appendClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendErasedClassSignature

+
+protected StringBuilder _appendErasedClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassDescription

+
+protected StringBuilder _appendClassDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassName

+
+protected StringBuilder _appendClassName(StringBuilder sb)
+
+
+
+
+
+
+ +

+_getFields

+
+protected RawField[] _getFields(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getMethods

+
+protected RawMethod[] _getMethods(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getConstructors

+
+protected RawConstructor[] _getConstructors()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/ResolvedTypeWithMembers.html b/javadoc/0.5.2/com/fasterxml/classmate/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..11f0da0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/ResolvedTypeWithMembers.html @@ -0,0 +1,830 @@ + + + + + + + +ResolvedTypeWithMembers (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedTypeWithMembers

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
+
+
public class ResolvedTypeWithMembers
extends Object
+ + +

+Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations"). + Instances are created by MemberResolver. +

+ Note that instances are not thread-safe, as the expectation is that instances + will not be shared (unlike raw members or resolved types) +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler_annotationHandler + +
+          Handler for resolving annotation information
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  ResolvedConstructor[]_constructors + +
+           
+protected  Filter<RawField>_fieldFilter + +
+          Filter to use for selecting fields to include
+protected  HierarchicType_mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  ResolvedField[]_memberFields + +
+           
+protected  ResolvedMethod[]_memberMethods + +
+           
+protected  Filter<RawMethod>_methodFilter + +
+          Filter to use for selecting methods to include
+protected  ResolvedMethod[]_staticMethods + +
+           
+protected  TypeResolver_typeResolver + +
+          Need to be able to resolve member types still
+protected  HierarchicType[]_types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+protected static AnnotationConfigurationDEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<HierarchicType>allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ ResolvedConstructor[]getConstructors() + +
+           
+ ResolvedField[]getMemberFields() + +
+           
+ ResolvedMethod[]getMemberMethods() + +
+           
+ ResolvedMethod[]getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+ List<HierarchicType>mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+protected  ResolvedConstructorresolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+protected  ResolvedFieldresolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+protected  ResolvedMethod[]resolveMemberMethods() + +
+           
+protected  ResolvedMethodresolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_ANNOTATION_CONFIG

+
+protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
+
+
Default annotation configuration is to ignore all annotations types. +

+

+
+
+
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Need to be able to resolve member types still +

+

+
+
+
+ +

+_annotationHandler

+
+protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
+
+
Handler for resolving annotation information +

+

+
+
+
+ +

+_mainType

+
+protected final HierarchicType _mainType
+
+
Leaf of the type hierarchy, i.e. type from which this hierarchy + was generated. +

+

+
+
+
+ +

+_types

+
+protected final HierarchicType[] _types
+
+
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter to use for selecting fields to include +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter to use for selecting constructors to include +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter to use for selecting methods to include +

+

+
+
+
+ +

+_staticMethods

+
+protected ResolvedMethod[] _staticMethods
+
+
+
+
+
+ +

+_memberMethods

+
+protected ResolvedMethod[] _memberMethods
+
+
+
+
+
+ +

+_memberFields

+
+protected ResolvedField[] _memberFields
+
+
+
+
+
+ +

+_constructors

+
+protected ResolvedConstructor[] _constructors
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeWithMembers

+
+public ResolvedTypeWithMembers(TypeResolver typeResolver,
+                               AnnotationConfiguration annotationConfig,
+                               HierarchicType mainType,
+                               HierarchicType[] types,
+                               Filter<RawConstructor> constructorFilter,
+                               Filter<RawField> fieldFilter,
+                               Filter<RawMethod> methodFilter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+allTypesAndOverrides

+
+public List<HierarchicType> allTypesAndOverrides()
+
+
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +

+

+
+
+
+
+ +

+mainTypeAndOverrides

+
+public List<HierarchicType> mainTypeAndOverrides()
+
+
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +

+

+
+
+
+
+ +

+overridesOnly

+
+public List<HierarchicType> overridesOnly()
+
+
Accessor for finding just overrides for the main type (if any). +

+

+
+
+
+
+ +

+getStaticMethods

+
+public ResolvedMethod[] getStaticMethods()
+
+
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +

+

+
+
+
+
+ +

+getMemberFields

+
+public ResolvedField[] getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public ResolvedMethod[] getMemberMethods()
+
+
+
+
+
+
+ +

+getConstructors

+
+public ResolvedConstructor[] getConstructors()
+
+
+
+
+
+
+ +

+resolveConstructors

+
+protected ResolvedConstructor[] resolveConstructors()
+
+
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +

+

+
+
+
+
+ +

+resolveMemberFields

+
+protected ResolvedField[] resolveMemberFields()
+
+
Method for fully resolving field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in. +

+

+
+
+
+
+ +

+resolveStaticMethods

+
+protected ResolvedMethod[] resolveStaticMethods()
+
+
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +

+

+
+
+
+
+ +

+resolveMemberMethods

+
+protected ResolvedMethod[] resolveMemberMethods()
+
+
+
+
+
+
+ +

+resolveConstructor

+
+protected ResolvedConstructor resolveConstructor(RawConstructor raw)
+
+
Method for resolving individual constructor completely +

+

+
+
+
+
+ +

+resolveField

+
+protected ResolvedField resolveField(RawField raw)
+
+
Method for resolving individual field completely +

+

+
+
+
+
+ +

+resolveMethod

+
+protected ResolvedMethod resolveMethod(RawMethod raw)
+
+
Method for resolving individual method completely +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/TypeBindings.html b/javadoc/0.5.2/com/fasterxml/classmate/TypeBindings.html new file mode 100644 index 0000000..49279a2 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/TypeBindings.html @@ -0,0 +1,476 @@ + + + + + + + +TypeBindings (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeBindings

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeBindings
+
+
+
+
public final class TypeBindings
extends Object
+ + +

+Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TypeBindingscreate(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingscreate(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsemptyBindings() + +
+           
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ StringgetBoundName(int index) + +
+           
+ ResolvedTypegetBoundType(int index) + +
+           
+ List<ResolvedType>getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ inthashCode() + +
+           
+ booleanisEmpty() + +
+           
+ intsize() + +
+          Returns number of bindings contained
+ StringtoString() + +
+           
+protected  ResolvedType[]typeParameterArray() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyBindings

+
+public static TypeBindings emptyBindings()
+
+
+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  List<ResolvedType> typeList)
+
+
Factory method for constructing bindings for given class using specified type + parameters. +

+

+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  ResolvedType[] types)
+
+
+
+
+
+
+ +

+findBoundType

+
+public ResolvedType findBoundType(String name)
+
+
Find type bound to specified name, if there is one; returns bound type if so, null if not. +

+

+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
Returns number of bindings contained +

+

+
+
+
+
+ +

+getBoundName

+
+public String getBoundName(int index)
+
+
+
+
+
+
+ +

+getBoundType

+
+public ResolvedType getBoundType(int index)
+
+
+
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Accessor for getting bound types in declaration order +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+typeParameterArray

+
+protected ResolvedType[] typeParameterArray()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/TypeResolver.html b/javadoc/0.5.2/com/fasterxml/classmate/TypeResolver.html new file mode 100644 index 0000000..d906873 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/TypeResolver.html @@ -0,0 +1,553 @@ + + + + + + + +TypeResolver (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeResolver
+
+
+
+
public class TypeResolver
extends Object
+ + +

+Object that is used for resolving generic type information of a class + so that it is accessible using simple API. Resolved types are also starting + point for accessing resolved (generics aware) return and argument types + of class members (methods, fields, constructors). +

+ Note that resolver instances are stateful in that resolvers cache resolved + types for efficiency. Since this is internal state and not directly visible + to callers, access to state is fully synchronized so that access from + multiple threads is safe. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected static HashMap<ClassKey,ResolvedType>_primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  ResolvedTypeCache_resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  + + + + + + + + + + +
+Constructor Summary
TypeResolver() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedArrayTypearrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static booleanisSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTyperesolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTyperesolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTyperesolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTyperesolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_primitiveTypes

+
+protected static final HashMap<ClassKey,ResolvedType> _primitiveTypes
+
+
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. Same goes for limited number + of other "standard" types... +

+

+
+
+
+ +

+_resolvedTypes

+
+protected final ResolvedTypeCache _resolvedTypes
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypeResolver

+
+public TypeResolver()
+
+
+ + + + + + + + +
+Method Detail
+ +

+resolve

+
+public ResolvedType resolve(Class<?> rawType)
+
+
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            Class<?>... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            ResolvedType... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType valueType = TypeResolver.resolve(new GenericType<Set<String>>() { });
+  ResolvedType type = TypeResolver.resolve(List.class, valueType);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Set<String>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(GenericType<?> generic)
+
+
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +

+

+
+
+
+
+ +

+arrayType

+
+public ResolvedArrayType arrayType(ResolvedType elementType)
+
+
Factory method for constructing array type of given element type. +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Type jdkType,
+                            TypeBindings typeBindings)
+
+
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +

+ Use of this method is discouraged (use if and only if you really know what you + are doing!); but if used, type bindings passed should come from ResolvedType + instance of declaring class (or interface). +

+

+
+
+
+
+ +

+resolveSubtype

+
+public ResolvedType resolveSubtype(ResolvedType supertype,
+                                   Class<?> subtype)
+                            throws IllegalArgumentException,
+                                   UnsupportedOperationException
+
+
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +

+ A typical use case here is to refine a generic type; for example, given + that we have generic type like List<Integer>, but we want + a more specific implementation type like + class ArrayList but with same parameterization (here just Integer), + we could achieve it by: +

+  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
+  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
+
+ (in this case, it would have been simpler to resolve directly; but in some + cases we are handled supertype and want to refine it, in which case steps + would be the same but separated by other code) +

+ Note that this method will fail if extension can not succeed; either because + this type is not extendable (sub-classable) -- which is true for primitive + and array types -- or because given class is not a subtype of this type. + To check whether subtyping could succeed, you can call + ResolvedType.canCreateSubtypes() to see if supertype can ever + be extended. +

+

+
Parameters:
supertype - Type to subtype (extend)
subclass - Type-erased sub-class or sub-interface +
Returns:
Resolved subtype +
Throws: +
IllegalArgumentException - If this type can be extended in general, but not into specified sub-class +
UnsupportedOperationException - If this type can not be sub-classed
+
+
+
+ +

+isSelfReference

+
+public static boolean isSelfReference(ResolvedType type)
+
+
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..2f7c036 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration

+
+No usage of com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.html new file mode 100644 index 0000000..937c629 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationConfiguration.html @@ -0,0 +1,240 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration

+
+ + + + + + + + + +
+Packages that use AnnotationConfiguration
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationConfiguration in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationConfiguration in com.fasterxml.classmate
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationConfiguration
+protected static AnnotationConfigurationResolvedTypeWithMembers.DEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationConfiguration
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationConfiguration
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationInclusion.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationInclusion.html new file mode 100644 index 0000000..4906f28 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationInclusion.html @@ -0,0 +1,330 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationInclusion (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationInclusion

+
+ + + + + + + + + +
+Packages that use AnnotationInclusion
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationInclusion in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._defaultInclusion + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type AnnotationInclusion
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+           
+static AnnotationInclusionAnnotationInclusion.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]AnnotationInclusion.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationInclusion
+ voidAnnotationConfiguration.StdConfiguration.setInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationInclusion
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..236deb2 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdBuilder (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdBuilder

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides.StdBuilder
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides.StdBuilder in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides.StdBuilder
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+static AnnotationOverrides.StdBuilderAnnotationOverrides.builder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..06702a3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdImpl (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdImpl

+
+No usage of com.fasterxml.classmate.AnnotationOverrides.StdImpl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.html new file mode 100644 index 0000000..db9c919 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/AnnotationOverrides.html @@ -0,0 +1,221 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationOverrides in com.fasterxml.classmate
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides
+ AnnotationOverridesAnnotationOverrides.StdBuilder.build() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationOverrides
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/Annotations.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/Annotations.html new file mode 100644 index 0000000..6f115b6 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/Annotations.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.Annotations (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.Annotations

+
+ + + + + + + + + + + + + +
+Packages that use Annotations
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Annotations
+ voidAnnotations.addAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate.members
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as Annotations
+protected  AnnotationsResolvedMember._annotations + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.members with parameters of type Annotations
+ voidResolvedMember.applyOverrides(Annotations overrides) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type Annotations
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/Filter.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/Filter.html new file mode 100644 index 0000000..1f7d36a --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/Filter.html @@ -0,0 +1,307 @@ + + + + + + + +Uses of Interface com.fasterxml.classmate.Filter (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
com.fasterxml.classmate.Filter

+
+ + + + + + + + + +
+Packages that use Filter
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of Filter in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as Filter
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Filter
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type Filter
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/GenericType.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/GenericType.html new file mode 100644 index 0000000..b56f2da --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/GenericType.html @@ -0,0 +1,183 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.GenericType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.GenericType

+
+ + + + + + + + + +
+Packages that use GenericType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of GenericType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type GenericType
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/MemberResolver.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/MemberResolver.html new file mode 100644 index 0000000..4f09e85 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/MemberResolver.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.MemberResolver (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.MemberResolver

+
+ + + + + + + + + +
+Packages that use MemberResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of MemberResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return MemberResolver
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedType.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedType.html new file mode 100644 index 0000000..ab72fd4 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedType.html @@ -0,0 +1,1227 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedType

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use ResolvedType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedType
+protected static ResolvedType[]ResolvedType.NO_TYPES + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ResolvedType
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedType
+ ResolvedTypeTypeBindings.findBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ ResolvedTypeResolvedType.findSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypeResolvedType.getArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ ResolvedTypeTypeBindings.getBoundType(int index) + +
+           
+abstract  ResolvedTypeResolvedType.getParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypeResolvedType.getSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ ResolvedTypeTypeResolver.resolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+protected  ResolvedType[]TypeBindings.typeParameterArray() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type ResolvedType
+abstract  List<ResolvedType>ResolvedType.getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<ResolvedType>TypeBindings.getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ List<ResolvedType>ResolvedType.getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ List<ResolvedType>ResolvedType.typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static booleanTypeResolver.isSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+  +

+ + + + + + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as ResolvedType
+protected  ResolvedType[]ResolvedMethod._argumentTypes + +
+           
+protected  ResolvedType[]ResolvedConstructor._argumentTypes + +
+           
+protected  ResolvedTypeResolvedMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeRawMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeResolvedMethod._returnType + +
+           
+protected  ResolvedTypeResolvedField._type + +
+           
+protected  ResolvedTypeHierarchicType._type + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return ResolvedType
+ ResolvedTypeResolvedMethod.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedConstructor.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedMember.getDeclaringType() + +
+           
+ ResolvedTypeRawMember.getDeclaringType() + +
+           
+ ResolvedTypeResolvedMethod.getReturnType() + +
+           
+ ResolvedTypeResolvedMethod.getType() + +
+           
+abstract  ResolvedTypeResolvedMember.getType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ ResolvedTypeResolvedField.getType() + +
+           
+ ResolvedTypeResolvedConstructor.getType() + +
+           
+ ResolvedTypeHierarchicType.getType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type ResolvedType
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
RawField(ResolvedType context, + Field field) + +
+           
RawMember(ResolvedType context) + +
+           
RawMethod(ResolvedType context, + Method method) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of ResolvedType in com.fasterxml.classmate.types
+ classResolvedArrayType + +
+           
+ classResolvedInterfaceType + +
+           
+ classResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
+ classResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+ classResolvedRecursiveType + +
+          Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
+ classTypePlaceHolder + +
+          Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedType
+protected  ResolvedTypeTypePlaceHolder._actualType + +
+          Type assigned during wildcard resolution
+protected  ResolvedTypeResolvedArrayType._elementType + +
+           
+protected  ResolvedTypeResolvedRecursiveType._referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+protected  ResolvedType[]ResolvedObjectType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+protected  ResolvedType[]ResolvedInterfaceType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedType
+ ResolvedTypeTypePlaceHolder.actualType() + +
+           
+ ResolvedTypeTypePlaceHolder.getArrayElementType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getArrayElementType() + +
+          To avoid infinite loops, will return null type
+ ResolvedTypeResolvedPrimitiveType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedObjectType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedArrayType.getArrayElementType() + +
+           
+ ResolvedTypeTypePlaceHolder.getParentClass() + +
+           
+ ResolvedTypeResolvedRecursiveType.getParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypeResolvedPrimitiveType.getParentClass() + +
+           
+ ResolvedTypeResolvedInterfaceType.getParentClass() + +
+           
+ ResolvedTypeResolvedArrayType.getParentClass() + +
+           
+ ResolvedTypeTypePlaceHolder.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedPrimitiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedObjectType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedArrayType.getSelfReferencedType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedType
+ List<ResolvedType>TypePlaceHolder.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedRecursiveType.getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<ResolvedType>ResolvedPrimitiveType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedObjectType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedInterfaceType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedArrayType.getImplementedInterfaces() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types with parameters of type ResolvedType
+ voidTypePlaceHolder.actualType(ResolvedType t) + +
+           
+ voidResolvedRecursiveType.setReference(ResolvedType ref) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedType
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedType
+ voidResolvedTypeCache.add(ResolvedType type) + +
+           
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..57d2b60 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html @@ -0,0 +1,186 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedTypeWithMembers (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedTypeWithMembers

+
+ + + + + + + + + +
+Packages that use ResolvedTypeWithMembers
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeWithMembers in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedTypeWithMembers
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeBindings.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeBindings.html new file mode 100644 index 0000000..0cba305 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeBindings.html @@ -0,0 +1,324 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeBindings (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeBindings

+
+ + + + + + + + + + + + + +
+Packages that use TypeBindings
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeBindings
+protected  TypeBindingsResolvedType._typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return TypeBindings
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsTypeBindings.emptyBindings() + +
+           
+ TypeBindingsResolvedType.getTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type TypeBindings
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeBindings
ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type TypeBindings
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeResolver.html b/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeResolver.html new file mode 100644 index 0000000..c488ef3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/class-use/TypeResolver.html @@ -0,0 +1,218 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeResolver (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeResolver

+
+ + + + + + + + + +
+Packages that use TypeResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of TypeResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeResolver
+protected  TypeResolverResolvedTypeWithMembers._typeResolver + +
+          Need to be able to resolve member types still
+protected  TypeResolverMemberResolver._typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeResolver
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/HierarchicType.html b/javadoc/0.5.2/com/fasterxml/classmate/members/HierarchicType.html new file mode 100644 index 0000000..229f2b0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/HierarchicType.html @@ -0,0 +1,466 @@ + + + + + + + +HierarchicType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class HierarchicType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.HierarchicType
+
+
+
+
public final class HierarchicType
extends Object
+ + +

+Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_isMixin + +
+          Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
+protected  int_priority + +
+          Relative priority of this type in hierarchy; higher priority members can override + lower priority members.
+protected  ResolvedType_type + +
+           
+  + + + + + + + + + + +
+Constructor Summary
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ Class<?>getErasedType() + +
+           
+ intgetPriority() + +
+           
+ ResolvedTypegetType() + +
+           
+ inthashCode() + +
+           
+ booleanisMixin() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_isMixin

+
+protected final boolean _isMixin
+
+
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +

+

+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+
+ +

+_priority

+
+protected final int _priority
+
+
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. Priority values are unique and are based on type index + (starting from 0), although they are not to be used for indexing. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HierarchicType

+
+public HierarchicType(ResolvedType type,
+                      boolean mixin,
+                      int priority)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public ResolvedType getType()
+
+
+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
+
+
+
+
+ +

+isMixin

+
+public boolean isMixin()
+
+
+
+
+
+
+ +

+getPriority

+
+public int getPriority()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/RawConstructor.html b/javadoc/0.5.2/com/fasterxml/classmate/members/RawConstructor.html new file mode 100644 index 0000000..ad09fad --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/RawConstructor.html @@ -0,0 +1,380 @@ + + + + + + + +RawConstructor (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawConstructor
+
+
+
+
public final class RawConstructor
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+ booleanequals(Object o) + +
+           
+ Constructor<?>getRawMember() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawConstructor

+
+public RawConstructor(ResolvedType context,
+                      Constructor<?> constructor)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createKey

+
+public MethodKey createKey()
+
+
Although constructors are different from other methods, we can use + MethodKey easily. +

+

+
+
+
+
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/RawField.html b/javadoc/0.5.2/com/fasterxml/classmate/members/RawField.html new file mode 100644 index 0000000..e1f5ac0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/RawField.html @@ -0,0 +1,335 @@ + + + + + + + +RawField (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawField
+
+
+
+
public class RawField
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawField(ResolvedType context, + Field field) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawField

+
+public RawField(ResolvedType context,
+                Field field)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Field getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/RawMember.html b/javadoc/0.5.2/com/fasterxml/classmate/members/RawMember.html new file mode 100644 index 0000000..c24cd20 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/RawMember.html @@ -0,0 +1,486 @@ + + + + + + + +RawMember (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+
+
+
Direct Known Subclasses:
RawConstructor, RawField, RawMethod
+
+
+
+
public abstract class RawMember
extends Object
+ + +

+Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution. + Instances are typically created by ResolvedType + when requested, and form the input to eventual full flattening of type members. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected RawMember(ResolvedType context) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanequals(Object o) + +
+           
+ Annotation[]getAnnotations() + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+           
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMember

+
+protected RawMember(ResolvedType context)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
+
+
+
+
+ +

+equals

+
+public abstract boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/RawMethod.html b/javadoc/0.5.2/com/fasterxml/classmate/members/RawMethod.html new file mode 100644 index 0000000..81422dd --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/RawMethod.html @@ -0,0 +1,354 @@ + + + + + + + +RawMethod (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawMethod
+
+
+
+
public class RawMethod
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Method_method + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawMethod(ResolvedType context, + Method method) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+           
+ booleanequals(Object o) + +
+           
+ MethodgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMethod

+
+public RawMethod(ResolvedType context,
+                 Method method)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+createKey

+
+public MethodKey createKey()
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedConstructor.html b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedConstructor.html new file mode 100644 index 0000000..088560f --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedConstructor.html @@ -0,0 +1,454 @@ + + + + + + + +ResolvedConstructor (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedConstructor
+
+
+
+
public final class ResolvedConstructor
extends ResolvedMember
+ + +

+Class that represents a constructor that has fully resolved generic + type information and annotation information. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ Constructor<?>getRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedConstructor

+
+public ResolvedConstructor(ResolvedType context,
+                           Annotations ann,
+                           Constructor<?> constructor,
+                           ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedField.html b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedField.html new file mode 100644 index 0000000..d4913f0 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedField.html @@ -0,0 +1,406 @@ + + + + + + + +ResolvedField (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedField
+
+
+
+
public class ResolvedField
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+protected  ResolvedType_type + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAnnotation(Annotation ann) + +
+           
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedField

+
+public ResolvedField(ResolvedType context,
+                     Annotations ann,
+                     Field field,
+                     ResolvedType type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAnnotation

+
+public void addAnnotation(Annotation ann)
+
+
+
+
+
+
+ +

+getRawMember

+
+public Field getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMember.html b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMember.html new file mode 100644 index 0000000..5c9ef44 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMember.html @@ -0,0 +1,545 @@ + + + + + + + +ResolvedMember (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+
+
+
Direct Known Subclasses:
ResolvedConstructor, ResolvedField, ResolvedMethod
+
+
+
+
public abstract class ResolvedMember
extends Object
+ + +

+Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not + overridden, or filtered out) are resolved, since resolution process can add non-trivial + overhead. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Annotations_annotations + +
+           
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidapplyDefault(Annotation override) + +
+           
+ voidapplyOverride(Annotation override) + +
+           
+ voidapplyOverrides(Annotations overrides) + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+          Returns JDK object that represents member.
+abstract  ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+
+ +

+_annotations

+
+protected final Annotations _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMember

+
+protected ResolvedMember(ResolvedType context,
+                         Annotations ann)
+
+
+ + + + + + + + +
+Method Detail
+ +

+applyOverride

+
+public void applyOverride(Annotation override)
+
+
+
+
+
+
+ +

+applyOverrides

+
+public void applyOverrides(Annotations overrides)
+
+
+
+
+
+
+ +

+applyDefault

+
+public void applyDefault(Annotation override)
+
+
+
+
+
+
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getType

+
+public abstract ResolvedType getType()
+
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
Returns JDK object that represents member. +

+

+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMethod.html b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMethod.html new file mode 100644 index 0000000..0d17530 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/ResolvedMethod.html @@ -0,0 +1,466 @@ + + + + + + + +ResolvedMethod (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedMethod
+
+
+
+
public class ResolvedMethod
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Method_method + +
+           
+protected  ResolvedType_returnType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ MethodgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetReturnType() + +
+           
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+
+ +

+_returnType

+
+protected final ResolvedType _returnType
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMethod

+
+public ResolvedMethod(ResolvedType context,
+                      Annotations ann,
+                      Method method,
+                      ResolvedType returnType,
+                      ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getReturnType

+
+public ResolvedType getReturnType()
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/HierarchicType.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/HierarchicType.html new file mode 100644 index 0000000..94014b3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/HierarchicType.html @@ -0,0 +1,257 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.HierarchicType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.HierarchicType

+
+ + + + + + + + + +
+Packages that use HierarchicType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of HierarchicType in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as HierarchicType
+protected  HierarchicTypeResolvedTypeWithMembers._mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  HierarchicType[]ResolvedTypeWithMembers._types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type HierarchicType
+ List<HierarchicType>ResolvedTypeWithMembers.allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ List<HierarchicType>ResolvedTypeWithMembers.mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>ResolvedTypeWithMembers.overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type HierarchicType
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawConstructor.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawConstructor.html new file mode 100644 index 0000000..699c9cc --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawConstructor.html @@ -0,0 +1,347 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawConstructor (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawConstructor

+
+ + + + + + + + + + + + + +
+Packages that use RawConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawConstructor
+protected static RawConstructor[]ResolvedType.NO_CONSTRUCTORS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawConstructor
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawConstructor
+protected  RawConstructor[]ResolvedType._getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedType.getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawConstructor
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawConstructor
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawConstructor
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawConstructor
+protected  RawConstructor[]ResolvedObjectType._constructors + +
+          Constructors declared by the resolved Object class.
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedRecursiveType.getConstructors() + +
+           
+ List<RawConstructor>ResolvedObjectType.getConstructors() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawField.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawField.html new file mode 100644 index 0000000..75126bd --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawField.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawField (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawField

+
+ + + + + + + + + + + + + +
+Packages that use RawField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawField
+protected static RawField[]ResolvedType.NO_FIELDS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawField
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawField
+protected  RawField[]ResolvedType._getFields(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawField
+ List<RawField>ResolvedType.getMemberFields() + +
+           
+ List<RawField>ResolvedType.getStaticFields() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawField
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawField
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawField
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawField
+protected  RawField[]ResolvedInterfaceType._constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawField[]ResolvedObjectType._memberFields + +
+           
+protected  RawField[]ResolvedObjectType._staticFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawField
+ List<RawField>ResolvedRecursiveType.getMemberFields() + +
+           
+ List<RawField>ResolvedObjectType.getMemberFields() + +
+           
+ List<RawField>ResolvedRecursiveType.getStaticFields() + +
+           
+ List<RawField>ResolvedObjectType.getStaticFields() + +
+           
+ List<RawField>ResolvedInterfaceType.getStaticFields() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMember.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMember.html new file mode 100644 index 0000000..e40c7b2 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMember.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMember (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMember

+
+ + + + + + + + + +
+Packages that use RawMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of RawMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of RawMember in com.fasterxml.classmate.members
+ classRawConstructor + +
+           
+ classRawField + +
+           
+ classRawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMethod.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMethod.html new file mode 100644 index 0000000..244b012 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/RawMethod.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMethod (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMethod

+
+ + + + + + + + + + + + + +
+Packages that use RawMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawMethod
+protected static RawMethod[]ResolvedType.NO_METHODS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawMethod
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawMethod
+protected  RawMethod[]ResolvedType._getMethods(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedType.getStaticMethods() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawMethod
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawMethod
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawMethod
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawMethod
+protected  RawMethod[]ResolvedObjectType._memberMethods + +
+           
+protected  RawMethod[]ResolvedInterfaceType._memberMethods + +
+          Interface methods are all public and abstract.
+protected  RawMethod[]ResolvedObjectType._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedRecursiveType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedInterfaceType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedRecursiveType.getStaticMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getStaticMethods() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html new file mode 100644 index 0000000..a12fd1d --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedConstructor (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedConstructor

+
+ + + + + + + + + +
+Packages that use ResolvedConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedConstructor
+protected  ResolvedConstructor[]ResolvedTypeWithMembers._constructors + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedConstructor
+ ResolvedConstructor[]ResolvedTypeWithMembers.getConstructors() + +
+           
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]ResolvedTypeWithMembers.resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedField.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedField.html new file mode 100644 index 0000000..aef6979 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedField.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedField (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedField

+
+ + + + + + + + + +
+Packages that use ResolvedField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedField
+protected  ResolvedField[]ResolvedTypeWithMembers._memberFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedField
+ ResolvedField[]ResolvedTypeWithMembers.getMemberFields() + +
+           
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]ResolvedTypeWithMembers.resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMember.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMember.html new file mode 100644 index 0000000..280c2e5 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMember.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMember (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMember

+
+ + + + + + + + + +
+Packages that use ResolvedMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of ResolvedMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of ResolvedMember in com.fasterxml.classmate.members
+ classResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
+ classResolvedField + +
+           
+ classResolvedMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMethod.html b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMethod.html new file mode 100644 index 0000000..5a6061d --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/class-use/ResolvedMethod.html @@ -0,0 +1,241 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMethod (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMethod

+
+ + + + + + + + + +
+Packages that use ResolvedMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedMethod
+protected  ResolvedMethod[]ResolvedTypeWithMembers._memberMethods + +
+           
+protected  ResolvedMethod[]ResolvedTypeWithMembers._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedMethod
+ ResolvedMethod[]ResolvedTypeWithMembers.getMemberMethods() + +
+           
+ ResolvedMethod[]ResolvedTypeWithMembers.getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveMemberMethods() + +
+           
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/package-frame.html b/javadoc/0.5.2/com/fasterxml/classmate/members/package-frame.html new file mode 100644 index 0000000..a473c78 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/package-frame.html @@ -0,0 +1,49 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +com.fasterxml.classmate.members + + + + +
+Classes  + +
+HierarchicType +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedConstructor +
+ResolvedField +
+ResolvedMember +
+ResolvedMethod
+ + + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/package-summary.html b/javadoc/0.5.2/com/fasterxml/classmate/members/package-summary.html new file mode 100644 index 0000000..2a2510f --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/package-summary.html @@ -0,0 +1,211 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.members +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
HierarchicTypeContainer class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor 
RawField 
RawMemberBase class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMethod 
ResolvedConstructorClass that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField 
ResolvedMemberFully type-resolved equivalent of RawMember.
ResolvedMethod 
+  + +

+

+Package com.fasterxml.classmate.members Description +

+ +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/package-tree.html b/javadoc/0.5.2/com/fasterxml/classmate/members/package-tree.html new file mode 100644 index 0000000..d22f3ce --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/package-tree.html @@ -0,0 +1,158 @@ + + + + + + + +com.fasterxml.classmate.members Class Hierarchy (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.members +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/members/package-use.html b/javadoc/0.5.2/com/fasterxml/classmate/members/package-use.html new file mode 100644 index 0000000..9f58b07 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/members/package-use.html @@ -0,0 +1,270 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.members (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.members

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.members
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate
HierarchicType + +
+          Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
ResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField + +
+           
ResolvedMethod + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.members
RawMember + +
+          Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
ResolvedMember + +
+          Fully type-resolved equivalent of RawMember.
+  +

+ + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.types
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/package-frame.html b/javadoc/0.5.2/com/fasterxml/classmate/package-frame.html new file mode 100644 index 0000000..f6ef8e2 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/package-frame.html @@ -0,0 +1,77 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +com.fasterxml.classmate + + + + +
+Interfaces  + +
+Filter
+ + + + + + +
+Classes  + +
+AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+GenericType +
+MemberResolver +
+ResolvedType +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypeResolver
+ + + + + + +
+Enums  + +
+AnnotationInclusion
+ + + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/package-summary.html b/javadoc/0.5.2/com/fasterxml/classmate/package-summary.html new file mode 100644 index 0000000..f49a5ec --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/package-summary.html @@ -0,0 +1,265 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate +

+Package that contains main public interface of ClassMate + package. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
Filter<T>Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AnnotationConfigurationInterface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration.StdConfigurationSimple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationOverridesInterface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilderTo make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdImplSimple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationsContainer class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
GenericType<T>This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolverBuilder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType 
ResolvedTypeWithMembersClass that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindingsHelper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolverObject that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  + +

+ + + + + + + + + +
+Enum Summary
AnnotationInclusionEnumeration that defines different settings for handling behavior + of individual annotations
+  + +

+

+Package com.fasterxml.classmate Description +

+ +

+Package that contains main public interface of ClassMate + package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/package-tree.html b/javadoc/0.5.2/com/fasterxml/classmate/package-tree.html new file mode 100644 index 0000000..31bda04 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/package-tree.html @@ -0,0 +1,173 @@ + + + + + + + +com.fasterxml.classmate Class Hierarchy (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/package-use.html b/javadoc/0.5.2/com/fasterxml/classmate/package-use.html new file mode 100644 index 0000000..d6d0940 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/package-use.html @@ -0,0 +1,325 @@ + + + + + + + +Uses of Package com.fasterxml.classmate (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate
AnnotationConfiguration + +
+          Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationInclusion + +
+          Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides + +
+          Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Filter + +
+          Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
GenericType + +
+          This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolver + +
+          Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType + +
+           
ResolvedTypeWithMembers + +
+          Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolver + +
+          Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.members
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
ResolvedType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.types
ResolvedType + +
+           
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.util
ResolvedType + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedArrayType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedArrayType.html new file mode 100644 index 0000000..4fdc9b9 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedArrayType.html @@ -0,0 +1,625 @@ + + + + + + + +ResolvedArrayType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedArrayType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedArrayType
+
+
+
+
public final class ResolvedArrayType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_elementType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_elementType

+
+protected final ResolvedType _elementType
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedArrayType

+
+public ResolvedArrayType(Class<?> erased,
+                         TypeBindings bindings,
+                         ResolvedObjectType superclass,
+                         ResolvedType elementType)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedInterfaceType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedInterfaceType.html new file mode 100644 index 0000000..c695d42 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedInterfaceType.html @@ -0,0 +1,709 @@ + + + + + + + +ResolvedInterfaceType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedInterfaceType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
+
+
public class ResolvedInterfaceType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawField[]_constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawMethod[]_memberMethods + +
+          Interface methods are all public and abstract.
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getSignature, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_constantFields

+
+protected RawField[] _constantFields
+
+
Interfaces can have static final (constant) fields. +

+

+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
Interface methods are all public and abstract. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedInterfaceType

+
+public ResolvedInterfaceType(Class<?> erased,
+                             TypeBindings bindings,
+                             ResolvedType[] superInterfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedObjectType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedObjectType.html new file mode 100644 index 0000000..a9f8293 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedObjectType.html @@ -0,0 +1,892 @@ + + + + + + + +ResolvedObjectType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedObjectType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedObjectType
+
+
+
+
public class ResolvedObjectType
extends ResolvedType
+ + +

+Type implementation for classes that do not represent interfaces, + primitive or array types. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawConstructor[]_constructors + +
+          Constructors declared by the resolved Object class.
+protected  RawField[]_memberFields + +
+           
+protected  RawMethod[]_memberMethods + +
+           
+protected  int_modifiers + +
+          Modifiers of the underlying class.
+protected  RawField[]_staticFields + +
+           
+protected  RawMethod[]_staticMethods + +
+           
+protected  ResolvedObjectType_superClass + +
+           
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + + + +
+Constructor Summary
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedObjectTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superClass

+
+protected final ResolvedObjectType _superClass
+
+
+
+
+
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_modifiers

+
+protected final int _modifiers
+
+
Modifiers of the underlying class. +

+

+
+
+
+ +

+_constructors

+
+protected RawConstructor[] _constructors
+
+
Constructors declared by the resolved Object class. +

+

+
+
+
+ +

+_memberFields

+
+protected RawField[] _memberFields
+
+
+
+
+
+ +

+_staticFields

+
+protected RawField[] _staticFields
+
+
+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
+
+
+
+ +

+_staticMethods

+
+protected RawMethod[] _staticMethods
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          List<ResolvedType> interfaces)
+
+
+
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          ResolvedType[] interfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedObjectType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public final ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public final boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public final boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public final boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedPrimitiveType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedPrimitiveType.html new file mode 100644 index 0000000..0e6fc4c --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedPrimitiveType.html @@ -0,0 +1,776 @@ + + + + + + + +ResolvedPrimitiveType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedPrimitiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
+
+
public final class ResolvedPrimitiveType
extends ResolvedType
+ + +

+Type used for Java primitive types (which does not include arrays here). +

+ Since set of primitive types is bounded, constructor is defined as protected, + and class final; that is, new primitive types are not to be constructed + by calling applications. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  String_description + +
+          Human-readable description should be simple as well
+protected  String_signature + +
+          Primitive types have single-character Signature, easy and efficient + to just store here
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedPrimitiveType(Class<?> erased, + char sig, + String desc) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static List<ResolvedPrimitiveType>all() + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+static ResolvedPrimitiveTypevoidType() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedType, getMemberFields, getMemberMethods, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_signature

+
+protected final String _signature
+
+
Primitive types have single-character Signature, easy and efficient + to just store here +

+

+
+
+
+ +

+_description

+
+protected final String _description
+
+
Human-readable description should be simple as well +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedPrimitiveType

+
+protected ResolvedPrimitiveType(Class<?> erased,
+                                char sig,
+                                String desc)
+
+
+ + + + + + + + +
+Method Detail
+ +

+all

+
+public static List<ResolvedPrimitiveType> all()
+
+
+
+
+
+
+ +

+voidType

+
+public static ResolvedPrimitiveType voidType()
+
+
+
+
+
+
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
Overrides:
getSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
Overrides:
getErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Description copied from class: ResolvedType
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
Overrides:
getFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedRecursiveType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedRecursiveType.html new file mode 100644 index 0000000..96f2e07 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/ResolvedRecursiveType.html @@ -0,0 +1,748 @@ + + + + + + + +ResolvedRecursiveType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedRecursiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
+
+
public class ResolvedRecursiveType
extends ResolvedType
+ + +

+Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class. + Underlying information is achievable (for full resolution), but + not exposed using super type (parent) accessors; and has special + handling when used for constructing descriptions. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          To avoid infinite loops, will return null type
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ voidsetReference(ResolvedType ref) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_referencedType

+
+protected ResolvedType _referencedType
+
+
Actual fully resolved type; assigned once resultion is complete +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedRecursiveType

+
+public ResolvedRecursiveType(Class<?> erased,
+                             TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+setReference

+
+public void setReference(ResolvedType ref)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
To avoid infinite loops, will return null; +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
To avoid infinite loops, will return empty list +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
To avoid infinite loops, will return null type +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/TypePlaceHolder.html b/javadoc/0.5.2/com/fasterxml/classmate/types/TypePlaceHolder.html new file mode 100644 index 0000000..107cd57 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/TypePlaceHolder.html @@ -0,0 +1,682 @@ + + + + + + + +TypePlaceHolder (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class TypePlaceHolder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.TypePlaceHolder
+
+
+
+
public class TypePlaceHolder
extends ResolvedType
+ + +

+Placeholder used for resolving type assignments to figure out + type parameters for subtypes. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_actualType + +
+          Type assigned during wildcard resolution
+protected  int_ordinal + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
TypePlaceHolder(int ordinal) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedTypeactualType() + +
+           
+ voidactualType(ResolvedType t) + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_ordinal

+
+protected final int _ordinal
+
+
+
+
+
+ +

+_actualType

+
+protected ResolvedType _actualType
+
+
Type assigned during wildcard resolution +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypePlaceHolder

+
+public TypePlaceHolder(int ordinal)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+actualType

+
+public ResolvedType actualType()
+
+
+
+
+
+
+ +

+actualType

+
+public void actualType(ResolvedType t)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html new file mode 100644 index 0000000..f6a539b --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedArrayType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedArrayType

+
+ + + + + + + + + +
+Packages that use ResolvedArrayType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedArrayType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedArrayType
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html new file mode 100644 index 0000000..9e7d18f --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedInterfaceType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedInterfaceType

+
+No usage of com.fasterxml.classmate.types.ResolvedInterfaceType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html new file mode 100644 index 0000000..4ae830b --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html @@ -0,0 +1,233 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedObjectType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedObjectType

+
+ + + + + + + + + +
+Packages that use ResolvedObjectType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedObjectType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedObjectType
+protected  ResolvedObjectTypeResolvedObjectType._superClass + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedObjectType
+ ResolvedObjectTypeResolvedObjectType.getParentClass() + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedObjectType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html new file mode 100644 index 0000000..e9d4f98 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedPrimitiveType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedPrimitiveType

+
+ + + + + + + + + +
+Packages that use ResolvedPrimitiveType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedPrimitiveType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedPrimitiveType
+static ResolvedPrimitiveTypeResolvedPrimitiveType.voidType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedPrimitiveType
+static List<ResolvedPrimitiveType>ResolvedPrimitiveType.all() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html new file mode 100644 index 0000000..b0104fe --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedRecursiveType (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedRecursiveType

+
+No usage of com.fasterxml.classmate.types.ResolvedRecursiveType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html new file mode 100644 index 0000000..0fe4fe3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.TypePlaceHolder (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.TypePlaceHolder

+
+No usage of com.fasterxml.classmate.types.TypePlaceHolder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/package-frame.html b/javadoc/0.5.2/com/fasterxml/classmate/types/package-frame.html new file mode 100644 index 0000000..65ba733 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +com.fasterxml.classmate.types + + + + +
+Classes  + +
+ResolvedArrayType +
+ResolvedInterfaceType +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+TypePlaceHolder
+ + + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/package-summary.html b/javadoc/0.5.2/com/fasterxml/classmate/types/package-summary.html new file mode 100644 index 0000000..697efd3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/package-summary.html @@ -0,0 +1,199 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.types +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ResolvedArrayType 
ResolvedInterfaceType 
ResolvedObjectTypeType implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveTypeType used for Java primitive types (which does not include arrays here).
ResolvedRecursiveTypeSpecialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
TypePlaceHolderPlaceholder used for resolving type assignments to figure out + type parameters for subtypes.
+  + +

+

+Package com.fasterxml.classmate.types Description +

+ +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/package-tree.html b/javadoc/0.5.2/com/fasterxml/classmate/types/package-tree.html new file mode 100644 index 0000000..3f00fb3 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/package-tree.html @@ -0,0 +1,156 @@ + + + + + + + +com.fasterxml.classmate.types Class Hierarchy (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/types/package-use.html b/javadoc/0.5.2/com/fasterxml/classmate/types/package-use.html new file mode 100644 index 0000000..810c10c --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/types/package-use.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.types (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.types

+
+ + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.types
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate
ResolvedArrayType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate.types
ResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/ClassKey.html b/javadoc/0.5.2/com/fasterxml/classmate/util/ClassKey.html new file mode 100644 index 0000000..af79f2e --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/ClassKey.html @@ -0,0 +1,329 @@ + + + + + + + +ClassKey (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ClassKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ClassKey
+
+
+
All Implemented Interfaces:
Comparable<ClassKey>
+
+
+
+
public class ClassKey
extends Object
implements Comparable<ClassKey>
+ + +

+Helper class used as key when we need efficient Class-to-value lookups. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassKey(Class<?> clz) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(ClassKey other) + +
+           
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClassKey

+
+public ClassKey(Class<?> clz)
+
+
+ + + + + + + + +
+Method Detail
+ +

+compareTo

+
+public int compareTo(ClassKey other)
+
+
+
Specified by:
compareTo in interface Comparable<ClassKey>
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/MethodKey.html b/javadoc/0.5.2/com/fasterxml/classmate/util/MethodKey.html new file mode 100644 index 0000000..1499974 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/MethodKey.html @@ -0,0 +1,322 @@ + + + + + + + +MethodKey (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class MethodKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.MethodKey
+
+
+
+
public class MethodKey
extends Object
+ + +

+Helper class needed when storing methods in maps; must +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
MethodKey(String name) + +
+           
MethodKey(String name, + Class<?>[] argTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+          Equality means name is the same and argument type erasures as well.
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MethodKey

+
+public MethodKey(String name)
+
+
+
+ +

+MethodKey

+
+public MethodKey(String name,
+                 Class<?>[] argTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(Object o)
+
+
Equality means name is the same and argument type erasures as well. +

+

+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html b/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..f0d6185 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html @@ -0,0 +1,301 @@ + + + + + + + +ResolvedTypeCache.Key (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache.Key

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
+
+
Enclosing class:
ResolvedTypeCache
+
+
+
+
public static class ResolvedTypeCache.Key
extends Object
+ + +

+Key used for type entries. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache.Key(Class<?> simpleType) + +
+           
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> simpleType)
+
+
+
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> erasedType,
+                             ResolvedType[] tp)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.html b/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.html new file mode 100644 index 0000000..e7191bc --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/ResolvedTypeCache.html @@ -0,0 +1,416 @@ + + + + + + + +ResolvedTypeCache (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache
+
+
+
+
public class ResolvedTypeCache
extends Object
+ + +

+Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances. + Since usage pattern is such that caller needs synchronization, cache access methods + are fully synchronized so that caller need not do explicit synchronization. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classResolvedTypeCache.Key + +
+          Key used for type entries.
+ + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap_map + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache(int maxEntries) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(ResolvedType type) + +
+           
+ ResolvedTypefind(ResolvedTypeCache.Key key) + +
+           
+ ResolvedTypeCache.Keykey(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.Keykey(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidput(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_map

+
+protected final com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap _map
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache

+
+public ResolvedTypeCache(int maxEntries)
+
+
+ + + + + + + + +
+Method Detail
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType,
+                                 ResolvedType[] tp)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+find

+
+public ResolvedType find(ResolvedTypeCache.Key key)
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+put

+
+public void put(ResolvedTypeCache.Key key,
+                ResolvedType type)
+
+
+
+
+
+
+ +

+add

+
+public void add(ResolvedType type)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ClassKey.html b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ClassKey.html new file mode 100644 index 0000000..4eb3538 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ClassKey.html @@ -0,0 +1,301 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassKey (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ClassKey

+
+ + + + + + + + + + + + + +
+Packages that use ClassKey
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ClassKey
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdBuilder._targetsToOverrides + +
+           
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdImpl._targetsToOverrides + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ClassKey
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+abstract  List<Class<?>>AnnotationOverrides.mixInsFor(ClassKey beanClass) + +
+           
+ List<Class<?>>AnnotationOverrides.StdImpl.mixInsFor(ClassKey target) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ClassKey
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type ClassKey
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ClassKey
+ intClassKey.compareTo(ClassKey other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/MethodKey.html b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/MethodKey.html new file mode 100644 index 0000000..d6871ae --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/MethodKey.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.MethodKey (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.MethodKey

+
+ + + + + + + + + +
+Packages that use MethodKey
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of MethodKey in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return MethodKey
+ MethodKeyRawMethod.createKey() + +
+           
+ MethodKeyRawConstructor.createKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..63f14e1 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache.Key (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache.Key

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache.Key
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache.Key in com.fasterxml.classmate.util
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedTypeCache.Key
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeCache.Key
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html new file mode 100644 index 0000000..2d7d161 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedTypeCache
+protected  ResolvedTypeCacheTypeResolver._resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/package-frame.html b/javadoc/0.5.2/com/fasterxml/classmate/util/package-frame.html new file mode 100644 index 0000000..ea4b419 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + +com.fasterxml.classmate.util + + + + +
+Classes  + +
+ClassKey +
+MethodKey +
+ResolvedTypeCache +
+ResolvedTypeCache.Key
+ + + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/package-summary.html b/javadoc/0.5.2/com/fasterxml/classmate/util/package-summary.html new file mode 100644 index 0000000..0d3eece --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/package-summary.html @@ -0,0 +1,186 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.util +

+Various utility classes used by ClassMate. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ClassKeyHelper class used as key when we need efficient Class-to-value lookups.
MethodKeyHelper class needed when storing methods in maps; must
ResolvedTypeCacheSimple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache.KeyKey used for type entries.
+  + +

+

+Package com.fasterxml.classmate.util Description +

+ +

+Various utility classes used by ClassMate. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/package-tree.html b/javadoc/0.5.2/com/fasterxml/classmate/util/package-tree.html new file mode 100644 index 0000000..01e9155 --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +com.fasterxml.classmate.util Class Hierarchy (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/com/fasterxml/classmate/util/package-use.html b/javadoc/0.5.2/com/fasterxml/classmate/util/package-use.html new file mode 100644 index 0000000..b69d8ac --- /dev/null +++ b/javadoc/0.5.2/com/fasterxml/classmate/util/package-use.html @@ -0,0 +1,224 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.util (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.util

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.util
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache + +
+          Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.members
MethodKey + +
+          Helper class needed when storing methods in maps; must
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.util
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache.Key + +
+          Key used for type entries.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/constant-values.html b/javadoc/0.5.2/constant-values.html new file mode 100644 index 0000000..c2240e8 --- /dev/null +++ b/javadoc/0.5.2/constant-values.html @@ -0,0 +1,147 @@ + + + + + + + +Constant Field Values (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/deprecated-list.html b/javadoc/0.5.2/deprecated-list.html new file mode 100644 index 0000000..785f779 --- /dev/null +++ b/javadoc/0.5.2/deprecated-list.html @@ -0,0 +1,147 @@ + + + + + + + +Deprecated List (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/help-doc.html b/javadoc/0.5.2/help-doc.html new file mode 100644 index 0000000..a4200cf --- /dev/null +++ b/javadoc/0.5.2/help-doc.html @@ -0,0 +1,224 @@ + + + + + + + +API Help (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/index-all.html b/javadoc/0.5.2/index-all.html new file mode 100644 index 0000000..4cd7854 --- /dev/null +++ b/javadoc/0.5.2/index-all.html @@ -0,0 +1,1453 @@ + + + + + + + +Index (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I K M N O P R S T V _
+

+A

+
+
actualType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
actualType(ResolvedType) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
add(Class<?>, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(ClassKey, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation, overriding existing value + for the annotation type. +
add(ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
addAll(Annotations) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding all annotations from specified set, as overrides + to annotations this set has +
addAnnotation(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
addAsDefault(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation if and only if no value + exists for the annotation type. +
all() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
allTypesAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +
AnnotationConfiguration - Class in com.fasterxml.classmate
Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration() - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration +
  +
AnnotationConfiguration.StdConfiguration - Class in com.fasterxml.classmate
Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationConfiguration.StdConfiguration(AnnotationInclusion) - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
AnnotationInclusion - Enum in com.fasterxml.classmate
Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides - Class in com.fasterxml.classmate
Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides +
  +
AnnotationOverrides.StdBuilder - Class in com.fasterxml.classmate
To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdBuilder() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
AnnotationOverrides.StdImpl - Class in com.fasterxml.classmate
Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationOverrides.StdImpl(HashMap<ClassKey, List<Class<?>>>) - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
Annotations - Class in com.fasterxml.classmate
Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Annotations() - +Constructor for class com.fasterxml.classmate.Annotations +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
applyDefault(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverride(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverrides(Annotations) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
arrayType(ResolvedType) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing array type of given element type. +
+
+

+B

+
+
build() - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +
builder() - +Static method in class com.fasterxml.classmate.AnnotationOverrides +
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +
+
+

+C

+
+
canCreateSubtype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
ClassKey - Class in com.fasterxml.classmate.util
Helper class used as key when we need efficient Class-to-value lookups.
ClassKey(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ClassKey +
  +
com.fasterxml.classmate - package com.fasterxml.classmate
Package that contains main public interface of ClassMate + package.
com.fasterxml.classmate.members - package com.fasterxml.classmate.members
Package that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.types - package com.fasterxml.classmate.types
Package that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.util - package com.fasterxml.classmate.util
Various utility classes used by ClassMate.
compareTo(ClassKey) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
create(Class<?>, List<ResolvedType>) - +Static method in class com.fasterxml.classmate.TypeBindings +
Factory method for constructing bindings for given class using specified type + parameters. +
create(Class<?>, ResolvedType[]) - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
createKey() - +Method in class com.fasterxml.classmate.members.RawConstructor +
Although constructors are different from other methods, we can use + MethodKey easily. +
createKey() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
+
+

+D

+
+
DEFAULT_ANNOTATION_CONFIG - +Static variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Default annotation configuration is to ignore all annotations types. +
+
+

+E

+
+
emptyBindings() - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMember +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.MethodKey +
Equality means name is the same and argument type erasures as well. +
equals(Object) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
+
+

+F

+
+
Filter<T> - Interface in com.fasterxml.classmate
Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
find(ResolvedTypeCache.Key) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
findBoundType(String) - +Method in class com.fasterxml.classmate.TypeBindings +
Find type bound to specified name, if there is one; returns bound type if so, null if not. +
findSupertype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method for finding super type of this type that has specified type + erased signature. +
+
+

+G

+
+
GenericType<T> - Class in com.fasterxml.classmate
This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
GenericType() - +Constructor for class com.fasterxml.classmate.GenericType +
  +
get(Class<A>) - +Method in class com.fasterxml.classmate.Annotations +
  +
getAnnotations() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
Returns number of arguments method takes. +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
Returns number of arguments method takes. +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null type +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getBoundName(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBoundType(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBriefDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable brief description of type, which does not include + information about super types. +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getErasedSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +
getErasedSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns type-erased Class that this resolved type has. +
getFullDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable full description of type, which includes specification + of super types (in brief format) +
getFullDescription() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns ordered list of interfaces (in declaration order) that this type + implements. +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return empty list +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getParentClass() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null; +
getParentClass() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getPriority() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns JDK object that represents member. +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getReturnType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +
getSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getTypeBindings() - +Method in class com.fasterxml.classmate.ResolvedType +
Method for accessing bindings of type variables to resolved types in context + of this type. +
getTypeParameters() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns list of generic type declarations for this type, in order they + are declared in class description. +
getTypeParameters() - +Method in class com.fasterxml.classmate.TypeBindings +
Accessor for getting bound types in declaration order +
+
+

+H

+
+
hashCode() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
hashCode() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
HierarchicType - Class in com.fasterxml.classmate.members
Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
HierarchicType(ResolvedType, boolean, int) - +Constructor for class com.fasterxml.classmate.members.HierarchicType +
  +
+
+

+I

+
+
include(T) - +Method in interface com.fasterxml.classmate.Filter +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isArray() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is an array type. +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isConcrete() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isEmpty() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
isInstanceOf(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isMixin() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isSelfReference(ResolvedType) - +Static method in class com.fasterxml.classmate.TypeResolver +
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +
isStatic() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isStatic() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
+
+

+K

+
+
key(Class<?>) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
key(Class<?>, ResolvedType[]) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
+
+

+M

+
+
mainTypeAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +
MemberResolver - Class in com.fasterxml.classmate
Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
MemberResolver(TypeResolver) - +Constructor for class com.fasterxml.classmate.MemberResolver +
Constructor for resolver that does not include java.lang.Object + in type hierarchy +
MethodKey - Class in com.fasterxml.classmate.util
Helper class needed when storing methods in maps; must
MethodKey(String) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
MethodKey(String, Class<?>[]) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
mixInsFor(Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
  +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
+
+

+N

+
+
NO_CONSTRUCTORS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_FIELDS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_METHODS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_TYPES - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
+
+

+O

+
+
overridesOnly() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for finding just overrides for the main type (if any). +
+
+

+P

+
+
put(ResolvedTypeCache.Key, ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+R

+
+
RawConstructor - Class in com.fasterxml.classmate.members
 
RawConstructor(ResolvedType, Constructor<?>) - +Constructor for class com.fasterxml.classmate.members.RawConstructor +
  +
RawField - Class in com.fasterxml.classmate.members
 
RawField(ResolvedType, Field) - +Constructor for class com.fasterxml.classmate.members.RawField +
  +
RawMember - Class in com.fasterxml.classmate.members
Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMember(ResolvedType) - +Constructor for class com.fasterxml.classmate.members.RawMember +
  +
RawMethod - Class in com.fasterxml.classmate.members
 
RawMethod(ResolvedType, Method) - +Constructor for class com.fasterxml.classmate.members.RawMethod +
  +
resolve(ResolvedType, AnnotationConfiguration, AnnotationOverrides) - +Method in class com.fasterxml.classmate.MemberResolver +
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +
resolve(Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +
resolve(Class<?>, Class<?>...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(Class<?>, ResolvedType...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(GenericType<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +
resolve(Type, TypeBindings) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +
resolveConstructor(RawConstructor) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual constructor completely +
resolveConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +
ResolvedArrayType - Class in com.fasterxml.classmate.types
 
ResolvedArrayType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType) - +Constructor for class com.fasterxml.classmate.types.ResolvedArrayType +
  +
ResolvedConstructor - Class in com.fasterxml.classmate.members
Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedConstructor(ResolvedType, Annotations, Constructor<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedConstructor +
  +
ResolvedField - Class in com.fasterxml.classmate.members
 
ResolvedField(ResolvedType, Annotations, Field, ResolvedType) - +Constructor for class com.fasterxml.classmate.members.ResolvedField +
  +
ResolvedInterfaceType - Class in com.fasterxml.classmate.types
 
ResolvedInterfaceType(Class<?>, TypeBindings, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
ResolvedMember - Class in com.fasterxml.classmate.members
Fully type-resolved equivalent of RawMember.
ResolvedMember(ResolvedType, Annotations) - +Constructor for class com.fasterxml.classmate.members.ResolvedMember +
  +
ResolvedMethod - Class in com.fasterxml.classmate.members
 
ResolvedMethod(ResolvedType, Annotations, Method, ResolvedType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedMethod +
  +
ResolvedObjectType - Class in com.fasterxml.classmate.types
Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, List<ResolvedType>) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedPrimitiveType - Class in com.fasterxml.classmate.types
Type used for Java primitive types (which does not include arrays here).
ResolvedPrimitiveType(Class<?>, char, String) - +Constructor for class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
ResolvedRecursiveType - Class in com.fasterxml.classmate.types
Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
ResolvedRecursiveType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
ResolvedType - Class in com.fasterxml.classmate
 
ResolvedType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.ResolvedType +
  +
ResolvedTypeCache - Class in com.fasterxml.classmate.util
Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache(int) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
ResolvedTypeCache.Key - Class in com.fasterxml.classmate.util
Key used for type entries.
ResolvedTypeCache.Key(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeCache.Key(Class<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeWithMembers - Class in com.fasterxml.classmate
Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
ResolvedTypeWithMembers(TypeResolver, AnnotationConfiguration, HierarchicType, HierarchicType[], Filter<RawConstructor>, Filter<RawField>, Filter<RawMethod>) - +Constructor for class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveField(RawField) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual field completely +
resolveMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for fully resolving field definitions and associated annotations. +
resolveMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveMethod(RawMethod) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual method completely +
resolveStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +
resolveSubtype(ResolvedType, Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +
+
+

+S

+
+
setConstructorFilter(Filter<RawConstructor>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setFieldFilter(Filter<RawField>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setIncludeLangObject(boolean) - +Method in class com.fasterxml.classmate.MemberResolver +
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +
setInclusion(Class<? extends Annotation>, AnnotationInclusion) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
setMethodFilter(Filter<RawMethod>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setReference(ResolvedType) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
size() - +Method in class com.fasterxml.classmate.Annotations +
  +
size() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
size() - +Method in class com.fasterxml.classmate.TypeBindings +
Returns number of bindings contained +
size() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+T

+
+
toString() - +Method in class com.fasterxml.classmate.Annotations +
  +
toString() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
toString() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
toString() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
toString() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
toString() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
toString() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
toString() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
TypeBindings - Class in com.fasterxml.classmate
Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
typeParameterArray() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
typeParametersFor(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that will try to find type parameterization this type + has for specified super type +
TypePlaceHolder - Class in com.fasterxml.classmate.types
Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
TypePlaceHolder(int) - +Constructor for class com.fasterxml.classmate.types.TypePlaceHolder +
  +
TypeResolver - Class in com.fasterxml.classmate
Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
TypeResolver() - +Constructor for class com.fasterxml.classmate.TypeResolver +
  +
+
+

+V

+
+
valueOf(String) - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns an array containing the constants of this enum type, in +the order they are declared. +
voidType() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
+
+

+_

+
+
_actualType - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
Type assigned during wildcard resolution +
_annotationHandler - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Handler for resolving annotation information +
_annotations - +Variable in class com.fasterxml.classmate.Annotations +
  +
_annotations - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
  +
_appendClassDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassName(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendErasedClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_cfgIncludeLangObject - +Variable in class com.fasterxml.classmate.MemberResolver +
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +
_constantFields - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interfaces can have static final (constant) fields. +
_constructor - +Variable in class com.fasterxml.classmate.members.RawConstructor +
  +
_constructor - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_constructorFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +
_constructorFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting constructors to include +
_constructors - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_constructors - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Constructors declared by the resolved Object class. +
_declaringType - +Variable in class com.fasterxml.classmate.members.RawMember +
ResolvedType (class with generic type parameters) that declared + this member +
_declaringType - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
ResolvedType (class with generic type parameters) that declared + this member +
_defaultInclusion - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_description - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Human-readable description should be simple as well +
_elementType - +Variable in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
_erasedType - +Variable in class com.fasterxml.classmate.ResolvedType +
  +
_field - +Variable in class com.fasterxml.classmate.members.RawField +
  +
_field - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_fieldFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +
_fieldFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting fields to include +
_gatherTypes(ResolvedType, Set<ClassKey>, List<ResolvedType>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
_getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getFields(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getMethods(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_inclusionFor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_inclusions - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_isMixin - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +
_mainType - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Leaf of the type hierarchy, i.e. +
_map - +Variable in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
_memberFields - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interface methods are all public and abstract. +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_method - +Variable in class com.fasterxml.classmate.members.RawMethod +
  +
_method - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_methodFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +
_methodFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting methods to include +
_modifiers - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Modifiers of the underlying class. +
_ordinal - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
_primitiveTypes - +Static variable in class com.fasterxml.classmate.TypeResolver +
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. +
_priority - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. +
_referencedType - +Variable in class com.fasterxml.classmate.types.ResolvedRecursiveType +
Actual fully resolved type; assigned once resultion is complete +
_resolvedTypes - +Variable in class com.fasterxml.classmate.TypeResolver +
Simple cache of types resolved by this resolved; capped to last 200 resolved types. +
_returnType - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_signature - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Primitive types have single-character Signature, easy and efficient + to just store here +
_staticFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superClass - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
List of interfaces this type implements; may be empty but never null +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
List of interfaces this type implements; may be empty but never null +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
_type - +Variable in class com.fasterxml.classmate.members.HierarchicType +
  +
_type - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_typeBindings - +Variable in class com.fasterxml.classmate.ResolvedType +
Type bindings active when resolving members (methods, fields, + constructors) of this type +
_typeResolver - +Variable in class com.fasterxml.classmate.MemberResolver +
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +
_typeResolver - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Need to be able to resolve member types still +
_types - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +
+
+A B C D E F G H I K M N O P R S T V _ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/index.html b/javadoc/0.5.2/index.html new file mode 100644 index 0000000..640bcd4 --- /dev/null +++ b/javadoc/0.5.2/index.html @@ -0,0 +1,40 @@ + + + + + + + +ClassMate 0.5.3-SNAPSHOT API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/javadoc/0.5.2/overview-frame.html b/javadoc/0.5.2/overview-frame.html new file mode 100644 index 0000000..b018f21 --- /dev/null +++ b/javadoc/0.5.2/overview-frame.html @@ -0,0 +1,49 @@ + + + + + + + +Overview List (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+com.fasterxml.classmate +
+com.fasterxml.classmate.members +
+com.fasterxml.classmate.types +
+com.fasterxml.classmate.util +
+

+ +

+  + + diff --git a/javadoc/0.5.2/overview-summary.html b/javadoc/0.5.2/overview-summary.html new file mode 100644 index 0000000..0c98fad --- /dev/null +++ b/javadoc/0.5.2/overview-summary.html @@ -0,0 +1,172 @@ + + + + + + + +Overview (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+ClassMate 0.5.3-SNAPSHOT API +

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package.
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.utilVarious utility classes used by ClassMate.
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/overview-tree.html b/javadoc/0.5.2/overview-tree.html new file mode 100644 index 0000000..a3e4bb1 --- /dev/null +++ b/javadoc/0.5.2/overview-tree.html @@ -0,0 +1,179 @@ + + + + + + + +Class Hierarchy (ClassMate 0.5.3-SNAPSHOT API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
com.fasterxml.classmate, com.fasterxml.classmate.members, com.fasterxml.classmate.types, com.fasterxml.classmate.util
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.2/package-list b/javadoc/0.5.2/package-list new file mode 100644 index 0000000..1532090 --- /dev/null +++ b/javadoc/0.5.2/package-list @@ -0,0 +1,4 @@ +com.fasterxml.classmate +com.fasterxml.classmate.members +com.fasterxml.classmate.types +com.fasterxml.classmate.util diff --git a/javadoc/0.5.2/resources/inherit.gif b/javadoc/0.5.2/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/javadoc/0.5.2/resources/inherit.gif differ diff --git a/javadoc/0.5.2/stylesheet.css b/javadoc/0.5.2/stylesheet.css new file mode 100644 index 0000000..6ea9e51 --- /dev/null +++ b/javadoc/0.5.2/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/javadoc/0.5.3/allclasses-frame.html b/javadoc/0.5.3/allclasses-frame.html new file mode 100644 index 0000000..eb0d629 --- /dev/null +++ b/javadoc/0.5.3/allclasses-frame.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.3 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.3/allclasses-noframe.html b/javadoc/0.5.3/allclasses-noframe.html new file mode 100644 index 0000000..b840d93 --- /dev/null +++ b/javadoc/0.5.3/allclasses-noframe.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.3 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..5cd5ca7 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,477 @@ + + + + + + + +AnnotationConfiguration.StdConfiguration (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration.StdConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+      extended by com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
+
+
Enclosing class:
AnnotationConfiguration
+
+
+
+
public static class AnnotationConfiguration.StdConfiguration
extends AnnotationConfiguration
+ + +

+Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types. Same default is used for both class and + member method annotations (constructor, field and static method + annotations are never inherited) +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
+  + + + + + + + + + + + + + + + +
+Field Summary
+protected  AnnotationInclusion_defaultInclusion + +
+           
+protected  HashMap<ClassKey,AnnotationInclusion>_inclusions + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  AnnotationInclusion_inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+ AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ voidsetInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_defaultInclusion

+
+protected final AnnotationInclusion _defaultInclusion
+
+
+
+
+
+ +

+_inclusions

+
+protected HashMap<ClassKey,AnnotationInclusion> _inclusions
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration.StdConfiguration

+
+public AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
Specified by:
getInclusionForClass in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForConstructor

+
+public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForConstructor in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForField

+
+public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForField in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForMethod

+
+public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
Specified by:
getInclusionForMethod in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+setInclusion

+
+public void setInclusion(Class<? extends Annotation> annotationType,
+                         AnnotationInclusion incl)
+
+
+
+
+
+
+ +

+_inclusionFor

+
+protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.html new file mode 100644 index 0000000..cf994cf --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationConfiguration.html @@ -0,0 +1,363 @@ + + + + + + + +AnnotationConfiguration (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+
+
+
Direct Known Subclasses:
AnnotationConfiguration.StdConfiguration
+
+
+
+
public abstract class AnnotationConfiguration
extends Object
+ + +

+Interface for object that determines handling of annotations in regards + to inheritance, overrides. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+abstract  AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+abstract  AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+abstract  AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration

+
+public AnnotationConfiguration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
+
+
+
+ +

+getInclusionForConstructor

+
+public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForField

+
+public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForMethod

+
+public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationInclusion.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationInclusion.html new file mode 100644 index 0000000..773959e --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationInclusion.html @@ -0,0 +1,365 @@ + + + + + + + +AnnotationInclusion (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Enum AnnotationInclusion

+
+java.lang.Object
+  extended by java.lang.Enum<AnnotationInclusion>
+      extended by com.fasterxml.classmate.AnnotationInclusion
+
+
+
All Implemented Interfaces:
Serializable, Comparable<AnnotationInclusion>
+
+
+
+
public enum AnnotationInclusion
extends Enum<AnnotationInclusion>
+ + +

+Enumeration that defines different settings for handling behavior + of individual annotations +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Enum Constant Summary
DONT_INCLUDE + +
+          Value that indicates that annotation is to be ignored, not included + in resolved bean information.
INCLUDE_AND_INHERIT + +
+          Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes.
INCLUDE_BUT_DONT_INHERIT + +
+          Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationInclusionvalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+DONT_INCLUDE

+
+public static final AnnotationInclusion DONT_INCLUDE
+
+
Value that indicates that annotation is to be ignored, not included + in resolved bean information. + Applicable to all member types. +

+

+
+
+
+ +

+INCLUDE_BUT_DONT_INHERIT

+
+public static final AnnotationInclusion INCLUDE_BUT_DONT_INHERIT
+
+
Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes. + Applicable only to member methods; if used with other members will + mean basic inclusion. +

+

+
+
+
+ +

+INCLUDE_AND_INHERIT

+
+public static final AnnotationInclusion INCLUDE_AND_INHERIT
+
+
Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes. + Note that inheritance only matters with member methods; for other types + it just means "include". +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static AnnotationInclusion[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (AnnotationInclusion c : AnnotationInclusion.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static AnnotationInclusion valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..82cdb9f --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,344 @@ + + + + + + + +AnnotationOverrides.StdBuilder (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdBuilder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdBuilder
extends Object
+ + +

+To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ AnnotationOverrides.StdBuilderadd(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderadd(ClassKey target, + Class<?> mixin) + +
+           
+ AnnotationOverridesbuild() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdBuilder

+
+public AnnotationOverrides.StdBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(Class<?> target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(ClassKey target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+build

+
+public AnnotationOverrides build()
+
+
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..85acf37 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html @@ -0,0 +1,330 @@ + + + + + + + +AnnotationOverrides.StdImpl (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdImpl

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+      extended by com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdImpl
extends AnnotationOverrides
+ + +

+Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones). +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationOverrides
AnnotationOverrides.StdBuilder, AnnotationOverrides.StdImpl
+  + + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<Class<?>>mixInsFor(ClassKey target) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.AnnotationOverrides
builder, mixInsFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdImpl

+
+public AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides)
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(ClassKey target)
+
+
+
Specified by:
mixInsFor in class AnnotationOverrides
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.html b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.html new file mode 100644 index 0000000..09f9212 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/AnnotationOverrides.html @@ -0,0 +1,337 @@ + + + + + + + +AnnotationOverrides (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+
+
+
Direct Known Subclasses:
AnnotationOverrides.StdImpl
+
+
+
+
public abstract class AnnotationOverrides
extends Object
+ + +

+Interface for object that can provide mix-ins to override annotations. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationOverrides.StdBuilderbuilder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+ List<Class<?>>mixInsFor(Class<?> beanClass) + +
+          Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
+abstract  List<Class<?>>mixInsFor(ClassKey beanClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides

+
+public AnnotationOverrides()
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(Class<?> beanClass)
+
+
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +

+

+ +
Returns:
List of mix-in sources (starting with highest priority); + can be null or empty list if no mix-ins are to be used.
+
+
+
+ +

+mixInsFor

+
+public abstract List<Class<?>> mixInsFor(ClassKey beanClass)
+
+
+
+
+
+
+ +

+builder

+
+public static AnnotationOverrides.StdBuilder builder()
+
+
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/Annotations.html b/javadoc/0.5.3/com/fasterxml/classmate/Annotations.html new file mode 100644 index 0000000..1bc98e0 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/Annotations.html @@ -0,0 +1,417 @@ + + + + + + + +Annotations (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class Annotations

+
+java.lang.Object
+  extended by com.fasterxml.classmate.Annotations
+
+
+
+
public class Annotations
extends Object
+ + +

+Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors). +

+ +

+

+
Author:
+
tatu
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<Class<? extends Annotation>,Annotation>_annotations + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Annotations() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(Annotation override) + +
+          Method for adding specified annotation, overriding existing value + for the annotation type.
+ voidaddAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+ voidaddAsDefault(Annotation defValue) + +
+          Method for adding specified annotation if and only if no value + exists for the annotation type.
+ + + + + +
+<A extends Annotation> +
+A
+
get(Class<A> cls) + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_annotations

+
+protected HashMap<Class<? extends Annotation>,Annotation> _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Annotations

+
+public Annotations()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(Annotation override)
+
+
Method for adding specified annotation, overriding existing value + for the annotation type. +

+

+
+
+
+
+ +

+addAll

+
+public void addAll(Annotations overrides)
+
+
Method for adding all annotations from specified set, as overrides + to annotations this set has +

+

+
+
+
+
+ +

+addAsDefault

+
+public void addAsDefault(Annotation defValue)
+
+
Method for adding specified annotation if and only if no value + exists for the annotation type. +

+

+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+get

+
+public <A extends Annotation> A get(Class<A> cls)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/Filter.html b/javadoc/0.5.3/com/fasterxml/classmate/Filter.html new file mode 100644 index 0000000..8ee19a3 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/Filter.html @@ -0,0 +1,212 @@ + + + + + + + +Filter (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Interface Filter<T>

+
+
+
public interface Filter<T>
+ + +

+Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ booleaninclude(T element) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+include

+
+boolean include(T element)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/GenericType.html b/javadoc/0.5.3/com/fasterxml/classmate/GenericType.html new file mode 100644 index 0000000..e1442e0 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/GenericType.html @@ -0,0 +1,243 @@ + + + + + + + +GenericType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class GenericType<T>

+
+java.lang.Object
+  extended by com.fasterxml.classmate.GenericType<T>
+
+
+
+
public abstract class GenericType<T>
extends Object
+ + +

+This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects). + It is based on ideas from + http://gafter.blogspot.com/2006/12/super-type-tokens.html, +

+ Usage is by sub-classing: here is one way to instantiate reference + to generic type List<Integer>: +

+  GenericType type = new GenericType<List<Integer>>() { };
+
+ which can be passed to methods that accept GenericReference. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected GenericType() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GenericType

+
+protected GenericType()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/MemberResolver.html b/javadoc/0.5.3/com/fasterxml/classmate/MemberResolver.html new file mode 100644 index 0000000..7d98f41 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/MemberResolver.html @@ -0,0 +1,520 @@ + + + + + + + +MemberResolver (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class MemberResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.MemberResolver
+
+
+
+
public class MemberResolver
extends Object
+ + +

+Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes). +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_cfgIncludeLangObject + +
+          Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>_fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>_methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+protected  TypeResolver_typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  + + + + + + + + + + +
+Constructor Summary
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  void_gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedTypeWithMembersresolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ MemberResolversetConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolversetFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolversetIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolversetMethodFilter(Filter<RawMethod> f) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +

+

+
+
+
+ +

+_cfgIncludeLangObject

+
+protected boolean _cfgIncludeLangObject
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MemberResolver

+
+public MemberResolver(TypeResolver typeResolver)
+
+
Constructor for resolver that does not include java.lang.Object + in type hierarchy +

+

+ + + + + + + + +
+Method Detail
+ +

+setIncludeLangObject

+
+public MemberResolver setIncludeLangObject(boolean state)
+
+
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +

+

+
+
+
+
+ +

+setFieldFilter

+
+public MemberResolver setFieldFilter(Filter<RawField> f)
+
+
+
+
+
+
+ +

+setMethodFilter

+
+public MemberResolver setMethodFilter(Filter<RawMethod> f)
+
+
+
+
+
+
+ +

+setConstructorFilter

+
+public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
+
+
+
+
+
+
+ +

+resolve

+
+public ResolvedTypeWithMembers resolve(ResolvedType mainType,
+                                       AnnotationConfiguration annotationConfig,
+                                       AnnotationOverrides annotationOverrides)
+
+
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +

+

+
Parameters:
mainType - Resolved type that is the starting point (i.e. the leaf class) + for member resolution.
annotationConfig - Configuration of annotation types; which ones to include, how to inherit
annotationOverrides - Definitions of annotation overrides to use, if any (may be null)
+
+
+
+ +

+_gatherTypes

+
+protected void _gatherTypes(ResolvedType currentType,
+                            Set<ClassKey> seenTypes,
+                            List<ResolvedType> types)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/ResolvedType.html b/javadoc/0.5.3/com/fasterxml/classmate/ResolvedType.html new file mode 100644 index 0000000..5091544 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/ResolvedType.html @@ -0,0 +1,1227 @@ + + + + + + + +ResolvedType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+
+
+
Direct Known Subclasses:
ResolvedArrayType, ResolvedInterfaceType, ResolvedObjectType, ResolvedPrimitiveType, ResolvedRecursiveType, TypePlaceHolder
+
+
+
+
public abstract class ResolvedType
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Class<?>_erasedType + +
+           
+protected  TypeBindings_typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+protected static RawConstructor[]NO_CONSTRUCTORS + +
+           
+protected static RawField[]NO_FIELDS + +
+           
+protected static RawMethod[]NO_METHODS + +
+           
+protected static ResolvedType[]NO_TYPES + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringBuilder_appendClassDescription(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassName(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassSignature(StringBuilder sb) + +
+           
+protected  StringBuilder_appendErasedClassSignature(StringBuilder sb) + +
+           
+protected  RawConstructor[]_getConstructors() + +
+           
+protected  RawField[]_getFields(boolean statics) + +
+           
+protected  RawMethod[]_getMethods(boolean statics) + +
+           
+abstract  StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+abstract  StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtype(Class<?> subtype) + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
+abstract  booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetBriefDescription() + +
+          Human-readable brief description of type, which does not include + information about super types.
+ List<RawConstructor>getConstructors() + +
+           
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ Class<?>getErasedType() + +
+          Returns type-erased Class that this resolved type has.
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+abstract  List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+abstract  ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ TypeBindingsgetTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ List<ResolvedType>getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ inthashCode() + +
+           
+abstract  booleanisAbstract() + +
+           
+abstract  booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisConcrete() + +
+           
+ booleanisInstanceOf(Class<?> type) + +
+           
+abstract  booleanisInterface() + +
+           
+abstract  booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ StringtoString() + +
+           
+ List<ResolvedType>typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_TYPES

+
+protected static final ResolvedType[] NO_TYPES
+
+
+
+
+
+ +

+NO_CONSTRUCTORS

+
+protected static final RawConstructor[] NO_CONSTRUCTORS
+
+
+
+
+
+ +

+NO_FIELDS

+
+protected static final RawField[] NO_FIELDS
+
+
+
+
+
+ +

+NO_METHODS

+
+protected static final RawMethod[] NO_METHODS
+
+
+
+
+
+ +

+_erasedType

+
+protected final Class<?> _erasedType
+
+
+
+
+
+ +

+_typeBindings

+
+protected final TypeBindings _typeBindings
+
+
Type bindings active when resolving members (methods, fields, + constructors) of this type +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedType

+
+protected ResolvedType(Class<?> cls,
+                       TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public abstract boolean canCreateSubtypes()
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
+
+
+
+ +

+canCreateSubtype

+
+public final boolean canCreateSubtype(Class<?> subtype)
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +

+

+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
Returns type-erased Class that this resolved type has. +

+

+
+
+
+
+ +

+getParentClass

+
+public abstract ResolvedType getParentClass()
+
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
+
+
+
+ +

+getSelfReferencedType

+
+public abstract ResolvedType getSelfReferencedType()
+
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
+
+
+
+ +

+getArrayElementType

+
+public abstract ResolvedType getArrayElementType()
+
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
+
+
+
+ +

+getImplementedInterfaces

+
+public abstract List<ResolvedType> getImplementedInterfaces()
+
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Returns list of generic type declarations for this type, in order they + are declared in class description. +

+

+
+
+
+
+ +

+getTypeBindings

+
+public TypeBindings getTypeBindings()
+
+
Method for accessing bindings of type variables to resolved types in context + of this type. It has same number of entries as return List of + getTypeParameters(), accessible using declared name to which they + bind; for example, Map has 2 type bindings; one for + key type (name "K", from Map.java) and one for value type + (name "V", from Map.java). +

+

+
+
+
+
+ +

+typeParametersFor

+
+public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
+
+
Method that will try to find type parameterization this type + has for specified super type +

+

+ +
Returns:
List of type parameters for specified supertype (which may + be empty, if supertype is not a parametric type); null if specified + type is not a super type of this type
+
+
+
+ +

+findSupertype

+
+public ResolvedType findSupertype(Class<?> erasedSupertype)
+
+
Method for finding super type of this type that has specified type + erased signature. If supertype is an interface which is implemented + using multiple inheritance paths, preference is given to interfaces + implemented "highest up the stack" (directly implemented interfaces + over interfaces superclass implements). +

+

+
+
+
+
+ +

+isInterface

+
+public abstract boolean isInterface()
+
+
+
+
+
+
+ +

+isConcrete

+
+public final boolean isConcrete()
+
+
+
+
+
+
+ +

+isAbstract

+
+public abstract boolean isAbstract()
+
+
+
+
+
+
+ +

+isArray

+
+public abstract boolean isArray()
+
+
Method that indicates whether this type is an array type. +

+

+
+
+
+
+ +

+isPrimitive

+
+public abstract boolean isPrimitive()
+
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
+
+
+
+ +

+isInstanceOf

+
+public final boolean isInstanceOf(Class<?> type)
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
+
+
+
+ +

+getBriefDescription

+
+public String getBriefDescription()
+
+
Human-readable brief description of type, which does not include + information about super types. +

+

+
+
+
+
+ +

+appendBriefDescription

+
+public abstract StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public abstract StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendSignature

+
+public abstract StringBuilder appendSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public abstract StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+_appendClassSignature

+
+protected StringBuilder _appendClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendErasedClassSignature

+
+protected StringBuilder _appendErasedClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassDescription

+
+protected StringBuilder _appendClassDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassName

+
+protected StringBuilder _appendClassName(StringBuilder sb)
+
+
+
+
+
+
+ +

+_getFields

+
+protected RawField[] _getFields(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getMethods

+
+protected RawMethod[] _getMethods(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getConstructors

+
+protected RawConstructor[] _getConstructors()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html b/javadoc/0.5.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..8b64afa --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html @@ -0,0 +1,830 @@ + + + + + + + +ResolvedTypeWithMembers (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedTypeWithMembers

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
+
+
public class ResolvedTypeWithMembers
extends Object
+ + +

+Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations"). + Instances are created by MemberResolver. +

+ Note that instances are not thread-safe, as the expectation is that instances + will not be shared (unlike raw members or resolved types) +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler_annotationHandler + +
+          Handler for resolving annotation information
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  ResolvedConstructor[]_constructors + +
+           
+protected  Filter<RawField>_fieldFilter + +
+          Filter to use for selecting fields to include
+protected  HierarchicType_mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  ResolvedField[]_memberFields + +
+           
+protected  ResolvedMethod[]_memberMethods + +
+           
+protected  Filter<RawMethod>_methodFilter + +
+          Filter to use for selecting methods to include
+protected  ResolvedMethod[]_staticMethods + +
+           
+protected  TypeResolver_typeResolver + +
+          Need to be able to resolve member types still
+protected  HierarchicType[]_types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+protected static AnnotationConfigurationDEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<HierarchicType>allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ ResolvedConstructor[]getConstructors() + +
+           
+ ResolvedField[]getMemberFields() + +
+           
+ ResolvedMethod[]getMemberMethods() + +
+           
+ ResolvedMethod[]getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+ List<HierarchicType>mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+protected  ResolvedConstructorresolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+protected  ResolvedFieldresolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+protected  ResolvedMethod[]resolveMemberMethods() + +
+           
+protected  ResolvedMethodresolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_ANNOTATION_CONFIG

+
+protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
+
+
Default annotation configuration is to ignore all annotations types. +

+

+
+
+
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Need to be able to resolve member types still +

+

+
+
+
+ +

+_annotationHandler

+
+protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
+
+
Handler for resolving annotation information +

+

+
+
+
+ +

+_mainType

+
+protected final HierarchicType _mainType
+
+
Leaf of the type hierarchy, i.e. type from which this hierarchy + was generated. +

+

+
+
+
+ +

+_types

+
+protected final HierarchicType[] _types
+
+
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter to use for selecting fields to include +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter to use for selecting constructors to include +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter to use for selecting methods to include +

+

+
+
+
+ +

+_staticMethods

+
+protected ResolvedMethod[] _staticMethods
+
+
+
+
+
+ +

+_memberMethods

+
+protected ResolvedMethod[] _memberMethods
+
+
+
+
+
+ +

+_memberFields

+
+protected ResolvedField[] _memberFields
+
+
+
+
+
+ +

+_constructors

+
+protected ResolvedConstructor[] _constructors
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeWithMembers

+
+public ResolvedTypeWithMembers(TypeResolver typeResolver,
+                               AnnotationConfiguration annotationConfig,
+                               HierarchicType mainType,
+                               HierarchicType[] types,
+                               Filter<RawConstructor> constructorFilter,
+                               Filter<RawField> fieldFilter,
+                               Filter<RawMethod> methodFilter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+allTypesAndOverrides

+
+public List<HierarchicType> allTypesAndOverrides()
+
+
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +

+

+
+
+
+
+ +

+mainTypeAndOverrides

+
+public List<HierarchicType> mainTypeAndOverrides()
+
+
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +

+

+
+
+
+
+ +

+overridesOnly

+
+public List<HierarchicType> overridesOnly()
+
+
Accessor for finding just overrides for the main type (if any). +

+

+
+
+
+
+ +

+getStaticMethods

+
+public ResolvedMethod[] getStaticMethods()
+
+
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +

+

+
+
+
+
+ +

+getMemberFields

+
+public ResolvedField[] getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public ResolvedMethod[] getMemberMethods()
+
+
+
+
+
+
+ +

+getConstructors

+
+public ResolvedConstructor[] getConstructors()
+
+
+
+
+
+
+ +

+resolveConstructors

+
+protected ResolvedConstructor[] resolveConstructors()
+
+
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +

+

+
+
+
+
+ +

+resolveMemberFields

+
+protected ResolvedField[] resolveMemberFields()
+
+
Method for fully resolving field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in. +

+

+
+
+
+
+ +

+resolveStaticMethods

+
+protected ResolvedMethod[] resolveStaticMethods()
+
+
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +

+

+
+
+
+
+ +

+resolveMemberMethods

+
+protected ResolvedMethod[] resolveMemberMethods()
+
+
+
+
+
+
+ +

+resolveConstructor

+
+protected ResolvedConstructor resolveConstructor(RawConstructor raw)
+
+
Method for resolving individual constructor completely +

+

+
+
+
+
+ +

+resolveField

+
+protected ResolvedField resolveField(RawField raw)
+
+
Method for resolving individual field completely +

+

+
+
+
+
+ +

+resolveMethod

+
+protected ResolvedMethod resolveMethod(RawMethod raw)
+
+
Method for resolving individual method completely +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/TypeBindings.html b/javadoc/0.5.3/com/fasterxml/classmate/TypeBindings.html new file mode 100644 index 0000000..4ff686d --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/TypeBindings.html @@ -0,0 +1,476 @@ + + + + + + + +TypeBindings (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeBindings

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeBindings
+
+
+
+
public final class TypeBindings
extends Object
+ + +

+Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TypeBindingscreate(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingscreate(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsemptyBindings() + +
+           
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ StringgetBoundName(int index) + +
+           
+ ResolvedTypegetBoundType(int index) + +
+           
+ List<ResolvedType>getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ inthashCode() + +
+           
+ booleanisEmpty() + +
+           
+ intsize() + +
+          Returns number of bindings contained
+ StringtoString() + +
+           
+protected  ResolvedType[]typeParameterArray() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyBindings

+
+public static TypeBindings emptyBindings()
+
+
+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  List<ResolvedType> typeList)
+
+
Factory method for constructing bindings for given class using specified type + parameters. +

+

+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  ResolvedType[] types)
+
+
+
+
+
+
+ +

+findBoundType

+
+public ResolvedType findBoundType(String name)
+
+
Find type bound to specified name, if there is one; returns bound type if so, null if not. +

+

+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
Returns number of bindings contained +

+

+
+
+
+
+ +

+getBoundName

+
+public String getBoundName(int index)
+
+
+
+
+
+
+ +

+getBoundType

+
+public ResolvedType getBoundType(int index)
+
+
+
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Accessor for getting bound types in declaration order +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+typeParameterArray

+
+protected ResolvedType[] typeParameterArray()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/TypeResolver.html b/javadoc/0.5.3/com/fasterxml/classmate/TypeResolver.html new file mode 100644 index 0000000..24b4f12 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/TypeResolver.html @@ -0,0 +1,553 @@ + + + + + + + +TypeResolver (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeResolver
+
+
+
+
public class TypeResolver
extends Object
+ + +

+Object that is used for resolving generic type information of a class + so that it is accessible using simple API. Resolved types are also starting + point for accessing resolved (generics aware) return and argument types + of class members (methods, fields, constructors). +

+ Note that resolver instances are stateful in that resolvers cache resolved + types for efficiency. Since this is internal state and not directly visible + to callers, access to state is fully synchronized so that access from + multiple threads is safe. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected static HashMap<ClassKey,ResolvedType>_primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  ResolvedTypeCache_resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  + + + + + + + + + + +
+Constructor Summary
TypeResolver() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedArrayTypearrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static booleanisSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTyperesolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTyperesolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTyperesolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTyperesolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_primitiveTypes

+
+protected static final HashMap<ClassKey,ResolvedType> _primitiveTypes
+
+
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. Same goes for limited number + of other "standard" types... +

+

+
+
+
+ +

+_resolvedTypes

+
+protected final ResolvedTypeCache _resolvedTypes
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypeResolver

+
+public TypeResolver()
+
+
+ + + + + + + + +
+Method Detail
+ +

+resolve

+
+public ResolvedType resolve(Class<?> rawType)
+
+
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            Class<?>... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            ResolvedType... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType valueType = TypeResolver.resolve(new GenericType<Set<String>>() { });
+  ResolvedType type = TypeResolver.resolve(List.class, valueType);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Set<String>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(GenericType<?> generic)
+
+
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +

+

+
+
+
+
+ +

+arrayType

+
+public ResolvedArrayType arrayType(ResolvedType elementType)
+
+
Factory method for constructing array type of given element type. +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Type jdkType,
+                            TypeBindings typeBindings)
+
+
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +

+ Use of this method is discouraged (use if and only if you really know what you + are doing!); but if used, type bindings passed should come from ResolvedType + instance of declaring class (or interface). +

+

+
+
+
+
+ +

+resolveSubtype

+
+public ResolvedType resolveSubtype(ResolvedType supertype,
+                                   Class<?> subtype)
+                            throws IllegalArgumentException,
+                                   UnsupportedOperationException
+
+
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +

+ A typical use case here is to refine a generic type; for example, given + that we have generic type like List<Integer>, but we want + a more specific implementation type like + class ArrayList but with same parameterization (here just Integer), + we could achieve it by: +

+  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
+  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
+
+ (in this case, it would have been simpler to resolve directly; but in some + cases we are handled supertype and want to refine it, in which case steps + would be the same but separated by other code) +

+ Note that this method will fail if extension can not succeed; either because + this type is not extendable (sub-classable) -- which is true for primitive + and array types -- or because given class is not a subtype of this type. + To check whether subtyping could succeed, you can call + ResolvedType.canCreateSubtypes() to see if supertype can ever + be extended. +

+

+
Parameters:
supertype - Type to subtype (extend)
subclass - Type-erased sub-class or sub-interface +
Returns:
Resolved subtype +
Throws: +
IllegalArgumentException - If this type can be extended in general, but not into specified sub-class +
UnsupportedOperationException - If this type can not be sub-classed
+
+
+
+ +

+isSelfReference

+
+public static boolean isSelfReference(ResolvedType type)
+
+
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..1de2002 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration

+
+No usage of com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html new file mode 100644 index 0000000..98d8faa --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html @@ -0,0 +1,240 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration

+
+ + + + + + + + + +
+Packages that use AnnotationConfiguration
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationConfiguration in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationConfiguration in com.fasterxml.classmate
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationConfiguration
+protected static AnnotationConfigurationResolvedTypeWithMembers.DEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationConfiguration
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationConfiguration
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html new file mode 100644 index 0000000..df983f7 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html @@ -0,0 +1,330 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationInclusion (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationInclusion

+
+ + + + + + + + + +
+Packages that use AnnotationInclusion
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationInclusion in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._defaultInclusion + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type AnnotationInclusion
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+           
+static AnnotationInclusionAnnotationInclusion.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]AnnotationInclusion.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationInclusion
+ voidAnnotationConfiguration.StdConfiguration.setInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationInclusion
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..1c8e809 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdBuilder (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdBuilder

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides.StdBuilder
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides.StdBuilder in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides.StdBuilder
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+static AnnotationOverrides.StdBuilderAnnotationOverrides.builder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..53b62aa --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdImpl (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdImpl

+
+No usage of com.fasterxml.classmate.AnnotationOverrides.StdImpl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html new file mode 100644 index 0000000..73b5f66 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html @@ -0,0 +1,221 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationOverrides in com.fasterxml.classmate
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides
+ AnnotationOverridesAnnotationOverrides.StdBuilder.build() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationOverrides
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/Annotations.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/Annotations.html new file mode 100644 index 0000000..302af6c --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/Annotations.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.Annotations (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.Annotations

+
+ + + + + + + + + + + + + +
+Packages that use Annotations
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Annotations
+ voidAnnotations.addAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate.members
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as Annotations
+protected  AnnotationsResolvedMember._annotations + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.members with parameters of type Annotations
+ voidResolvedMember.applyOverrides(Annotations overrides) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type Annotations
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/Filter.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/Filter.html new file mode 100644 index 0000000..e421ad4 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/Filter.html @@ -0,0 +1,307 @@ + + + + + + + +Uses of Interface com.fasterxml.classmate.Filter (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
com.fasterxml.classmate.Filter

+
+ + + + + + + + + +
+Packages that use Filter
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of Filter in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as Filter
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Filter
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type Filter
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/GenericType.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/GenericType.html new file mode 100644 index 0000000..7b41ebd --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/GenericType.html @@ -0,0 +1,183 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.GenericType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.GenericType

+
+ + + + + + + + + +
+Packages that use GenericType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of GenericType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type GenericType
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/MemberResolver.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/MemberResolver.html new file mode 100644 index 0000000..42152dc --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/MemberResolver.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.MemberResolver (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.MemberResolver

+
+ + + + + + + + + +
+Packages that use MemberResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of MemberResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return MemberResolver
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedType.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedType.html new file mode 100644 index 0000000..f6b50be --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedType.html @@ -0,0 +1,1227 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedType

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use ResolvedType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedType
+protected static ResolvedType[]ResolvedType.NO_TYPES + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ResolvedType
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedType
+ ResolvedTypeTypeBindings.findBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ ResolvedTypeResolvedType.findSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypeResolvedType.getArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ ResolvedTypeTypeBindings.getBoundType(int index) + +
+           
+abstract  ResolvedTypeResolvedType.getParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypeResolvedType.getSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ ResolvedTypeTypeResolver.resolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+protected  ResolvedType[]TypeBindings.typeParameterArray() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type ResolvedType
+abstract  List<ResolvedType>ResolvedType.getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<ResolvedType>TypeBindings.getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ List<ResolvedType>ResolvedType.getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ List<ResolvedType>ResolvedType.typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static booleanTypeResolver.isSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+  +

+ + + + + + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as ResolvedType
+protected  ResolvedType[]ResolvedMethod._argumentTypes + +
+           
+protected  ResolvedType[]ResolvedConstructor._argumentTypes + +
+           
+protected  ResolvedTypeResolvedMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeRawMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeResolvedMethod._returnType + +
+           
+protected  ResolvedTypeResolvedField._type + +
+           
+protected  ResolvedTypeHierarchicType._type + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return ResolvedType
+ ResolvedTypeResolvedMethod.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedConstructor.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedMember.getDeclaringType() + +
+           
+ ResolvedTypeRawMember.getDeclaringType() + +
+           
+ ResolvedTypeResolvedMethod.getReturnType() + +
+           
+ ResolvedTypeResolvedMethod.getType() + +
+           
+abstract  ResolvedTypeResolvedMember.getType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ ResolvedTypeResolvedField.getType() + +
+           
+ ResolvedTypeResolvedConstructor.getType() + +
+           
+ ResolvedTypeHierarchicType.getType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type ResolvedType
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
RawField(ResolvedType context, + Field field) + +
+           
RawMember(ResolvedType context) + +
+           
RawMethod(ResolvedType context, + Method method) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of ResolvedType in com.fasterxml.classmate.types
+ classResolvedArrayType + +
+           
+ classResolvedInterfaceType + +
+           
+ classResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
+ classResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+ classResolvedRecursiveType + +
+          Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
+ classTypePlaceHolder + +
+          Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedType
+protected  ResolvedTypeTypePlaceHolder._actualType + +
+          Type assigned during wildcard resolution
+protected  ResolvedTypeResolvedArrayType._elementType + +
+           
+protected  ResolvedTypeResolvedRecursiveType._referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+protected  ResolvedType[]ResolvedObjectType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+protected  ResolvedType[]ResolvedInterfaceType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedType
+ ResolvedTypeTypePlaceHolder.actualType() + +
+           
+ ResolvedTypeTypePlaceHolder.getArrayElementType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getArrayElementType() + +
+          To avoid infinite loops, will return null type
+ ResolvedTypeResolvedPrimitiveType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedObjectType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedArrayType.getArrayElementType() + +
+           
+ ResolvedTypeTypePlaceHolder.getParentClass() + +
+           
+ ResolvedTypeResolvedRecursiveType.getParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypeResolvedPrimitiveType.getParentClass() + +
+           
+ ResolvedTypeResolvedInterfaceType.getParentClass() + +
+           
+ ResolvedTypeResolvedArrayType.getParentClass() + +
+           
+ ResolvedTypeTypePlaceHolder.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedPrimitiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedObjectType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedArrayType.getSelfReferencedType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedType
+ List<ResolvedType>TypePlaceHolder.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedRecursiveType.getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<ResolvedType>ResolvedPrimitiveType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedObjectType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedInterfaceType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedArrayType.getImplementedInterfaces() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types with parameters of type ResolvedType
+ voidTypePlaceHolder.actualType(ResolvedType t) + +
+           
+ voidResolvedRecursiveType.setReference(ResolvedType ref) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedType
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedType
+ voidResolvedTypeCache.add(ResolvedType type) + +
+           
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..d5bc179 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html @@ -0,0 +1,186 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedTypeWithMembers (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedTypeWithMembers

+
+ + + + + + + + + +
+Packages that use ResolvedTypeWithMembers
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeWithMembers in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedTypeWithMembers
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeBindings.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeBindings.html new file mode 100644 index 0000000..1b39832 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeBindings.html @@ -0,0 +1,324 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeBindings (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeBindings

+
+ + + + + + + + + + + + + +
+Packages that use TypeBindings
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeBindings
+protected  TypeBindingsResolvedType._typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return TypeBindings
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsTypeBindings.emptyBindings() + +
+           
+ TypeBindingsResolvedType.getTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type TypeBindings
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeBindings
ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type TypeBindings
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeResolver.html b/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeResolver.html new file mode 100644 index 0000000..75d8b84 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/class-use/TypeResolver.html @@ -0,0 +1,218 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeResolver (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeResolver

+
+ + + + + + + + + +
+Packages that use TypeResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of TypeResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeResolver
+protected  TypeResolverResolvedTypeWithMembers._typeResolver + +
+          Need to be able to resolve member types still
+protected  TypeResolverMemberResolver._typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeResolver
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/HierarchicType.html b/javadoc/0.5.3/com/fasterxml/classmate/members/HierarchicType.html new file mode 100644 index 0000000..81817ae --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/HierarchicType.html @@ -0,0 +1,466 @@ + + + + + + + +HierarchicType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class HierarchicType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.HierarchicType
+
+
+
+
public final class HierarchicType
extends Object
+ + +

+Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_isMixin + +
+          Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
+protected  int_priority + +
+          Relative priority of this type in hierarchy; higher priority members can override + lower priority members.
+protected  ResolvedType_type + +
+           
+  + + + + + + + + + + +
+Constructor Summary
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ Class<?>getErasedType() + +
+           
+ intgetPriority() + +
+           
+ ResolvedTypegetType() + +
+           
+ inthashCode() + +
+           
+ booleanisMixin() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_isMixin

+
+protected final boolean _isMixin
+
+
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +

+

+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+
+ +

+_priority

+
+protected final int _priority
+
+
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. Priority values are unique and are based on type index + (starting from 0), although they are not to be used for indexing. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HierarchicType

+
+public HierarchicType(ResolvedType type,
+                      boolean mixin,
+                      int priority)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public ResolvedType getType()
+
+
+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
+
+
+
+
+ +

+isMixin

+
+public boolean isMixin()
+
+
+
+
+
+
+ +

+getPriority

+
+public int getPriority()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/RawConstructor.html b/javadoc/0.5.3/com/fasterxml/classmate/members/RawConstructor.html new file mode 100644 index 0000000..eea02d4 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/RawConstructor.html @@ -0,0 +1,380 @@ + + + + + + + +RawConstructor (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawConstructor
+
+
+
+
public final class RawConstructor
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+ booleanequals(Object o) + +
+           
+ Constructor<?>getRawMember() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawConstructor

+
+public RawConstructor(ResolvedType context,
+                      Constructor<?> constructor)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createKey

+
+public MethodKey createKey()
+
+
Although constructors are different from other methods, we can use + MethodKey easily. +

+

+
+
+
+
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/RawField.html b/javadoc/0.5.3/com/fasterxml/classmate/members/RawField.html new file mode 100644 index 0000000..fe6389b --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/RawField.html @@ -0,0 +1,335 @@ + + + + + + + +RawField (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawField
+
+
+
+
public class RawField
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawField(ResolvedType context, + Field field) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawField

+
+public RawField(ResolvedType context,
+                Field field)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Field getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/RawMember.html b/javadoc/0.5.3/com/fasterxml/classmate/members/RawMember.html new file mode 100644 index 0000000..5e1fced --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/RawMember.html @@ -0,0 +1,486 @@ + + + + + + + +RawMember (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+
+
+
Direct Known Subclasses:
RawConstructor, RawField, RawMethod
+
+
+
+
public abstract class RawMember
extends Object
+ + +

+Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution. + Instances are typically created by ResolvedType + when requested, and form the input to eventual full flattening of type members. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected RawMember(ResolvedType context) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanequals(Object o) + +
+           
+ Annotation[]getAnnotations() + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+           
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMember

+
+protected RawMember(ResolvedType context)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
+
+
+
+
+ +

+equals

+
+public abstract boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/RawMethod.html b/javadoc/0.5.3/com/fasterxml/classmate/members/RawMethod.html new file mode 100644 index 0000000..a2167c1 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/RawMethod.html @@ -0,0 +1,354 @@ + + + + + + + +RawMethod (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawMethod
+
+
+
+
public class RawMethod
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Method_method + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawMethod(ResolvedType context, + Method method) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+           
+ booleanequals(Object o) + +
+           
+ MethodgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMethod

+
+public RawMethod(ResolvedType context,
+                 Method method)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+createKey

+
+public MethodKey createKey()
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedConstructor.html b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedConstructor.html new file mode 100644 index 0000000..01f025b --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedConstructor.html @@ -0,0 +1,454 @@ + + + + + + + +ResolvedConstructor (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedConstructor
+
+
+
+
public final class ResolvedConstructor
extends ResolvedMember
+ + +

+Class that represents a constructor that has fully resolved generic + type information and annotation information. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ Constructor<?>getRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedConstructor

+
+public ResolvedConstructor(ResolvedType context,
+                           Annotations ann,
+                           Constructor<?> constructor,
+                           ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedField.html b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedField.html new file mode 100644 index 0000000..213e939 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedField.html @@ -0,0 +1,406 @@ + + + + + + + +ResolvedField (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedField
+
+
+
+
public class ResolvedField
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+protected  ResolvedType_type + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAnnotation(Annotation ann) + +
+           
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedField

+
+public ResolvedField(ResolvedType context,
+                     Annotations ann,
+                     Field field,
+                     ResolvedType type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAnnotation

+
+public void addAnnotation(Annotation ann)
+
+
+
+
+
+
+ +

+getRawMember

+
+public Field getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMember.html b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMember.html new file mode 100644 index 0000000..366a372 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMember.html @@ -0,0 +1,545 @@ + + + + + + + +ResolvedMember (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+
+
+
Direct Known Subclasses:
ResolvedConstructor, ResolvedField, ResolvedMethod
+
+
+
+
public abstract class ResolvedMember
extends Object
+ + +

+Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not + overridden, or filtered out) are resolved, since resolution process can add non-trivial + overhead. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Annotations_annotations + +
+           
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidapplyDefault(Annotation override) + +
+           
+ voidapplyOverride(Annotation override) + +
+           
+ voidapplyOverrides(Annotations overrides) + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+          Returns JDK object that represents member.
+abstract  ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+
+ +

+_annotations

+
+protected final Annotations _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMember

+
+protected ResolvedMember(ResolvedType context,
+                         Annotations ann)
+
+
+ + + + + + + + +
+Method Detail
+ +

+applyOverride

+
+public void applyOverride(Annotation override)
+
+
+
+
+
+
+ +

+applyOverrides

+
+public void applyOverrides(Annotations overrides)
+
+
+
+
+
+
+ +

+applyDefault

+
+public void applyDefault(Annotation override)
+
+
+
+
+
+
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getType

+
+public abstract ResolvedType getType()
+
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
Returns JDK object that represents member. +

+

+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMethod.html b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMethod.html new file mode 100644 index 0000000..42dd18c --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/ResolvedMethod.html @@ -0,0 +1,466 @@ + + + + + + + +ResolvedMethod (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedMethod
+
+
+
+
public class ResolvedMethod
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Method_method + +
+           
+protected  ResolvedType_returnType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ MethodgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetReturnType() + +
+           
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+
+ +

+_returnType

+
+protected final ResolvedType _returnType
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMethod

+
+public ResolvedMethod(ResolvedType context,
+                      Annotations ann,
+                      Method method,
+                      ResolvedType returnType,
+                      ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getReturnType

+
+public ResolvedType getReturnType()
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/HierarchicType.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/HierarchicType.html new file mode 100644 index 0000000..633b318 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/HierarchicType.html @@ -0,0 +1,257 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.HierarchicType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.HierarchicType

+
+ + + + + + + + + +
+Packages that use HierarchicType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of HierarchicType in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as HierarchicType
+protected  HierarchicTypeResolvedTypeWithMembers._mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  HierarchicType[]ResolvedTypeWithMembers._types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type HierarchicType
+ List<HierarchicType>ResolvedTypeWithMembers.allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ List<HierarchicType>ResolvedTypeWithMembers.mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>ResolvedTypeWithMembers.overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type HierarchicType
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawConstructor.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawConstructor.html new file mode 100644 index 0000000..42bee94 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawConstructor.html @@ -0,0 +1,347 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawConstructor (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawConstructor

+
+ + + + + + + + + + + + + +
+Packages that use RawConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawConstructor
+protected static RawConstructor[]ResolvedType.NO_CONSTRUCTORS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawConstructor
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawConstructor
+protected  RawConstructor[]ResolvedType._getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedType.getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawConstructor
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawConstructor
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawConstructor
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawConstructor
+protected  RawConstructor[]ResolvedObjectType._constructors + +
+          Constructors declared by the resolved Object class.
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedRecursiveType.getConstructors() + +
+           
+ List<RawConstructor>ResolvedObjectType.getConstructors() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawField.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawField.html new file mode 100644 index 0000000..55521d0 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawField.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawField (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawField

+
+ + + + + + + + + + + + + +
+Packages that use RawField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawField
+protected static RawField[]ResolvedType.NO_FIELDS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawField
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawField
+protected  RawField[]ResolvedType._getFields(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawField
+ List<RawField>ResolvedType.getMemberFields() + +
+           
+ List<RawField>ResolvedType.getStaticFields() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawField
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawField
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawField
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawField
+protected  RawField[]ResolvedInterfaceType._constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawField[]ResolvedObjectType._memberFields + +
+           
+protected  RawField[]ResolvedObjectType._staticFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawField
+ List<RawField>ResolvedRecursiveType.getMemberFields() + +
+           
+ List<RawField>ResolvedObjectType.getMemberFields() + +
+           
+ List<RawField>ResolvedRecursiveType.getStaticFields() + +
+           
+ List<RawField>ResolvedObjectType.getStaticFields() + +
+           
+ List<RawField>ResolvedInterfaceType.getStaticFields() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMember.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMember.html new file mode 100644 index 0000000..7b9665a --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMember.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMember (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMember

+
+ + + + + + + + + +
+Packages that use RawMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of RawMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of RawMember in com.fasterxml.classmate.members
+ classRawConstructor + +
+           
+ classRawField + +
+           
+ classRawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMethod.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMethod.html new file mode 100644 index 0000000..1f11c23 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/RawMethod.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMethod (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMethod

+
+ + + + + + + + + + + + + +
+Packages that use RawMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawMethod
+protected static RawMethod[]ResolvedType.NO_METHODS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawMethod
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawMethod
+protected  RawMethod[]ResolvedType._getMethods(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedType.getStaticMethods() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawMethod
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawMethod
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawMethod
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawMethod
+protected  RawMethod[]ResolvedObjectType._memberMethods + +
+           
+protected  RawMethod[]ResolvedInterfaceType._memberMethods + +
+          Interface methods are all public and abstract.
+protected  RawMethod[]ResolvedObjectType._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedRecursiveType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedInterfaceType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedRecursiveType.getStaticMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getStaticMethods() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html new file mode 100644 index 0000000..098ac9b --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedConstructor (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedConstructor

+
+ + + + + + + + + +
+Packages that use ResolvedConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedConstructor
+protected  ResolvedConstructor[]ResolvedTypeWithMembers._constructors + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedConstructor
+ ResolvedConstructor[]ResolvedTypeWithMembers.getConstructors() + +
+           
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]ResolvedTypeWithMembers.resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedField.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedField.html new file mode 100644 index 0000000..8fd9733 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedField.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedField (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedField

+
+ + + + + + + + + +
+Packages that use ResolvedField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedField
+protected  ResolvedField[]ResolvedTypeWithMembers._memberFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedField
+ ResolvedField[]ResolvedTypeWithMembers.getMemberFields() + +
+           
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]ResolvedTypeWithMembers.resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html new file mode 100644 index 0000000..94e95cc --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMember (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMember

+
+ + + + + + + + + +
+Packages that use ResolvedMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of ResolvedMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of ResolvedMember in com.fasterxml.classmate.members
+ classResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
+ classResolvedField + +
+           
+ classResolvedMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html new file mode 100644 index 0000000..7f43135 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html @@ -0,0 +1,241 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMethod (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMethod

+
+ + + + + + + + + +
+Packages that use ResolvedMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedMethod
+protected  ResolvedMethod[]ResolvedTypeWithMembers._memberMethods + +
+           
+protected  ResolvedMethod[]ResolvedTypeWithMembers._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedMethod
+ ResolvedMethod[]ResolvedTypeWithMembers.getMemberMethods() + +
+           
+ ResolvedMethod[]ResolvedTypeWithMembers.getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveMemberMethods() + +
+           
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/package-frame.html b/javadoc/0.5.3/com/fasterxml/classmate/members/package-frame.html new file mode 100644 index 0000000..f3b89f3 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/package-frame.html @@ -0,0 +1,49 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.3 API) + + + + + + + + + + + +com.fasterxml.classmate.members + + + + +
+Classes  + +
+HierarchicType +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedConstructor +
+ResolvedField +
+ResolvedMember +
+ResolvedMethod
+ + + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/package-summary.html b/javadoc/0.5.3/com/fasterxml/classmate/members/package-summary.html new file mode 100644 index 0000000..10bc784 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/package-summary.html @@ -0,0 +1,211 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.members +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
HierarchicTypeContainer class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor 
RawField 
RawMemberBase class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMethod 
ResolvedConstructorClass that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField 
ResolvedMemberFully type-resolved equivalent of RawMember.
ResolvedMethod 
+  + +

+

+Package com.fasterxml.classmate.members Description +

+ +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/package-tree.html b/javadoc/0.5.3/com/fasterxml/classmate/members/package-tree.html new file mode 100644 index 0000000..cfe9334 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/package-tree.html @@ -0,0 +1,158 @@ + + + + + + + +com.fasterxml.classmate.members Class Hierarchy (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.members +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/members/package-use.html b/javadoc/0.5.3/com/fasterxml/classmate/members/package-use.html new file mode 100644 index 0000000..87a223f --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/members/package-use.html @@ -0,0 +1,270 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.members (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.members

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.members
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate
HierarchicType + +
+          Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
ResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField + +
+           
ResolvedMethod + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.members
RawMember + +
+          Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
ResolvedMember + +
+          Fully type-resolved equivalent of RawMember.
+  +

+ + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.types
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/package-frame.html b/javadoc/0.5.3/com/fasterxml/classmate/package-frame.html new file mode 100644 index 0000000..3b108e2 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/package-frame.html @@ -0,0 +1,77 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.3 API) + + + + + + + + + + + +com.fasterxml.classmate + + + + +
+Interfaces  + +
+Filter
+ + + + + + +
+Classes  + +
+AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+GenericType +
+MemberResolver +
+ResolvedType +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypeResolver
+ + + + + + +
+Enums  + +
+AnnotationInclusion
+ + + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/package-summary.html b/javadoc/0.5.3/com/fasterxml/classmate/package-summary.html new file mode 100644 index 0000000..36f02dd --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/package-summary.html @@ -0,0 +1,265 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate +

+Package that contains main public interface of ClassMate + package. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
Filter<T>Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AnnotationConfigurationInterface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration.StdConfigurationSimple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationOverridesInterface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilderTo make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdImplSimple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationsContainer class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
GenericType<T>This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolverBuilder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType 
ResolvedTypeWithMembersClass that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindingsHelper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolverObject that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  + +

+ + + + + + + + + +
+Enum Summary
AnnotationInclusionEnumeration that defines different settings for handling behavior + of individual annotations
+  + +

+

+Package com.fasterxml.classmate Description +

+ +

+Package that contains main public interface of ClassMate + package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/package-tree.html b/javadoc/0.5.3/com/fasterxml/classmate/package-tree.html new file mode 100644 index 0000000..0639543 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/package-tree.html @@ -0,0 +1,173 @@ + + + + + + + +com.fasterxml.classmate Class Hierarchy (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/package-use.html b/javadoc/0.5.3/com/fasterxml/classmate/package-use.html new file mode 100644 index 0000000..8d9f33f --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/package-use.html @@ -0,0 +1,325 @@ + + + + + + + +Uses of Package com.fasterxml.classmate (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate
AnnotationConfiguration + +
+          Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationInclusion + +
+          Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides + +
+          Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Filter + +
+          Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
GenericType + +
+          This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolver + +
+          Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType + +
+           
ResolvedTypeWithMembers + +
+          Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolver + +
+          Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.members
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
ResolvedType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.types
ResolvedType + +
+           
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.util
ResolvedType + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedArrayType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedArrayType.html new file mode 100644 index 0000000..08334bf --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedArrayType.html @@ -0,0 +1,625 @@ + + + + + + + +ResolvedArrayType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedArrayType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedArrayType
+
+
+
+
public final class ResolvedArrayType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_elementType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_elementType

+
+protected final ResolvedType _elementType
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedArrayType

+
+public ResolvedArrayType(Class<?> erased,
+                         TypeBindings bindings,
+                         ResolvedObjectType superclass,
+                         ResolvedType elementType)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html new file mode 100644 index 0000000..bf42c84 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html @@ -0,0 +1,709 @@ + + + + + + + +ResolvedInterfaceType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedInterfaceType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
+
+
public class ResolvedInterfaceType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawField[]_constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawMethod[]_memberMethods + +
+          Interface methods are all public and abstract.
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getSignature, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_constantFields

+
+protected RawField[] _constantFields
+
+
Interfaces can have static final (constant) fields. +

+

+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
Interface methods are all public and abstract. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedInterfaceType

+
+public ResolvedInterfaceType(Class<?> erased,
+                             TypeBindings bindings,
+                             ResolvedType[] superInterfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedObjectType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedObjectType.html new file mode 100644 index 0000000..b534fec --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedObjectType.html @@ -0,0 +1,892 @@ + + + + + + + +ResolvedObjectType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedObjectType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedObjectType
+
+
+
+
public class ResolvedObjectType
extends ResolvedType
+ + +

+Type implementation for classes that do not represent interfaces, + primitive or array types. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawConstructor[]_constructors + +
+          Constructors declared by the resolved Object class.
+protected  RawField[]_memberFields + +
+           
+protected  RawMethod[]_memberMethods + +
+           
+protected  int_modifiers + +
+          Modifiers of the underlying class.
+protected  RawField[]_staticFields + +
+           
+protected  RawMethod[]_staticMethods + +
+           
+protected  ResolvedObjectType_superClass + +
+           
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + + + +
+Constructor Summary
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedObjectTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superClass

+
+protected final ResolvedObjectType _superClass
+
+
+
+
+
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_modifiers

+
+protected final int _modifiers
+
+
Modifiers of the underlying class. +

+

+
+
+
+ +

+_constructors

+
+protected RawConstructor[] _constructors
+
+
Constructors declared by the resolved Object class. +

+

+
+
+
+ +

+_memberFields

+
+protected RawField[] _memberFields
+
+
+
+
+
+ +

+_staticFields

+
+protected RawField[] _staticFields
+
+
+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
+
+
+
+ +

+_staticMethods

+
+protected RawMethod[] _staticMethods
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          List<ResolvedType> interfaces)
+
+
+
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          ResolvedType[] interfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedObjectType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public final ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public final boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public final boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public final boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html new file mode 100644 index 0000000..a8b4e72 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html @@ -0,0 +1,776 @@ + + + + + + + +ResolvedPrimitiveType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedPrimitiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
+
+
public final class ResolvedPrimitiveType
extends ResolvedType
+ + +

+Type used for Java primitive types (which does not include arrays here). +

+ Since set of primitive types is bounded, constructor is defined as protected, + and class final; that is, new primitive types are not to be constructed + by calling applications. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  String_description + +
+          Human-readable description should be simple as well
+protected  String_signature + +
+          Primitive types have single-character Signature, easy and efficient + to just store here
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedPrimitiveType(Class<?> erased, + char sig, + String desc) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static List<ResolvedPrimitiveType>all() + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+static ResolvedPrimitiveTypevoidType() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedType, getMemberFields, getMemberMethods, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_signature

+
+protected final String _signature
+
+
Primitive types have single-character Signature, easy and efficient + to just store here +

+

+
+
+
+ +

+_description

+
+protected final String _description
+
+
Human-readable description should be simple as well +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedPrimitiveType

+
+protected ResolvedPrimitiveType(Class<?> erased,
+                                char sig,
+                                String desc)
+
+
+ + + + + + + + +
+Method Detail
+ +

+all

+
+public static List<ResolvedPrimitiveType> all()
+
+
+
+
+
+
+ +

+voidType

+
+public static ResolvedPrimitiveType voidType()
+
+
+
+
+
+
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
Overrides:
getSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
Overrides:
getErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Description copied from class: ResolvedType
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
Overrides:
getFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html new file mode 100644 index 0000000..52bea30 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html @@ -0,0 +1,748 @@ + + + + + + + +ResolvedRecursiveType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedRecursiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
+
+
public class ResolvedRecursiveType
extends ResolvedType
+ + +

+Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class. + Underlying information is achievable (for full resolution), but + not exposed using super type (parent) accessors; and has special + handling when used for constructing descriptions. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          To avoid infinite loops, will return null type
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ voidsetReference(ResolvedType ref) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_referencedType

+
+protected ResolvedType _referencedType
+
+
Actual fully resolved type; assigned once resultion is complete +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedRecursiveType

+
+public ResolvedRecursiveType(Class<?> erased,
+                             TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+setReference

+
+public void setReference(ResolvedType ref)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
To avoid infinite loops, will return null; +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
To avoid infinite loops, will return empty list +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
To avoid infinite loops, will return null type +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/TypePlaceHolder.html b/javadoc/0.5.3/com/fasterxml/classmate/types/TypePlaceHolder.html new file mode 100644 index 0000000..1ddbaba --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/TypePlaceHolder.html @@ -0,0 +1,682 @@ + + + + + + + +TypePlaceHolder (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class TypePlaceHolder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.TypePlaceHolder
+
+
+
+
public class TypePlaceHolder
extends ResolvedType
+ + +

+Placeholder used for resolving type assignments to figure out + type parameters for subtypes. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_actualType + +
+          Type assigned during wildcard resolution
+protected  int_ordinal + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
TypePlaceHolder(int ordinal) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedTypeactualType() + +
+           
+ voidactualType(ResolvedType t) + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_ordinal

+
+protected final int _ordinal
+
+
+
+
+
+ +

+_actualType

+
+protected ResolvedType _actualType
+
+
Type assigned during wildcard resolution +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypePlaceHolder

+
+public TypePlaceHolder(int ordinal)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+actualType

+
+public ResolvedType actualType()
+
+
+
+
+
+
+ +

+actualType

+
+public void actualType(ResolvedType t)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html new file mode 100644 index 0000000..1b88252 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedArrayType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedArrayType

+
+ + + + + + + + + +
+Packages that use ResolvedArrayType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedArrayType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedArrayType
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html new file mode 100644 index 0000000..b9381f8 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedInterfaceType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedInterfaceType

+
+No usage of com.fasterxml.classmate.types.ResolvedInterfaceType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html new file mode 100644 index 0000000..81636a5 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html @@ -0,0 +1,233 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedObjectType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedObjectType

+
+ + + + + + + + + +
+Packages that use ResolvedObjectType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedObjectType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedObjectType
+protected  ResolvedObjectTypeResolvedObjectType._superClass + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedObjectType
+ ResolvedObjectTypeResolvedObjectType.getParentClass() + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedObjectType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html new file mode 100644 index 0000000..4049e4f --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedPrimitiveType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedPrimitiveType

+
+ + + + + + + + + +
+Packages that use ResolvedPrimitiveType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedPrimitiveType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedPrimitiveType
+static ResolvedPrimitiveTypeResolvedPrimitiveType.voidType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedPrimitiveType
+static List<ResolvedPrimitiveType>ResolvedPrimitiveType.all() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html new file mode 100644 index 0000000..9ed1c02 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedRecursiveType (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedRecursiveType

+
+No usage of com.fasterxml.classmate.types.ResolvedRecursiveType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html new file mode 100644 index 0000000..5b8b16e --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.TypePlaceHolder (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.TypePlaceHolder

+
+No usage of com.fasterxml.classmate.types.TypePlaceHolder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/package-frame.html b/javadoc/0.5.3/com/fasterxml/classmate/types/package-frame.html new file mode 100644 index 0000000..ebf35ec --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.3 API) + + + + + + + + + + + +com.fasterxml.classmate.types + + + + +
+Classes  + +
+ResolvedArrayType +
+ResolvedInterfaceType +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+TypePlaceHolder
+ + + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/package-summary.html b/javadoc/0.5.3/com/fasterxml/classmate/types/package-summary.html new file mode 100644 index 0000000..53769c4 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/package-summary.html @@ -0,0 +1,199 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.types +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ResolvedArrayType 
ResolvedInterfaceType 
ResolvedObjectTypeType implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveTypeType used for Java primitive types (which does not include arrays here).
ResolvedRecursiveTypeSpecialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
TypePlaceHolderPlaceholder used for resolving type assignments to figure out + type parameters for subtypes.
+  + +

+

+Package com.fasterxml.classmate.types Description +

+ +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/package-tree.html b/javadoc/0.5.3/com/fasterxml/classmate/types/package-tree.html new file mode 100644 index 0000000..ca2cf1c --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/package-tree.html @@ -0,0 +1,156 @@ + + + + + + + +com.fasterxml.classmate.types Class Hierarchy (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/types/package-use.html b/javadoc/0.5.3/com/fasterxml/classmate/types/package-use.html new file mode 100644 index 0000000..07da24d --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/types/package-use.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.types (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.types

+
+ + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.types
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate
ResolvedArrayType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate.types
ResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/ClassKey.html b/javadoc/0.5.3/com/fasterxml/classmate/util/ClassKey.html new file mode 100644 index 0000000..b7713a3 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/ClassKey.html @@ -0,0 +1,329 @@ + + + + + + + +ClassKey (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ClassKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ClassKey
+
+
+
All Implemented Interfaces:
Comparable<ClassKey>
+
+
+
+
public class ClassKey
extends Object
implements Comparable<ClassKey>
+ + +

+Helper class used as key when we need efficient Class-to-value lookups. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassKey(Class<?> clz) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(ClassKey other) + +
+           
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClassKey

+
+public ClassKey(Class<?> clz)
+
+
+ + + + + + + + +
+Method Detail
+ +

+compareTo

+
+public int compareTo(ClassKey other)
+
+
+
Specified by:
compareTo in interface Comparable<ClassKey>
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/MethodKey.html b/javadoc/0.5.3/com/fasterxml/classmate/util/MethodKey.html new file mode 100644 index 0000000..86feef0 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/MethodKey.html @@ -0,0 +1,322 @@ + + + + + + + +MethodKey (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class MethodKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.MethodKey
+
+
+
+
public class MethodKey
extends Object
+ + +

+Helper class needed when storing methods in maps; must +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
MethodKey(String name) + +
+           
MethodKey(String name, + Class<?>[] argTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+          Equality means name is the same and argument type erasures as well.
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MethodKey

+
+public MethodKey(String name)
+
+
+
+ +

+MethodKey

+
+public MethodKey(String name,
+                 Class<?>[] argTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(Object o)
+
+
Equality means name is the same and argument type erasures as well. +

+

+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html b/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..229642a --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html @@ -0,0 +1,301 @@ + + + + + + + +ResolvedTypeCache.Key (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache.Key

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
+
+
Enclosing class:
ResolvedTypeCache
+
+
+
+
public static class ResolvedTypeCache.Key
extends Object
+ + +

+Key used for type entries. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache.Key(Class<?> simpleType) + +
+           
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> simpleType)
+
+
+
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> erasedType,
+                             ResolvedType[] tp)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.html b/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.html new file mode 100644 index 0000000..67207ea --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/ResolvedTypeCache.html @@ -0,0 +1,416 @@ + + + + + + + +ResolvedTypeCache (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache
+
+
+
+
public class ResolvedTypeCache
extends Object
+ + +

+Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances. + Since usage pattern is such that caller needs synchronization, cache access methods + are fully synchronized so that caller need not do explicit synchronization. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classResolvedTypeCache.Key + +
+          Key used for type entries.
+ + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap_map + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache(int maxEntries) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(ResolvedType type) + +
+           
+ ResolvedTypefind(ResolvedTypeCache.Key key) + +
+           
+ ResolvedTypeCache.Keykey(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.Keykey(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidput(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_map

+
+protected final com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap _map
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache

+
+public ResolvedTypeCache(int maxEntries)
+
+
+ + + + + + + + +
+Method Detail
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType,
+                                 ResolvedType[] tp)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+find

+
+public ResolvedType find(ResolvedTypeCache.Key key)
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+put

+
+public void put(ResolvedTypeCache.Key key,
+                ResolvedType type)
+
+
+
+
+
+
+ +

+add

+
+public void add(ResolvedType type)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ClassKey.html b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ClassKey.html new file mode 100644 index 0000000..af9fee8 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ClassKey.html @@ -0,0 +1,301 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassKey (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ClassKey

+
+ + + + + + + + + + + + + +
+Packages that use ClassKey
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ClassKey
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdBuilder._targetsToOverrides + +
+           
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdImpl._targetsToOverrides + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ClassKey
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+abstract  List<Class<?>>AnnotationOverrides.mixInsFor(ClassKey beanClass) + +
+           
+ List<Class<?>>AnnotationOverrides.StdImpl.mixInsFor(ClassKey target) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ClassKey
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type ClassKey
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ClassKey
+ intClassKey.compareTo(ClassKey other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/MethodKey.html b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/MethodKey.html new file mode 100644 index 0000000..580bfc8 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/MethodKey.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.MethodKey (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.MethodKey

+
+ + + + + + + + + +
+Packages that use MethodKey
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of MethodKey in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return MethodKey
+ MethodKeyRawMethod.createKey() + +
+           
+ MethodKeyRawConstructor.createKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..9f3e920 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache.Key (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache.Key

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache.Key
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache.Key in com.fasterxml.classmate.util
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedTypeCache.Key
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeCache.Key
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html new file mode 100644 index 0000000..dbc8010 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedTypeCache
+protected  ResolvedTypeCacheTypeResolver._resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/package-frame.html b/javadoc/0.5.3/com/fasterxml/classmate/util/package-frame.html new file mode 100644 index 0000000..95cf7ae --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.3 API) + + + + + + + + + + + +com.fasterxml.classmate.util + + + + +
+Classes  + +
+ClassKey +
+MethodKey +
+ResolvedTypeCache +
+ResolvedTypeCache.Key
+ + + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/package-summary.html b/javadoc/0.5.3/com/fasterxml/classmate/util/package-summary.html new file mode 100644 index 0000000..d644c69 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/package-summary.html @@ -0,0 +1,186 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.util +

+Various utility classes used by ClassMate. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ClassKeyHelper class used as key when we need efficient Class-to-value lookups.
MethodKeyHelper class needed when storing methods in maps; must
ResolvedTypeCacheSimple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache.KeyKey used for type entries.
+  + +

+

+Package com.fasterxml.classmate.util Description +

+ +

+Various utility classes used by ClassMate. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/package-tree.html b/javadoc/0.5.3/com/fasterxml/classmate/util/package-tree.html new file mode 100644 index 0000000..79327c0 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +com.fasterxml.classmate.util Class Hierarchy (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/com/fasterxml/classmate/util/package-use.html b/javadoc/0.5.3/com/fasterxml/classmate/util/package-use.html new file mode 100644 index 0000000..22b7886 --- /dev/null +++ b/javadoc/0.5.3/com/fasterxml/classmate/util/package-use.html @@ -0,0 +1,224 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.util (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.util

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.util
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache + +
+          Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.members
MethodKey + +
+          Helper class needed when storing methods in maps; must
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.util
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache.Key + +
+          Key used for type entries.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/constant-values.html b/javadoc/0.5.3/constant-values.html new file mode 100644 index 0000000..435d985 --- /dev/null +++ b/javadoc/0.5.3/constant-values.html @@ -0,0 +1,147 @@ + + + + + + + +Constant Field Values (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/deprecated-list.html b/javadoc/0.5.3/deprecated-list.html new file mode 100644 index 0000000..c4beade --- /dev/null +++ b/javadoc/0.5.3/deprecated-list.html @@ -0,0 +1,147 @@ + + + + + + + +Deprecated List (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/help-doc.html b/javadoc/0.5.3/help-doc.html new file mode 100644 index 0000000..c2a436c --- /dev/null +++ b/javadoc/0.5.3/help-doc.html @@ -0,0 +1,224 @@ + + + + + + + +API Help (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/index-all.html b/javadoc/0.5.3/index-all.html new file mode 100644 index 0000000..ed6e711 --- /dev/null +++ b/javadoc/0.5.3/index-all.html @@ -0,0 +1,1453 @@ + + + + + + + +Index (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I K M N O P R S T V _
+

+A

+
+
actualType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
actualType(ResolvedType) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
add(Class<?>, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(ClassKey, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation, overriding existing value + for the annotation type. +
add(ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
addAll(Annotations) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding all annotations from specified set, as overrides + to annotations this set has +
addAnnotation(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
addAsDefault(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation if and only if no value + exists for the annotation type. +
all() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
allTypesAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +
AnnotationConfiguration - Class in com.fasterxml.classmate
Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration() - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration +
  +
AnnotationConfiguration.StdConfiguration - Class in com.fasterxml.classmate
Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationConfiguration.StdConfiguration(AnnotationInclusion) - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
AnnotationInclusion - Enum in com.fasterxml.classmate
Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides - Class in com.fasterxml.classmate
Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides +
  +
AnnotationOverrides.StdBuilder - Class in com.fasterxml.classmate
To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdBuilder() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
AnnotationOverrides.StdImpl - Class in com.fasterxml.classmate
Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationOverrides.StdImpl(HashMap<ClassKey, List<Class<?>>>) - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
Annotations - Class in com.fasterxml.classmate
Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Annotations() - +Constructor for class com.fasterxml.classmate.Annotations +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
applyDefault(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverride(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverrides(Annotations) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
arrayType(ResolvedType) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing array type of given element type. +
+
+

+B

+
+
build() - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +
builder() - +Static method in class com.fasterxml.classmate.AnnotationOverrides +
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +
+
+

+C

+
+
canCreateSubtype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
ClassKey - Class in com.fasterxml.classmate.util
Helper class used as key when we need efficient Class-to-value lookups.
ClassKey(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ClassKey +
  +
com.fasterxml.classmate - package com.fasterxml.classmate
Package that contains main public interface of ClassMate + package.
com.fasterxml.classmate.members - package com.fasterxml.classmate.members
Package that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.types - package com.fasterxml.classmate.types
Package that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.util - package com.fasterxml.classmate.util
Various utility classes used by ClassMate.
compareTo(ClassKey) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
create(Class<?>, List<ResolvedType>) - +Static method in class com.fasterxml.classmate.TypeBindings +
Factory method for constructing bindings for given class using specified type + parameters. +
create(Class<?>, ResolvedType[]) - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
createKey() - +Method in class com.fasterxml.classmate.members.RawConstructor +
Although constructors are different from other methods, we can use + MethodKey easily. +
createKey() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
+
+

+D

+
+
DEFAULT_ANNOTATION_CONFIG - +Static variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Default annotation configuration is to ignore all annotations types. +
+
+

+E

+
+
emptyBindings() - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMember +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.MethodKey +
Equality means name is the same and argument type erasures as well. +
equals(Object) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
+
+

+F

+
+
Filter<T> - Interface in com.fasterxml.classmate
Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
find(ResolvedTypeCache.Key) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
findBoundType(String) - +Method in class com.fasterxml.classmate.TypeBindings +
Find type bound to specified name, if there is one; returns bound type if so, null if not. +
findSupertype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method for finding super type of this type that has specified type + erased signature. +
+
+

+G

+
+
GenericType<T> - Class in com.fasterxml.classmate
This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
GenericType() - +Constructor for class com.fasterxml.classmate.GenericType +
  +
get(Class<A>) - +Method in class com.fasterxml.classmate.Annotations +
  +
getAnnotations() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
Returns number of arguments method takes. +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
Returns number of arguments method takes. +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null type +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getBoundName(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBoundType(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBriefDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable brief description of type, which does not include + information about super types. +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getErasedSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +
getErasedSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns type-erased Class that this resolved type has. +
getFullDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable full description of type, which includes specification + of super types (in brief format) +
getFullDescription() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns ordered list of interfaces (in declaration order) that this type + implements. +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return empty list +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getParentClass() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null; +
getParentClass() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getPriority() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns JDK object that represents member. +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getReturnType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +
getSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getTypeBindings() - +Method in class com.fasterxml.classmate.ResolvedType +
Method for accessing bindings of type variables to resolved types in context + of this type. +
getTypeParameters() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns list of generic type declarations for this type, in order they + are declared in class description. +
getTypeParameters() - +Method in class com.fasterxml.classmate.TypeBindings +
Accessor for getting bound types in declaration order +
+
+

+H

+
+
hashCode() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
hashCode() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
HierarchicType - Class in com.fasterxml.classmate.members
Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
HierarchicType(ResolvedType, boolean, int) - +Constructor for class com.fasterxml.classmate.members.HierarchicType +
  +
+
+

+I

+
+
include(T) - +Method in interface com.fasterxml.classmate.Filter +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isArray() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is an array type. +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isConcrete() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isEmpty() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
isInstanceOf(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isMixin() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isSelfReference(ResolvedType) - +Static method in class com.fasterxml.classmate.TypeResolver +
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +
isStatic() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isStatic() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
+
+

+K

+
+
key(Class<?>) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
key(Class<?>, ResolvedType[]) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
+
+

+M

+
+
mainTypeAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +
MemberResolver - Class in com.fasterxml.classmate
Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
MemberResolver(TypeResolver) - +Constructor for class com.fasterxml.classmate.MemberResolver +
Constructor for resolver that does not include java.lang.Object + in type hierarchy +
MethodKey - Class in com.fasterxml.classmate.util
Helper class needed when storing methods in maps; must
MethodKey(String) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
MethodKey(String, Class<?>[]) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
mixInsFor(Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
  +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
+
+

+N

+
+
NO_CONSTRUCTORS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_FIELDS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_METHODS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_TYPES - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
+
+

+O

+
+
overridesOnly() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for finding just overrides for the main type (if any). +
+
+

+P

+
+
put(ResolvedTypeCache.Key, ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+R

+
+
RawConstructor - Class in com.fasterxml.classmate.members
 
RawConstructor(ResolvedType, Constructor<?>) - +Constructor for class com.fasterxml.classmate.members.RawConstructor +
  +
RawField - Class in com.fasterxml.classmate.members
 
RawField(ResolvedType, Field) - +Constructor for class com.fasterxml.classmate.members.RawField +
  +
RawMember - Class in com.fasterxml.classmate.members
Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMember(ResolvedType) - +Constructor for class com.fasterxml.classmate.members.RawMember +
  +
RawMethod - Class in com.fasterxml.classmate.members
 
RawMethod(ResolvedType, Method) - +Constructor for class com.fasterxml.classmate.members.RawMethod +
  +
resolve(ResolvedType, AnnotationConfiguration, AnnotationOverrides) - +Method in class com.fasterxml.classmate.MemberResolver +
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +
resolve(Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +
resolve(Class<?>, Class<?>...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(Class<?>, ResolvedType...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(GenericType<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +
resolve(Type, TypeBindings) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +
resolveConstructor(RawConstructor) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual constructor completely +
resolveConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +
ResolvedArrayType - Class in com.fasterxml.classmate.types
 
ResolvedArrayType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType) - +Constructor for class com.fasterxml.classmate.types.ResolvedArrayType +
  +
ResolvedConstructor - Class in com.fasterxml.classmate.members
Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedConstructor(ResolvedType, Annotations, Constructor<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedConstructor +
  +
ResolvedField - Class in com.fasterxml.classmate.members
 
ResolvedField(ResolvedType, Annotations, Field, ResolvedType) - +Constructor for class com.fasterxml.classmate.members.ResolvedField +
  +
ResolvedInterfaceType - Class in com.fasterxml.classmate.types
 
ResolvedInterfaceType(Class<?>, TypeBindings, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
ResolvedMember - Class in com.fasterxml.classmate.members
Fully type-resolved equivalent of RawMember.
ResolvedMember(ResolvedType, Annotations) - +Constructor for class com.fasterxml.classmate.members.ResolvedMember +
  +
ResolvedMethod - Class in com.fasterxml.classmate.members
 
ResolvedMethod(ResolvedType, Annotations, Method, ResolvedType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedMethod +
  +
ResolvedObjectType - Class in com.fasterxml.classmate.types
Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, List<ResolvedType>) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedPrimitiveType - Class in com.fasterxml.classmate.types
Type used for Java primitive types (which does not include arrays here).
ResolvedPrimitiveType(Class<?>, char, String) - +Constructor for class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
ResolvedRecursiveType - Class in com.fasterxml.classmate.types
Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
ResolvedRecursiveType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
ResolvedType - Class in com.fasterxml.classmate
 
ResolvedType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.ResolvedType +
  +
ResolvedTypeCache - Class in com.fasterxml.classmate.util
Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache(int) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
ResolvedTypeCache.Key - Class in com.fasterxml.classmate.util
Key used for type entries.
ResolvedTypeCache.Key(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeCache.Key(Class<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeWithMembers - Class in com.fasterxml.classmate
Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
ResolvedTypeWithMembers(TypeResolver, AnnotationConfiguration, HierarchicType, HierarchicType[], Filter<RawConstructor>, Filter<RawField>, Filter<RawMethod>) - +Constructor for class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveField(RawField) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual field completely +
resolveMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for fully resolving field definitions and associated annotations. +
resolveMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveMethod(RawMethod) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual method completely +
resolveStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +
resolveSubtype(ResolvedType, Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +
+
+

+S

+
+
setConstructorFilter(Filter<RawConstructor>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setFieldFilter(Filter<RawField>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setIncludeLangObject(boolean) - +Method in class com.fasterxml.classmate.MemberResolver +
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +
setInclusion(Class<? extends Annotation>, AnnotationInclusion) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
setMethodFilter(Filter<RawMethod>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setReference(ResolvedType) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
size() - +Method in class com.fasterxml.classmate.Annotations +
  +
size() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
size() - +Method in class com.fasterxml.classmate.TypeBindings +
Returns number of bindings contained +
size() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+T

+
+
toString() - +Method in class com.fasterxml.classmate.Annotations +
  +
toString() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
toString() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
toString() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
toString() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
toString() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
toString() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
toString() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
TypeBindings - Class in com.fasterxml.classmate
Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
typeParameterArray() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
typeParametersFor(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that will try to find type parameterization this type + has for specified super type +
TypePlaceHolder - Class in com.fasterxml.classmate.types
Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
TypePlaceHolder(int) - +Constructor for class com.fasterxml.classmate.types.TypePlaceHolder +
  +
TypeResolver - Class in com.fasterxml.classmate
Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
TypeResolver() - +Constructor for class com.fasterxml.classmate.TypeResolver +
  +
+
+

+V

+
+
valueOf(String) - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns an array containing the constants of this enum type, in +the order they are declared. +
voidType() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
+
+

+_

+
+
_actualType - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
Type assigned during wildcard resolution +
_annotationHandler - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Handler for resolving annotation information +
_annotations - +Variable in class com.fasterxml.classmate.Annotations +
  +
_annotations - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
  +
_appendClassDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassName(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendErasedClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_cfgIncludeLangObject - +Variable in class com.fasterxml.classmate.MemberResolver +
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +
_constantFields - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interfaces can have static final (constant) fields. +
_constructor - +Variable in class com.fasterxml.classmate.members.RawConstructor +
  +
_constructor - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_constructorFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +
_constructorFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting constructors to include +
_constructors - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_constructors - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Constructors declared by the resolved Object class. +
_declaringType - +Variable in class com.fasterxml.classmate.members.RawMember +
ResolvedType (class with generic type parameters) that declared + this member +
_declaringType - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
ResolvedType (class with generic type parameters) that declared + this member +
_defaultInclusion - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_description - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Human-readable description should be simple as well +
_elementType - +Variable in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
_erasedType - +Variable in class com.fasterxml.classmate.ResolvedType +
  +
_field - +Variable in class com.fasterxml.classmate.members.RawField +
  +
_field - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_fieldFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +
_fieldFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting fields to include +
_gatherTypes(ResolvedType, Set<ClassKey>, List<ResolvedType>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
_getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getFields(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getMethods(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_inclusionFor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_inclusions - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_isMixin - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +
_mainType - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Leaf of the type hierarchy, i.e. +
_map - +Variable in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
_memberFields - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interface methods are all public and abstract. +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_method - +Variable in class com.fasterxml.classmate.members.RawMethod +
  +
_method - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_methodFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +
_methodFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting methods to include +
_modifiers - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Modifiers of the underlying class. +
_ordinal - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
_primitiveTypes - +Static variable in class com.fasterxml.classmate.TypeResolver +
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. +
_priority - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. +
_referencedType - +Variable in class com.fasterxml.classmate.types.ResolvedRecursiveType +
Actual fully resolved type; assigned once resultion is complete +
_resolvedTypes - +Variable in class com.fasterxml.classmate.TypeResolver +
Simple cache of types resolved by this resolved; capped to last 200 resolved types. +
_returnType - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_signature - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Primitive types have single-character Signature, easy and efficient + to just store here +
_staticFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superClass - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
List of interfaces this type implements; may be empty but never null +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
List of interfaces this type implements; may be empty but never null +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
_type - +Variable in class com.fasterxml.classmate.members.HierarchicType +
  +
_type - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_typeBindings - +Variable in class com.fasterxml.classmate.ResolvedType +
Type bindings active when resolving members (methods, fields, + constructors) of this type +
_typeResolver - +Variable in class com.fasterxml.classmate.MemberResolver +
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +
_typeResolver - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Need to be able to resolve member types still +
_types - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +
+
+A B C D E F G H I K M N O P R S T V _ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/index.html b/javadoc/0.5.3/index.html new file mode 100644 index 0000000..469cf32 --- /dev/null +++ b/javadoc/0.5.3/index.html @@ -0,0 +1,40 @@ + + + + + + + +ClassMate 0.5.3 API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/javadoc/0.5.3/overview-frame.html b/javadoc/0.5.3/overview-frame.html new file mode 100644 index 0000000..d7e9eaa --- /dev/null +++ b/javadoc/0.5.3/overview-frame.html @@ -0,0 +1,49 @@ + + + + + + + +Overview List (ClassMate 0.5.3 API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+com.fasterxml.classmate +
+com.fasterxml.classmate.members +
+com.fasterxml.classmate.types +
+com.fasterxml.classmate.util +
+

+ +

+  + + diff --git a/javadoc/0.5.3/overview-summary.html b/javadoc/0.5.3/overview-summary.html new file mode 100644 index 0000000..cb8873c --- /dev/null +++ b/javadoc/0.5.3/overview-summary.html @@ -0,0 +1,172 @@ + + + + + + + +Overview (ClassMate 0.5.3 API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+ClassMate 0.5.3 API +

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package.
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.utilVarious utility classes used by ClassMate.
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/overview-tree.html b/javadoc/0.5.3/overview-tree.html new file mode 100644 index 0000000..d1c532f --- /dev/null +++ b/javadoc/0.5.3/overview-tree.html @@ -0,0 +1,179 @@ + + + + + + + +Class Hierarchy (ClassMate 0.5.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
com.fasterxml.classmate, com.fasterxml.classmate.members, com.fasterxml.classmate.types, com.fasterxml.classmate.util
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.3/package-list b/javadoc/0.5.3/package-list new file mode 100644 index 0000000..1532090 --- /dev/null +++ b/javadoc/0.5.3/package-list @@ -0,0 +1,4 @@ +com.fasterxml.classmate +com.fasterxml.classmate.members +com.fasterxml.classmate.types +com.fasterxml.classmate.util diff --git a/javadoc/0.5.3/resources/inherit.gif b/javadoc/0.5.3/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/javadoc/0.5.3/resources/inherit.gif differ diff --git a/javadoc/0.5.3/stylesheet.css b/javadoc/0.5.3/stylesheet.css new file mode 100644 index 0000000..6ea9e51 --- /dev/null +++ b/javadoc/0.5.3/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/javadoc/0.5.4/allclasses-frame.html b/javadoc/0.5.4/allclasses-frame.html new file mode 100644 index 0000000..f817dc3 --- /dev/null +++ b/javadoc/0.5.4/allclasses-frame.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.4 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.4/allclasses-noframe.html b/javadoc/0.5.4/allclasses-noframe.html new file mode 100644 index 0000000..483e8ad --- /dev/null +++ b/javadoc/0.5.4/allclasses-noframe.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.5.4 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..c4afc27 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,477 @@ + + + + + + + +AnnotationConfiguration.StdConfiguration (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration.StdConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+      extended by com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
+
+
Enclosing class:
AnnotationConfiguration
+
+
+
+
public static class AnnotationConfiguration.StdConfiguration
extends AnnotationConfiguration
+ + +

+Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types. Same default is used for both class and + member method annotations (constructor, field and static method + annotations are never inherited) +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
+  + + + + + + + + + + + + + + + +
+Field Summary
+protected  AnnotationInclusion_defaultInclusion + +
+           
+protected  HashMap<ClassKey,AnnotationInclusion>_inclusions + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  AnnotationInclusion_inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+ AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ voidsetInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_defaultInclusion

+
+protected final AnnotationInclusion _defaultInclusion
+
+
+
+
+
+ +

+_inclusions

+
+protected HashMap<ClassKey,AnnotationInclusion> _inclusions
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration.StdConfiguration

+
+public AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
Specified by:
getInclusionForClass in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForConstructor

+
+public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForConstructor in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForField

+
+public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForField in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForMethod

+
+public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
Specified by:
getInclusionForMethod in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+setInclusion

+
+public void setInclusion(Class<? extends Annotation> annotationType,
+                         AnnotationInclusion incl)
+
+
+
+
+
+
+ +

+_inclusionFor

+
+protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.html new file mode 100644 index 0000000..aa10efe --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationConfiguration.html @@ -0,0 +1,363 @@ + + + + + + + +AnnotationConfiguration (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+
+
+
Direct Known Subclasses:
AnnotationConfiguration.StdConfiguration
+
+
+
+
public abstract class AnnotationConfiguration
extends Object
+ + +

+Interface for object that determines handling of annotations in regards + to inheritance, overrides. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+abstract  AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+abstract  AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+abstract  AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration

+
+public AnnotationConfiguration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
+
+
+
+ +

+getInclusionForConstructor

+
+public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForField

+
+public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+ +

+getInclusionForMethod

+
+public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationInclusion.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationInclusion.html new file mode 100644 index 0000000..baf99ff --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationInclusion.html @@ -0,0 +1,365 @@ + + + + + + + +AnnotationInclusion (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Enum AnnotationInclusion

+
+java.lang.Object
+  extended by java.lang.Enum<AnnotationInclusion>
+      extended by com.fasterxml.classmate.AnnotationInclusion
+
+
+
All Implemented Interfaces:
Serializable, Comparable<AnnotationInclusion>
+
+
+
+
public enum AnnotationInclusion
extends Enum<AnnotationInclusion>
+ + +

+Enumeration that defines different settings for handling behavior + of individual annotations +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Enum Constant Summary
DONT_INCLUDE + +
+          Value that indicates that annotation is to be ignored, not included + in resolved bean information.
INCLUDE_AND_INHERIT + +
+          Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes.
INCLUDE_BUT_DONT_INHERIT + +
+          Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationInclusionvalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+DONT_INCLUDE

+
+public static final AnnotationInclusion DONT_INCLUDE
+
+
Value that indicates that annotation is to be ignored, not included + in resolved bean information. + Applicable to all member types. +

+

+
+
+
+ +

+INCLUDE_BUT_DONT_INHERIT

+
+public static final AnnotationInclusion INCLUDE_BUT_DONT_INHERIT
+
+
Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes. + Applicable only to member methods; if used with other members will + mean basic inclusion. +

+

+
+
+
+ +

+INCLUDE_AND_INHERIT

+
+public static final AnnotationInclusion INCLUDE_AND_INHERIT
+
+
Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes. + Note that inheritance only matters with member methods; for other types + it just means "include". +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static AnnotationInclusion[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (AnnotationInclusion c : AnnotationInclusion.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static AnnotationInclusion valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..690540c --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,344 @@ + + + + + + + +AnnotationOverrides.StdBuilder (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdBuilder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdBuilder
extends Object
+ + +

+To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ AnnotationOverrides.StdBuilderadd(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderadd(ClassKey target, + Class<?> mixin) + +
+           
+ AnnotationOverridesbuild() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdBuilder

+
+public AnnotationOverrides.StdBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(Class<?> target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(ClassKey target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+build

+
+public AnnotationOverrides build()
+
+
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..e9cf368 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html @@ -0,0 +1,330 @@ + + + + + + + +AnnotationOverrides.StdImpl (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdImpl

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+      extended by com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdImpl
extends AnnotationOverrides
+ + +

+Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones). +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationOverrides
AnnotationOverrides.StdBuilder, AnnotationOverrides.StdImpl
+  + + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<Class<?>>mixInsFor(ClassKey target) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.AnnotationOverrides
builder, mixInsFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdImpl

+
+public AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides)
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(ClassKey target)
+
+
+
Specified by:
mixInsFor in class AnnotationOverrides
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.html b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.html new file mode 100644 index 0000000..fb2e60b --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/AnnotationOverrides.html @@ -0,0 +1,337 @@ + + + + + + + +AnnotationOverrides (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+
+
+
Direct Known Subclasses:
AnnotationOverrides.StdImpl
+
+
+
+
public abstract class AnnotationOverrides
extends Object
+ + +

+Interface for object that can provide mix-ins to override annotations. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationOverrides.StdBuilderbuilder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+ List<Class<?>>mixInsFor(Class<?> beanClass) + +
+          Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
+abstract  List<Class<?>>mixInsFor(ClassKey beanClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides

+
+public AnnotationOverrides()
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(Class<?> beanClass)
+
+
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +

+

+ +
Returns:
List of mix-in sources (starting with highest priority); + can be null or empty list if no mix-ins are to be used.
+
+
+
+ +

+mixInsFor

+
+public abstract List<Class<?>> mixInsFor(ClassKey beanClass)
+
+
+
+
+
+
+ +

+builder

+
+public static AnnotationOverrides.StdBuilder builder()
+
+
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/Annotations.html b/javadoc/0.5.4/com/fasterxml/classmate/Annotations.html new file mode 100644 index 0000000..af39990 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/Annotations.html @@ -0,0 +1,417 @@ + + + + + + + +Annotations (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class Annotations

+
+java.lang.Object
+  extended by com.fasterxml.classmate.Annotations
+
+
+
+
public class Annotations
extends Object
+ + +

+Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors). +

+ +

+

+
Author:
+
tatu
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<Class<? extends Annotation>,Annotation>_annotations + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Annotations() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(Annotation override) + +
+          Method for adding specified annotation, overriding existing value + for the annotation type.
+ voidaddAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+ voidaddAsDefault(Annotation defValue) + +
+          Method for adding specified annotation if and only if no value + exists for the annotation type.
+ + + + + +
+<A extends Annotation> +
+A
+
get(Class<A> cls) + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_annotations

+
+protected HashMap<Class<? extends Annotation>,Annotation> _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Annotations

+
+public Annotations()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(Annotation override)
+
+
Method for adding specified annotation, overriding existing value + for the annotation type. +

+

+
+
+
+
+ +

+addAll

+
+public void addAll(Annotations overrides)
+
+
Method for adding all annotations from specified set, as overrides + to annotations this set has +

+

+
+
+
+
+ +

+addAsDefault

+
+public void addAsDefault(Annotation defValue)
+
+
Method for adding specified annotation if and only if no value + exists for the annotation type. +

+

+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+get

+
+public <A extends Annotation> A get(Class<A> cls)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/Filter.html b/javadoc/0.5.4/com/fasterxml/classmate/Filter.html new file mode 100644 index 0000000..b5585db --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/Filter.html @@ -0,0 +1,212 @@ + + + + + + + +Filter (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Interface Filter<T>

+
+
+
public interface Filter<T>
+ + +

+Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ booleaninclude(T element) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+include

+
+boolean include(T element)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/GenericType.html b/javadoc/0.5.4/com/fasterxml/classmate/GenericType.html new file mode 100644 index 0000000..281b99a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/GenericType.html @@ -0,0 +1,243 @@ + + + + + + + +GenericType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class GenericType<T>

+
+java.lang.Object
+  extended by com.fasterxml.classmate.GenericType<T>
+
+
+
+
public abstract class GenericType<T>
extends Object
+ + +

+This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects). + It is based on ideas from + http://gafter.blogspot.com/2006/12/super-type-tokens.html, +

+ Usage is by sub-classing: here is one way to instantiate reference + to generic type List<Integer>: +

+  GenericType type = new GenericType<List<Integer>>() { };
+
+ which can be passed to methods that accept GenericReference. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected GenericType() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GenericType

+
+protected GenericType()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/MemberResolver.html b/javadoc/0.5.4/com/fasterxml/classmate/MemberResolver.html new file mode 100644 index 0000000..53b0eeb --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/MemberResolver.html @@ -0,0 +1,520 @@ + + + + + + + +MemberResolver (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class MemberResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.MemberResolver
+
+
+
+
public class MemberResolver
extends Object
+ + +

+Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes). +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_cfgIncludeLangObject + +
+          Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>_fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>_methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+protected  TypeResolver_typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  + + + + + + + + + + +
+Constructor Summary
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  void_gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedTypeWithMembersresolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ MemberResolversetConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolversetFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolversetIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolversetMethodFilter(Filter<RawMethod> f) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +

+

+
+
+
+ +

+_cfgIncludeLangObject

+
+protected boolean _cfgIncludeLangObject
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MemberResolver

+
+public MemberResolver(TypeResolver typeResolver)
+
+
Constructor for resolver that does not include java.lang.Object + in type hierarchy +

+

+ + + + + + + + +
+Method Detail
+ +

+setIncludeLangObject

+
+public MemberResolver setIncludeLangObject(boolean state)
+
+
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +

+

+
+
+
+
+ +

+setFieldFilter

+
+public MemberResolver setFieldFilter(Filter<RawField> f)
+
+
+
+
+
+
+ +

+setMethodFilter

+
+public MemberResolver setMethodFilter(Filter<RawMethod> f)
+
+
+
+
+
+
+ +

+setConstructorFilter

+
+public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
+
+
+
+
+
+
+ +

+resolve

+
+public ResolvedTypeWithMembers resolve(ResolvedType mainType,
+                                       AnnotationConfiguration annotationConfig,
+                                       AnnotationOverrides annotationOverrides)
+
+
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +

+

+
Parameters:
mainType - Resolved type that is the starting point (i.e. the leaf class) + for member resolution.
annotationConfig - Configuration of annotation types; which ones to include, how to inherit
annotationOverrides - Definitions of annotation overrides to use, if any (may be null)
+
+
+
+ +

+_gatherTypes

+
+protected void _gatherTypes(ResolvedType currentType,
+                            Set<ClassKey> seenTypes,
+                            List<ResolvedType> types)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/ResolvedType.html b/javadoc/0.5.4/com/fasterxml/classmate/ResolvedType.html new file mode 100644 index 0000000..66a0cce --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/ResolvedType.html @@ -0,0 +1,1227 @@ + + + + + + + +ResolvedType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+
+
+
Direct Known Subclasses:
ResolvedArrayType, ResolvedInterfaceType, ResolvedObjectType, ResolvedPrimitiveType, ResolvedRecursiveType, TypePlaceHolder
+
+
+
+
public abstract class ResolvedType
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Class<?>_erasedType + +
+           
+protected  TypeBindings_typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+protected static RawConstructor[]NO_CONSTRUCTORS + +
+           
+protected static RawField[]NO_FIELDS + +
+           
+protected static RawMethod[]NO_METHODS + +
+           
+protected static ResolvedType[]NO_TYPES + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringBuilder_appendClassDescription(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassName(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassSignature(StringBuilder sb) + +
+           
+protected  StringBuilder_appendErasedClassSignature(StringBuilder sb) + +
+           
+protected  RawConstructor[]_getConstructors() + +
+           
+protected  RawField[]_getFields(boolean statics) + +
+           
+protected  RawMethod[]_getMethods(boolean statics) + +
+           
+abstract  StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+abstract  StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtype(Class<?> subtype) + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
+abstract  booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetBriefDescription() + +
+          Human-readable brief description of type, which does not include + information about super types.
+ List<RawConstructor>getConstructors() + +
+           
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ Class<?>getErasedType() + +
+          Returns type-erased Class that this resolved type has.
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+abstract  List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+abstract  ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ TypeBindingsgetTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ List<ResolvedType>getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ inthashCode() + +
+           
+abstract  booleanisAbstract() + +
+           
+abstract  booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisConcrete() + +
+           
+ booleanisInstanceOf(Class<?> type) + +
+           
+abstract  booleanisInterface() + +
+           
+abstract  booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ StringtoString() + +
+           
+ List<ResolvedType>typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_TYPES

+
+protected static final ResolvedType[] NO_TYPES
+
+
+
+
+
+ +

+NO_CONSTRUCTORS

+
+protected static final RawConstructor[] NO_CONSTRUCTORS
+
+
+
+
+
+ +

+NO_FIELDS

+
+protected static final RawField[] NO_FIELDS
+
+
+
+
+
+ +

+NO_METHODS

+
+protected static final RawMethod[] NO_METHODS
+
+
+
+
+
+ +

+_erasedType

+
+protected final Class<?> _erasedType
+
+
+
+
+
+ +

+_typeBindings

+
+protected final TypeBindings _typeBindings
+
+
Type bindings active when resolving members (methods, fields, + constructors) of this type +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedType

+
+protected ResolvedType(Class<?> cls,
+                       TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public abstract boolean canCreateSubtypes()
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
+
+
+
+ +

+canCreateSubtype

+
+public final boolean canCreateSubtype(Class<?> subtype)
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +

+

+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
Returns type-erased Class that this resolved type has. +

+

+
+
+
+
+ +

+getParentClass

+
+public abstract ResolvedType getParentClass()
+
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
+
+
+
+ +

+getSelfReferencedType

+
+public abstract ResolvedType getSelfReferencedType()
+
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
+
+
+
+ +

+getArrayElementType

+
+public abstract ResolvedType getArrayElementType()
+
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
+
+
+
+ +

+getImplementedInterfaces

+
+public abstract List<ResolvedType> getImplementedInterfaces()
+
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Returns list of generic type declarations for this type, in order they + are declared in class description. +

+

+
+
+
+
+ +

+getTypeBindings

+
+public TypeBindings getTypeBindings()
+
+
Method for accessing bindings of type variables to resolved types in context + of this type. It has same number of entries as return List of + getTypeParameters(), accessible using declared name to which they + bind; for example, Map has 2 type bindings; one for + key type (name "K", from Map.java) and one for value type + (name "V", from Map.java). +

+

+
+
+
+
+ +

+typeParametersFor

+
+public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
+
+
Method that will try to find type parameterization this type + has for specified super type +

+

+ +
Returns:
List of type parameters for specified supertype (which may + be empty, if supertype is not a parametric type); null if specified + type is not a super type of this type
+
+
+
+ +

+findSupertype

+
+public ResolvedType findSupertype(Class<?> erasedSupertype)
+
+
Method for finding super type of this type that has specified type + erased signature. If supertype is an interface which is implemented + using multiple inheritance paths, preference is given to interfaces + implemented "highest up the stack" (directly implemented interfaces + over interfaces superclass implements). +

+

+
+
+
+
+ +

+isInterface

+
+public abstract boolean isInterface()
+
+
+
+
+
+
+ +

+isConcrete

+
+public final boolean isConcrete()
+
+
+
+
+
+
+ +

+isAbstract

+
+public abstract boolean isAbstract()
+
+
+
+
+
+
+ +

+isArray

+
+public abstract boolean isArray()
+
+
Method that indicates whether this type is an array type. +

+

+
+
+
+
+ +

+isPrimitive

+
+public abstract boolean isPrimitive()
+
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
+
+
+
+ +

+isInstanceOf

+
+public final boolean isInstanceOf(Class<?> type)
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
+
+
+
+ +

+getBriefDescription

+
+public String getBriefDescription()
+
+
Human-readable brief description of type, which does not include + information about super types. +

+

+
+
+
+
+ +

+appendBriefDescription

+
+public abstract StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public abstract StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendSignature

+
+public abstract StringBuilder appendSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public abstract StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+_appendClassSignature

+
+protected StringBuilder _appendClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendErasedClassSignature

+
+protected StringBuilder _appendErasedClassSignature(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassDescription

+
+protected StringBuilder _appendClassDescription(StringBuilder sb)
+
+
+
+
+
+
+ +

+_appendClassName

+
+protected StringBuilder _appendClassName(StringBuilder sb)
+
+
+
+
+
+
+ +

+_getFields

+
+protected RawField[] _getFields(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getMethods

+
+protected RawMethod[] _getMethods(boolean statics)
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getConstructors

+
+protected RawConstructor[] _getConstructors()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/ResolvedTypeWithMembers.html b/javadoc/0.5.4/com/fasterxml/classmate/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..df05c69 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/ResolvedTypeWithMembers.html @@ -0,0 +1,830 @@ + + + + + + + +ResolvedTypeWithMembers (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedTypeWithMembers

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
+
+
public class ResolvedTypeWithMembers
extends Object
+ + +

+Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations"). + Instances are created by MemberResolver. +

+ Note that instances are not thread-safe, as the expectation is that instances + will not be shared (unlike raw members or resolved types) +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler_annotationHandler + +
+          Handler for resolving annotation information
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  ResolvedConstructor[]_constructors + +
+           
+protected  Filter<RawField>_fieldFilter + +
+          Filter to use for selecting fields to include
+protected  HierarchicType_mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  ResolvedField[]_memberFields + +
+           
+protected  ResolvedMethod[]_memberMethods + +
+           
+protected  Filter<RawMethod>_methodFilter + +
+          Filter to use for selecting methods to include
+protected  ResolvedMethod[]_staticMethods + +
+           
+protected  TypeResolver_typeResolver + +
+          Need to be able to resolve member types still
+protected  HierarchicType[]_types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+protected static AnnotationConfigurationDEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<HierarchicType>allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ ResolvedConstructor[]getConstructors() + +
+           
+ ResolvedField[]getMemberFields() + +
+           
+ ResolvedMethod[]getMemberMethods() + +
+           
+ ResolvedMethod[]getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+ List<HierarchicType>mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+protected  ResolvedConstructorresolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+protected  ResolvedFieldresolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+protected  ResolvedMethod[]resolveMemberMethods() + +
+           
+protected  ResolvedMethodresolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_ANNOTATION_CONFIG

+
+protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
+
+
Default annotation configuration is to ignore all annotations types. +

+

+
+
+
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Need to be able to resolve member types still +

+

+
+
+
+ +

+_annotationHandler

+
+protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
+
+
Handler for resolving annotation information +

+

+
+
+
+ +

+_mainType

+
+protected final HierarchicType _mainType
+
+
Leaf of the type hierarchy, i.e. type from which this hierarchy + was generated. +

+

+
+
+
+ +

+_types

+
+protected final HierarchicType[] _types
+
+
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter to use for selecting fields to include +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter to use for selecting constructors to include +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter to use for selecting methods to include +

+

+
+
+
+ +

+_staticMethods

+
+protected ResolvedMethod[] _staticMethods
+
+
+
+
+
+ +

+_memberMethods

+
+protected ResolvedMethod[] _memberMethods
+
+
+
+
+
+ +

+_memberFields

+
+protected ResolvedField[] _memberFields
+
+
+
+
+
+ +

+_constructors

+
+protected ResolvedConstructor[] _constructors
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeWithMembers

+
+public ResolvedTypeWithMembers(TypeResolver typeResolver,
+                               AnnotationConfiguration annotationConfig,
+                               HierarchicType mainType,
+                               HierarchicType[] types,
+                               Filter<RawConstructor> constructorFilter,
+                               Filter<RawField> fieldFilter,
+                               Filter<RawMethod> methodFilter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+allTypesAndOverrides

+
+public List<HierarchicType> allTypesAndOverrides()
+
+
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +

+

+
+
+
+
+ +

+mainTypeAndOverrides

+
+public List<HierarchicType> mainTypeAndOverrides()
+
+
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +

+

+
+
+
+
+ +

+overridesOnly

+
+public List<HierarchicType> overridesOnly()
+
+
Accessor for finding just overrides for the main type (if any). +

+

+
+
+
+
+ +

+getStaticMethods

+
+public ResolvedMethod[] getStaticMethods()
+
+
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +

+

+
+
+
+
+ +

+getMemberFields

+
+public ResolvedField[] getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public ResolvedMethod[] getMemberMethods()
+
+
+
+
+
+
+ +

+getConstructors

+
+public ResolvedConstructor[] getConstructors()
+
+
+
+
+
+
+ +

+resolveConstructors

+
+protected ResolvedConstructor[] resolveConstructors()
+
+
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +

+

+
+
+
+
+ +

+resolveMemberFields

+
+protected ResolvedField[] resolveMemberFields()
+
+
Method for fully resolving field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in. +

+

+
+
+
+
+ +

+resolveStaticMethods

+
+protected ResolvedMethod[] resolveStaticMethods()
+
+
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +

+

+
+
+
+
+ +

+resolveMemberMethods

+
+protected ResolvedMethod[] resolveMemberMethods()
+
+
+
+
+
+
+ +

+resolveConstructor

+
+protected ResolvedConstructor resolveConstructor(RawConstructor raw)
+
+
Method for resolving individual constructor completely +

+

+
+
+
+
+ +

+resolveField

+
+protected ResolvedField resolveField(RawField raw)
+
+
Method for resolving individual field completely +

+

+
+
+
+
+ +

+resolveMethod

+
+protected ResolvedMethod resolveMethod(RawMethod raw)
+
+
Method for resolving individual method completely +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/TypeBindings.html b/javadoc/0.5.4/com/fasterxml/classmate/TypeBindings.html new file mode 100644 index 0000000..dbf22ec --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/TypeBindings.html @@ -0,0 +1,501 @@ + + + + + + + +TypeBindings (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeBindings

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeBindings
+
+
+
+
public final class TypeBindings
extends Object
+ + +

+Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TypeBindingscreate(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingscreate(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsemptyBindings() + +
+           
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ StringgetBoundName(int index) + +
+           
+ ResolvedTypegetBoundType(int index) + +
+           
+ List<ResolvedType>getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ inthashCode() + +
+           
+ booleanisEmpty() + +
+           
+ intsize() + +
+          Returns number of bindings contained
+ StringtoString() + +
+           
+protected  ResolvedType[]typeParameterArray() + +
+           
+ TypeBindingswithAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyBindings

+
+public static TypeBindings emptyBindings()
+
+
+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  List<ResolvedType> typeList)
+
+
Factory method for constructing bindings for given class using specified type + parameters. +

+

+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  ResolvedType[] types)
+
+
+
+
+
+
+ +

+withAdditionalBinding

+
+public TypeBindings withAdditionalBinding(String name,
+                                          ResolvedType type)
+
+
Method for creating an instance that has same bindings as this object, + plus one additional binding +

+

+
+
+
+
+ +

+findBoundType

+
+public ResolvedType findBoundType(String name)
+
+
Find type bound to specified name, if there is one; returns bound type if so, null if not. +

+

+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
Returns number of bindings contained +

+

+
+
+
+
+ +

+getBoundName

+
+public String getBoundName(int index)
+
+
+
+
+
+
+ +

+getBoundType

+
+public ResolvedType getBoundType(int index)
+
+
+
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Accessor for getting bound types in declaration order +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+typeParameterArray

+
+protected ResolvedType[] typeParameterArray()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/TypeResolver.html b/javadoc/0.5.4/com/fasterxml/classmate/TypeResolver.html new file mode 100644 index 0000000..3bc9a26 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/TypeResolver.html @@ -0,0 +1,553 @@ + + + + + + + +TypeResolver (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeResolver
+
+
+
+
public class TypeResolver
extends Object
+ + +

+Object that is used for resolving generic type information of a class + so that it is accessible using simple API. Resolved types are also starting + point for accessing resolved (generics aware) return and argument types + of class members (methods, fields, constructors). +

+ Note that resolver instances are stateful in that resolvers cache resolved + types for efficiency. Since this is internal state and not directly visible + to callers, access to state is fully synchronized so that access from + multiple threads is safe. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected static HashMap<ClassKey,ResolvedType>_primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  ResolvedTypeCache_resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  + + + + + + + + + + +
+Constructor Summary
TypeResolver() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedArrayTypearrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static booleanisSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTyperesolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTyperesolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTyperesolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTyperesolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTyperesolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_primitiveTypes

+
+protected static final HashMap<ClassKey,ResolvedType> _primitiveTypes
+
+
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. Same goes for limited number + of other "standard" types... +

+

+
+
+
+ +

+_resolvedTypes

+
+protected final ResolvedTypeCache _resolvedTypes
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypeResolver

+
+public TypeResolver()
+
+
+ + + + + + + + +
+Method Detail
+ +

+resolve

+
+public ResolvedType resolve(Class<?> rawType)
+
+
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            Class<?>... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Class<?> type,
+                            ResolvedType... typeParameters)
+
+
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType valueType = TypeResolver.resolve(new GenericType<Set<String>>() { });
+  ResolvedType type = TypeResolver.resolve(List.class, valueType);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Set<String>>() { });
+
+

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(GenericType<?> generic)
+
+
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +

+

+
+
+
+
+ +

+arrayType

+
+public ResolvedArrayType arrayType(ResolvedType elementType)
+
+
Factory method for constructing array type of given element type. +

+

+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(Type jdkType,
+                            TypeBindings typeBindings)
+
+
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +

+ Use of this method is discouraged (use if and only if you really know what you + are doing!); but if used, type bindings passed should come from ResolvedType + instance of declaring class (or interface). +

+

+
+
+
+
+ +

+resolveSubtype

+
+public ResolvedType resolveSubtype(ResolvedType supertype,
+                                   Class<?> subtype)
+                            throws IllegalArgumentException,
+                                   UnsupportedOperationException
+
+
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +

+ A typical use case here is to refine a generic type; for example, given + that we have generic type like List<Integer>, but we want + a more specific implementation type like + class ArrayList but with same parameterization (here just Integer), + we could achieve it by: +

+  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
+  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
+
+ (in this case, it would have been simpler to resolve directly; but in some + cases we are handled supertype and want to refine it, in which case steps + would be the same but separated by other code) +

+ Note that this method will fail if extension can not succeed; either because + this type is not extendable (sub-classable) -- which is true for primitive + and array types -- or because given class is not a subtype of this type. + To check whether subtyping could succeed, you can call + ResolvedType.canCreateSubtypes() to see if supertype can ever + be extended. +

+

+
Parameters:
supertype - Type to subtype (extend)
subclass - Type-erased sub-class or sub-interface +
Returns:
Resolved subtype +
Throws: +
IllegalArgumentException - If this type can be extended in general, but not into specified sub-class +
UnsupportedOperationException - If this type can not be sub-classed
+
+
+
+ +

+isSelfReference

+
+public static boolean isSelfReference(ResolvedType type)
+
+
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..2a4ba8b --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration

+
+No usage of com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.html new file mode 100644 index 0000000..035a662 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationConfiguration.html @@ -0,0 +1,240 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration

+
+ + + + + + + + + +
+Packages that use AnnotationConfiguration
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationConfiguration in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationConfiguration in com.fasterxml.classmate
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationConfiguration
+protected static AnnotationConfigurationResolvedTypeWithMembers.DEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationConfiguration
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationConfiguration
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationInclusion.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationInclusion.html new file mode 100644 index 0000000..5f85099 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationInclusion.html @@ -0,0 +1,330 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationInclusion (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationInclusion

+
+ + + + + + + + + +
+Packages that use AnnotationInclusion
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationInclusion in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._defaultInclusion + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type AnnotationInclusion
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+           
+static AnnotationInclusionAnnotationInclusion.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]AnnotationInclusion.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationInclusion
+ voidAnnotationConfiguration.StdConfiguration.setInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationInclusion
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..4333863 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdBuilder (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdBuilder

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides.StdBuilder
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides.StdBuilder in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides.StdBuilder
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+static AnnotationOverrides.StdBuilderAnnotationOverrides.builder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..78ebc8f --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdImpl (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdImpl

+
+No usage of com.fasterxml.classmate.AnnotationOverrides.StdImpl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.html new file mode 100644 index 0000000..11d4bcc --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/AnnotationOverrides.html @@ -0,0 +1,221 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationOverrides in com.fasterxml.classmate
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides
+ AnnotationOverridesAnnotationOverrides.StdBuilder.build() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationOverrides
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/Annotations.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/Annotations.html new file mode 100644 index 0000000..879e45e --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/Annotations.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.Annotations (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.Annotations

+
+ + + + + + + + + + + + + +
+Packages that use Annotations
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Annotations
+ voidAnnotations.addAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate.members
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as Annotations
+protected  AnnotationsResolvedMember._annotations + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.members with parameters of type Annotations
+ voidResolvedMember.applyOverrides(Annotations overrides) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type Annotations
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/Filter.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/Filter.html new file mode 100644 index 0000000..2a9f531 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/Filter.html @@ -0,0 +1,307 @@ + + + + + + + +Uses of Interface com.fasterxml.classmate.Filter (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
com.fasterxml.classmate.Filter

+
+ + + + + + + + + +
+Packages that use Filter
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of Filter in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as Filter
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Filter
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type Filter
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/GenericType.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/GenericType.html new file mode 100644 index 0000000..0a798cc --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/GenericType.html @@ -0,0 +1,183 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.GenericType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.GenericType

+
+ + + + + + + + + +
+Packages that use GenericType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of GenericType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type GenericType
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/MemberResolver.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/MemberResolver.html new file mode 100644 index 0000000..aa2c716 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/MemberResolver.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.MemberResolver (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.MemberResolver

+
+ + + + + + + + + +
+Packages that use MemberResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of MemberResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return MemberResolver
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedType.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedType.html new file mode 100644 index 0000000..3816d84 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedType.html @@ -0,0 +1,1237 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedType

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use ResolvedType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedType
+protected static ResolvedType[]ResolvedType.NO_TYPES + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ResolvedType
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedType
+ ResolvedTypeTypeBindings.findBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ ResolvedTypeResolvedType.findSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypeResolvedType.getArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ ResolvedTypeTypeBindings.getBoundType(int index) + +
+           
+abstract  ResolvedTypeResolvedType.getParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypeResolvedType.getSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ ResolvedTypeTypeResolver.resolve(Class<?> rawType) + +
+          Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance).
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + Class<?>... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolve(GenericType<?> generic) + +
+          Factory method for resolving given generic type, defined by using sub-class + instance of GenericType
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+protected  ResolvedType[]TypeBindings.typeParameterArray() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type ResolvedType
+abstract  List<ResolvedType>ResolvedType.getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<ResolvedType>TypeBindings.getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ List<ResolvedType>ResolvedType.getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ List<ResolvedType>ResolvedType.typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static booleanTypeResolver.isSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTypeTypeResolver.resolve(Class<?> type, + ResolvedType... typeParameters) + +
+          Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters.
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ TypeBindingsTypeBindings.withAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+  +

+ + + + + + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as ResolvedType
+protected  ResolvedType[]ResolvedMethod._argumentTypes + +
+           
+protected  ResolvedType[]ResolvedConstructor._argumentTypes + +
+           
+protected  ResolvedTypeResolvedMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeRawMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeResolvedMethod._returnType + +
+           
+protected  ResolvedTypeResolvedField._type + +
+           
+protected  ResolvedTypeHierarchicType._type + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return ResolvedType
+ ResolvedTypeResolvedMethod.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedConstructor.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedMember.getDeclaringType() + +
+           
+ ResolvedTypeRawMember.getDeclaringType() + +
+           
+ ResolvedTypeResolvedMethod.getReturnType() + +
+           
+ ResolvedTypeResolvedMethod.getType() + +
+           
+abstract  ResolvedTypeResolvedMember.getType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ ResolvedTypeResolvedField.getType() + +
+           
+ ResolvedTypeResolvedConstructor.getType() + +
+           
+ ResolvedTypeHierarchicType.getType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type ResolvedType
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
RawField(ResolvedType context, + Field field) + +
+           
RawMember(ResolvedType context) + +
+           
RawMethod(ResolvedType context, + Method method) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of ResolvedType in com.fasterxml.classmate.types
+ classResolvedArrayType + +
+           
+ classResolvedInterfaceType + +
+           
+ classResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
+ classResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+ classResolvedRecursiveType + +
+          Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
+ classTypePlaceHolder + +
+          Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedType
+protected  ResolvedTypeTypePlaceHolder._actualType + +
+          Type assigned during wildcard resolution
+protected  ResolvedTypeResolvedArrayType._elementType + +
+           
+protected  ResolvedTypeResolvedRecursiveType._referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+protected  ResolvedType[]ResolvedObjectType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+protected  ResolvedType[]ResolvedInterfaceType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedType
+ ResolvedTypeTypePlaceHolder.actualType() + +
+           
+ ResolvedTypeTypePlaceHolder.getArrayElementType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getArrayElementType() + +
+          To avoid infinite loops, will return null type
+ ResolvedTypeResolvedPrimitiveType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedObjectType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedArrayType.getArrayElementType() + +
+           
+ ResolvedTypeTypePlaceHolder.getParentClass() + +
+           
+ ResolvedTypeResolvedRecursiveType.getParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypeResolvedPrimitiveType.getParentClass() + +
+           
+ ResolvedTypeResolvedInterfaceType.getParentClass() + +
+           
+ ResolvedTypeResolvedArrayType.getParentClass() + +
+           
+ ResolvedTypeTypePlaceHolder.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedPrimitiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedObjectType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedArrayType.getSelfReferencedType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedType
+ List<ResolvedType>TypePlaceHolder.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedRecursiveType.getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<ResolvedType>ResolvedPrimitiveType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedObjectType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedInterfaceType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedArrayType.getImplementedInterfaces() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types with parameters of type ResolvedType
+ voidTypePlaceHolder.actualType(ResolvedType t) + +
+           
+ voidResolvedRecursiveType.setReference(ResolvedType ref) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedType
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedType
+ voidResolvedTypeCache.add(ResolvedType type) + +
+           
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..8910826 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html @@ -0,0 +1,186 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedTypeWithMembers (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedTypeWithMembers

+
+ + + + + + + + + +
+Packages that use ResolvedTypeWithMembers
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeWithMembers in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedTypeWithMembers
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeBindings.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeBindings.html new file mode 100644 index 0000000..93dd55a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeBindings.html @@ -0,0 +1,334 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeBindings (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeBindings

+
+ + + + + + + + + + + + + +
+Packages that use TypeBindings
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeBindings
+protected  TypeBindingsResolvedType._typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return TypeBindings
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsTypeBindings.emptyBindings() + +
+           
+ TypeBindingsResolvedType.getTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ TypeBindingsTypeBindings.withAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type TypeBindings
+ ResolvedTypeTypeResolver.resolve(Type jdkType, + TypeBindings typeBindings) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeBindings
ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type TypeBindings
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeResolver.html b/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeResolver.html new file mode 100644 index 0000000..80ebe5a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/class-use/TypeResolver.html @@ -0,0 +1,218 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeResolver (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeResolver

+
+ + + + + + + + + +
+Packages that use TypeResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of TypeResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeResolver
+protected  TypeResolverResolvedTypeWithMembers._typeResolver + +
+          Need to be able to resolve member types still
+protected  TypeResolverMemberResolver._typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeResolver
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/HierarchicType.html b/javadoc/0.5.4/com/fasterxml/classmate/members/HierarchicType.html new file mode 100644 index 0000000..1a16358 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/HierarchicType.html @@ -0,0 +1,466 @@ + + + + + + + +HierarchicType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class HierarchicType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.HierarchicType
+
+
+
+
public final class HierarchicType
extends Object
+ + +

+Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_isMixin + +
+          Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
+protected  int_priority + +
+          Relative priority of this type in hierarchy; higher priority members can override + lower priority members.
+protected  ResolvedType_type + +
+           
+  + + + + + + + + + + +
+Constructor Summary
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ Class<?>getErasedType() + +
+           
+ intgetPriority() + +
+           
+ ResolvedTypegetType() + +
+           
+ inthashCode() + +
+           
+ booleanisMixin() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_isMixin

+
+protected final boolean _isMixin
+
+
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +

+

+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+
+ +

+_priority

+
+protected final int _priority
+
+
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. Priority values are unique and are based on type index + (starting from 0), although they are not to be used for indexing. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HierarchicType

+
+public HierarchicType(ResolvedType type,
+                      boolean mixin,
+                      int priority)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public ResolvedType getType()
+
+
+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
+
+
+
+
+ +

+isMixin

+
+public boolean isMixin()
+
+
+
+
+
+
+ +

+getPriority

+
+public int getPriority()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/RawConstructor.html b/javadoc/0.5.4/com/fasterxml/classmate/members/RawConstructor.html new file mode 100644 index 0000000..ae7e1f3 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/RawConstructor.html @@ -0,0 +1,380 @@ + + + + + + + +RawConstructor (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawConstructor
+
+
+
+
public final class RawConstructor
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+ booleanequals(Object o) + +
+           
+ Constructor<?>getRawMember() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawConstructor

+
+public RawConstructor(ResolvedType context,
+                      Constructor<?> constructor)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createKey

+
+public MethodKey createKey()
+
+
Although constructors are different from other methods, we can use + MethodKey easily. +

+

+
+
+
+
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/RawField.html b/javadoc/0.5.4/com/fasterxml/classmate/members/RawField.html new file mode 100644 index 0000000..0b327a3 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/RawField.html @@ -0,0 +1,335 @@ + + + + + + + +RawField (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawField
+
+
+
+
public class RawField
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawField(ResolvedType context, + Field field) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawField

+
+public RawField(ResolvedType context,
+                Field field)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Field getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/RawMember.html b/javadoc/0.5.4/com/fasterxml/classmate/members/RawMember.html new file mode 100644 index 0000000..1eebc1d --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/RawMember.html @@ -0,0 +1,486 @@ + + + + + + + +RawMember (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+
+
+
Direct Known Subclasses:
RawConstructor, RawField, RawMethod
+
+
+
+
public abstract class RawMember
extends Object
+ + +

+Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution. + Instances are typically created by ResolvedType + when requested, and form the input to eventual full flattening of type members. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected RawMember(ResolvedType context) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanequals(Object o) + +
+           
+ Annotation[]getAnnotations() + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+           
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMember

+
+protected RawMember(ResolvedType context)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
+
+
+
+
+ +

+equals

+
+public abstract boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/RawMethod.html b/javadoc/0.5.4/com/fasterxml/classmate/members/RawMethod.html new file mode 100644 index 0000000..0562830 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/RawMethod.html @@ -0,0 +1,354 @@ + + + + + + + +RawMethod (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawMethod
+
+
+
+
public class RawMethod
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Method_method + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawMethod(ResolvedType context, + Method method) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+           
+ booleanequals(Object o) + +
+           
+ MethodgetRawMember() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMethod

+
+public RawMethod(ResolvedType context,
+                 Method method)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+createKey

+
+public MethodKey createKey()
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedConstructor.html b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedConstructor.html new file mode 100644 index 0000000..f29f1a2 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedConstructor.html @@ -0,0 +1,454 @@ + + + + + + + +ResolvedConstructor (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedConstructor
+
+
+
+
public final class ResolvedConstructor
extends ResolvedMember
+ + +

+Class that represents a constructor that has fully resolved generic + type information and annotation information. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Constructor<?>_constructor + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ Constructor<?>getRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedConstructor

+
+public ResolvedConstructor(ResolvedType context,
+                           Annotations ann,
+                           Constructor<?> constructor,
+                           ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedField.html b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedField.html new file mode 100644 index 0000000..6060f47 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedField.html @@ -0,0 +1,406 @@ + + + + + + + +ResolvedField (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedField
+
+
+
+
public class ResolvedField
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+protected  ResolvedType_type + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAnnotation(Annotation ann) + +
+           
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedField

+
+public ResolvedField(ResolvedType context,
+                     Annotations ann,
+                     Field field,
+                     ResolvedType type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAnnotation

+
+public void addAnnotation(Annotation ann)
+
+
+
+
+
+
+ +

+getRawMember

+
+public Field getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMember.html b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMember.html new file mode 100644 index 0000000..90147bf --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMember.html @@ -0,0 +1,545 @@ + + + + + + + +ResolvedMember (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+
+
+
Direct Known Subclasses:
ResolvedConstructor, ResolvedField, ResolvedMethod
+
+
+
+
public abstract class ResolvedMember
extends Object
+ + +

+Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not + overridden, or filtered out) are resolved, since resolution process can add non-trivial + overhead. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Annotations_annotations + +
+           
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidapplyDefault(Annotation override) + +
+           
+ voidapplyOverride(Annotation override) + +
+           
+ voidapplyOverrides(Annotations overrides) + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+          Returns JDK object that represents member.
+abstract  ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+
+ +

+_annotations

+
+protected final Annotations _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMember

+
+protected ResolvedMember(ResolvedType context,
+                         Annotations ann)
+
+
+ + + + + + + + +
+Method Detail
+ +

+applyOverride

+
+public void applyOverride(Annotation override)
+
+
+
+
+
+
+ +

+applyOverrides

+
+public void applyOverrides(Annotations overrides)
+
+
+
+
+
+
+ +

+applyDefault

+
+public void applyDefault(Annotation override)
+
+
+
+
+
+
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getType

+
+public abstract ResolvedType getType()
+
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
Returns JDK object that represents member. +

+

+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMethod.html b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMethod.html new file mode 100644 index 0000000..0354143 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/ResolvedMethod.html @@ -0,0 +1,466 @@ + + + + + + + +ResolvedMethod (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedMethod
+
+
+
+
public class ResolvedMethod
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Method_method + +
+           
+protected  ResolvedType_returnType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ MethodgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetReturnType() + +
+           
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, getDeclaringType, getModifiers, getName, hashCode, isAbstract, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+
+ +

+_returnType

+
+protected final ResolvedType _returnType
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMethod

+
+public ResolvedMethod(ResolvedType context,
+                      Annotations ann,
+                      Method method,
+                      ResolvedType returnType,
+                      ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getReturnType

+
+public ResolvedType getReturnType()
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/HierarchicType.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/HierarchicType.html new file mode 100644 index 0000000..9839215 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/HierarchicType.html @@ -0,0 +1,257 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.HierarchicType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.HierarchicType

+
+ + + + + + + + + +
+Packages that use HierarchicType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of HierarchicType in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as HierarchicType
+protected  HierarchicTypeResolvedTypeWithMembers._mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  HierarchicType[]ResolvedTypeWithMembers._types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type HierarchicType
+ List<HierarchicType>ResolvedTypeWithMembers.allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ List<HierarchicType>ResolvedTypeWithMembers.mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>ResolvedTypeWithMembers.overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type HierarchicType
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawConstructor.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawConstructor.html new file mode 100644 index 0000000..d621ead --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawConstructor.html @@ -0,0 +1,347 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawConstructor (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawConstructor

+
+ + + + + + + + + + + + + +
+Packages that use RawConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawConstructor
+protected static RawConstructor[]ResolvedType.NO_CONSTRUCTORS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawConstructor
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawConstructor
+protected  RawConstructor[]ResolvedType._getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedType.getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawConstructor
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawConstructor
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawConstructor
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawConstructor
+protected  RawConstructor[]ResolvedObjectType._constructors + +
+          Constructors declared by the resolved Object class.
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedRecursiveType.getConstructors() + +
+           
+ List<RawConstructor>ResolvedObjectType.getConstructors() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawField.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawField.html new file mode 100644 index 0000000..08a36cd --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawField.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawField (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawField

+
+ + + + + + + + + + + + + +
+Packages that use RawField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawField
+protected static RawField[]ResolvedType.NO_FIELDS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawField
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawField
+protected  RawField[]ResolvedType._getFields(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawField
+ List<RawField>ResolvedType.getMemberFields() + +
+           
+ List<RawField>ResolvedType.getStaticFields() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawField
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawField
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawField
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawField
+protected  RawField[]ResolvedInterfaceType._constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawField[]ResolvedObjectType._memberFields + +
+           
+protected  RawField[]ResolvedObjectType._staticFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawField
+ List<RawField>ResolvedRecursiveType.getMemberFields() + +
+           
+ List<RawField>ResolvedObjectType.getMemberFields() + +
+           
+ List<RawField>ResolvedRecursiveType.getStaticFields() + +
+           
+ List<RawField>ResolvedObjectType.getStaticFields() + +
+           
+ List<RawField>ResolvedInterfaceType.getStaticFields() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMember.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMember.html new file mode 100644 index 0000000..eebe50a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMember.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMember (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMember

+
+ + + + + + + + + +
+Packages that use RawMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of RawMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of RawMember in com.fasterxml.classmate.members
+ classRawConstructor + +
+           
+ classRawField + +
+           
+ classRawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMethod.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMethod.html new file mode 100644 index 0000000..b7e0e79 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/RawMethod.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMethod (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMethod

+
+ + + + + + + + + + + + + +
+Packages that use RawMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawMethod
+protected static RawMethod[]ResolvedType.NO_METHODS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawMethod
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawMethod
+protected  RawMethod[]ResolvedType._getMethods(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedType.getStaticMethods() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawMethod
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawMethod
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawMethod
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawMethod
+protected  RawMethod[]ResolvedObjectType._memberMethods + +
+           
+protected  RawMethod[]ResolvedInterfaceType._memberMethods + +
+          Interface methods are all public and abstract.
+protected  RawMethod[]ResolvedObjectType._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedRecursiveType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedInterfaceType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedRecursiveType.getStaticMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getStaticMethods() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html new file mode 100644 index 0000000..33dafb2 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedConstructor (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedConstructor

+
+ + + + + + + + + +
+Packages that use ResolvedConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedConstructor
+protected  ResolvedConstructor[]ResolvedTypeWithMembers._constructors + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedConstructor
+ ResolvedConstructor[]ResolvedTypeWithMembers.getConstructors() + +
+           
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]ResolvedTypeWithMembers.resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedField.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedField.html new file mode 100644 index 0000000..4575d2a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedField.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedField (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedField

+
+ + + + + + + + + +
+Packages that use ResolvedField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedField
+protected  ResolvedField[]ResolvedTypeWithMembers._memberFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedField
+ ResolvedField[]ResolvedTypeWithMembers.getMemberFields() + +
+           
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]ResolvedTypeWithMembers.resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMember.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMember.html new file mode 100644 index 0000000..99951a4 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMember.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMember (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMember

+
+ + + + + + + + + +
+Packages that use ResolvedMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of ResolvedMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of ResolvedMember in com.fasterxml.classmate.members
+ classResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
+ classResolvedField + +
+           
+ classResolvedMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMethod.html b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMethod.html new file mode 100644 index 0000000..819747f --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/class-use/ResolvedMethod.html @@ -0,0 +1,241 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMethod (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMethod

+
+ + + + + + + + + +
+Packages that use ResolvedMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedMethod
+protected  ResolvedMethod[]ResolvedTypeWithMembers._memberMethods + +
+           
+protected  ResolvedMethod[]ResolvedTypeWithMembers._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedMethod
+ ResolvedMethod[]ResolvedTypeWithMembers.getMemberMethods() + +
+           
+ ResolvedMethod[]ResolvedTypeWithMembers.getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveMemberMethods() + +
+           
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/package-frame.html b/javadoc/0.5.4/com/fasterxml/classmate/members/package-frame.html new file mode 100644 index 0000000..e9fb691 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/package-frame.html @@ -0,0 +1,49 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.4 API) + + + + + + + + + + + +com.fasterxml.classmate.members + + + + +
+Classes  + +
+HierarchicType +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedConstructor +
+ResolvedField +
+ResolvedMember +
+ResolvedMethod
+ + + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/package-summary.html b/javadoc/0.5.4/com/fasterxml/classmate/members/package-summary.html new file mode 100644 index 0000000..ad289d9 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/package-summary.html @@ -0,0 +1,211 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.members +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
HierarchicTypeContainer class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor 
RawField 
RawMemberBase class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMethod 
ResolvedConstructorClass that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField 
ResolvedMemberFully type-resolved equivalent of RawMember.
ResolvedMethod 
+  + +

+

+Package com.fasterxml.classmate.members Description +

+ +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/package-tree.html b/javadoc/0.5.4/com/fasterxml/classmate/members/package-tree.html new file mode 100644 index 0000000..db7bf2a --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/package-tree.html @@ -0,0 +1,158 @@ + + + + + + + +com.fasterxml.classmate.members Class Hierarchy (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.members +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/members/package-use.html b/javadoc/0.5.4/com/fasterxml/classmate/members/package-use.html new file mode 100644 index 0000000..d4d6983 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/members/package-use.html @@ -0,0 +1,270 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.members (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.members

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.members
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate
HierarchicType + +
+          Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
ResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField + +
+           
ResolvedMethod + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.members
RawMember + +
+          Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
ResolvedMember + +
+          Fully type-resolved equivalent of RawMember.
+  +

+ + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.types
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/package-frame.html b/javadoc/0.5.4/com/fasterxml/classmate/package-frame.html new file mode 100644 index 0000000..15cc93b --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/package-frame.html @@ -0,0 +1,77 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.4 API) + + + + + + + + + + + +com.fasterxml.classmate + + + + +
+Interfaces  + +
+Filter
+ + + + + + +
+Classes  + +
+AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+GenericType +
+MemberResolver +
+ResolvedType +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypeResolver
+ + + + + + +
+Enums  + +
+AnnotationInclusion
+ + + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/package-summary.html b/javadoc/0.5.4/com/fasterxml/classmate/package-summary.html new file mode 100644 index 0000000..2a71371 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/package-summary.html @@ -0,0 +1,265 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate +

+Package that contains main public interface of ClassMate + package. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
Filter<T>Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AnnotationConfigurationInterface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration.StdConfigurationSimple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationOverridesInterface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilderTo make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdImplSimple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationsContainer class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
GenericType<T>This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolverBuilder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType 
ResolvedTypeWithMembersClass that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindingsHelper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolverObject that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  + +

+ + + + + + + + + +
+Enum Summary
AnnotationInclusionEnumeration that defines different settings for handling behavior + of individual annotations
+  + +

+

+Package com.fasterxml.classmate Description +

+ +

+Package that contains main public interface of ClassMate + package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/package-tree.html b/javadoc/0.5.4/com/fasterxml/classmate/package-tree.html new file mode 100644 index 0000000..df5aa35 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/package-tree.html @@ -0,0 +1,173 @@ + + + + + + + +com.fasterxml.classmate Class Hierarchy (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/package-use.html b/javadoc/0.5.4/com/fasterxml/classmate/package-use.html new file mode 100644 index 0000000..748478d --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/package-use.html @@ -0,0 +1,325 @@ + + + + + + + +Uses of Package com.fasterxml.classmate (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate
AnnotationConfiguration + +
+          Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationInclusion + +
+          Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides + +
+          Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Filter + +
+          Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
GenericType + +
+          This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolver + +
+          Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType + +
+           
ResolvedTypeWithMembers + +
+          Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolver + +
+          Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.members
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
ResolvedType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.types
ResolvedType + +
+           
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.util
ResolvedType + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedArrayType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedArrayType.html new file mode 100644 index 0000000..d497874 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedArrayType.html @@ -0,0 +1,625 @@ + + + + + + + +ResolvedArrayType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedArrayType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedArrayType
+
+
+
+
public final class ResolvedArrayType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_elementType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_elementType

+
+protected final ResolvedType _elementType
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedArrayType

+
+public ResolvedArrayType(Class<?> erased,
+                         TypeBindings bindings,
+                         ResolvedObjectType superclass,
+                         ResolvedType elementType)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedInterfaceType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedInterfaceType.html new file mode 100644 index 0000000..cdef321 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedInterfaceType.html @@ -0,0 +1,709 @@ + + + + + + + +ResolvedInterfaceType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedInterfaceType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
+
+
public class ResolvedInterfaceType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawField[]_constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawMethod[]_memberMethods + +
+          Interface methods are all public and abstract.
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getSignature, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_constantFields

+
+protected RawField[] _constantFields
+
+
Interfaces can have static final (constant) fields. +

+

+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
Interface methods are all public and abstract. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedInterfaceType

+
+public ResolvedInterfaceType(Class<?> erased,
+                             TypeBindings bindings,
+                             ResolvedType[] superInterfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedObjectType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedObjectType.html new file mode 100644 index 0000000..2f1a11b --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedObjectType.html @@ -0,0 +1,892 @@ + + + + + + + +ResolvedObjectType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedObjectType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedObjectType
+
+
+
+
public class ResolvedObjectType
extends ResolvedType
+ + +

+Type implementation for classes that do not represent interfaces, + primitive or array types. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawConstructor[]_constructors + +
+          Constructors declared by the resolved Object class.
+protected  RawField[]_memberFields + +
+           
+protected  RawMethod[]_memberMethods + +
+           
+protected  int_modifiers + +
+          Modifiers of the underlying class.
+protected  RawField[]_staticFields + +
+           
+protected  RawMethod[]_staticMethods + +
+           
+protected  ResolvedObjectType_superClass + +
+           
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + + + +
+Constructor Summary
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedObjectTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superClass

+
+protected final ResolvedObjectType _superClass
+
+
+
+
+
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_modifiers

+
+protected final int _modifiers
+
+
Modifiers of the underlying class. +

+

+
+
+
+ +

+_constructors

+
+protected RawConstructor[] _constructors
+
+
Constructors declared by the resolved Object class. +

+

+
+
+
+ +

+_memberFields

+
+protected RawField[] _memberFields
+
+
+
+
+
+ +

+_staticFields

+
+protected RawField[] _staticFields
+
+
+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
+
+
+
+ +

+_staticMethods

+
+protected RawMethod[] _staticMethods
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          List<ResolvedType> interfaces)
+
+
+
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          ResolvedType[] interfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedObjectType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public final ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public final boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public final boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public final boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedPrimitiveType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedPrimitiveType.html new file mode 100644 index 0000000..432aabe --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedPrimitiveType.html @@ -0,0 +1,776 @@ + + + + + + + +ResolvedPrimitiveType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedPrimitiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
+
+
public final class ResolvedPrimitiveType
extends ResolvedType
+ + +

+Type used for Java primitive types (which does not include arrays here). +

+ Since set of primitive types is bounded, constructor is defined as protected, + and class final; that is, new primitive types are not to be constructed + by calling applications. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  String_description + +
+          Human-readable description should be simple as well
+protected  String_signature + +
+          Primitive types have single-character Signature, easy and efficient + to just store here
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedPrimitiveType(Class<?> erased, + char sig, + String desc) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static List<ResolvedPrimitiveType>all() + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+static ResolvedPrimitiveTypevoidType() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedType, getMemberFields, getMemberMethods, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_signature

+
+protected final String _signature
+
+
Primitive types have single-character Signature, easy and efficient + to just store here +

+

+
+
+
+ +

+_description

+
+protected final String _description
+
+
Human-readable description should be simple as well +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedPrimitiveType

+
+protected ResolvedPrimitiveType(Class<?> erased,
+                                char sig,
+                                String desc)
+
+
+ + + + + + + + +
+Method Detail
+ +

+all

+
+public static List<ResolvedPrimitiveType> all()
+
+
+
+
+
+
+ +

+voidType

+
+public static ResolvedPrimitiveType voidType()
+
+
+
+
+
+
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
Overrides:
getSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
Overrides:
getErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Description copied from class: ResolvedType
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
Overrides:
getFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedRecursiveType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedRecursiveType.html new file mode 100644 index 0000000..8d06c24 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/ResolvedRecursiveType.html @@ -0,0 +1,748 @@ + + + + + + + +ResolvedRecursiveType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedRecursiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
+
+
public class ResolvedRecursiveType
extends ResolvedType
+ + +

+Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class. + Underlying information is achievable (for full resolution), but + not exposed using super type (parent) accessors; and has special + handling when used for constructing descriptions. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          To avoid infinite loops, will return null type
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ voidsetReference(ResolvedType ref) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_referencedType

+
+protected ResolvedType _referencedType
+
+
Actual fully resolved type; assigned once resultion is complete +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedRecursiveType

+
+public ResolvedRecursiveType(Class<?> erased,
+                             TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+setReference

+
+public void setReference(ResolvedType ref)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
To avoid infinite loops, will return null; +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
To avoid infinite loops, will return empty list +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
To avoid infinite loops, will return null type +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/TypePlaceHolder.html b/javadoc/0.5.4/com/fasterxml/classmate/types/TypePlaceHolder.html new file mode 100644 index 0000000..15fc2d3 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/TypePlaceHolder.html @@ -0,0 +1,682 @@ + + + + + + + +TypePlaceHolder (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class TypePlaceHolder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.TypePlaceHolder
+
+
+
+
public class TypePlaceHolder
extends ResolvedType
+ + +

+Placeholder used for resolving type assignments to figure out + type parameters for subtypes. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_actualType + +
+          Type assigned during wildcard resolution
+protected  int_ordinal + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
TypePlaceHolder(int ordinal) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedTypeactualType() + +
+           
+ voidactualType(ResolvedType t) + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_ordinal

+
+protected final int _ordinal
+
+
+
+
+
+ +

+_actualType

+
+protected ResolvedType _actualType
+
+
Type assigned during wildcard resolution +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypePlaceHolder

+
+public TypePlaceHolder(int ordinal)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+actualType

+
+public ResolvedType actualType()
+
+
+
+
+
+
+ +

+actualType

+
+public void actualType(ResolvedType t)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html new file mode 100644 index 0000000..26670e5 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedArrayType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedArrayType

+
+ + + + + + + + + +
+Packages that use ResolvedArrayType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedArrayType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedArrayType
+ ResolvedArrayTypeTypeResolver.arrayType(ResolvedType elementType) + +
+          Factory method for constructing array type of given element type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html new file mode 100644 index 0000000..2ecdbb6 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedInterfaceType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedInterfaceType

+
+No usage of com.fasterxml.classmate.types.ResolvedInterfaceType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html new file mode 100644 index 0000000..e5aaa0c --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html @@ -0,0 +1,233 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedObjectType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedObjectType

+
+ + + + + + + + + +
+Packages that use ResolvedObjectType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedObjectType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedObjectType
+protected  ResolvedObjectTypeResolvedObjectType._superClass + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedObjectType
+ ResolvedObjectTypeResolvedObjectType.getParentClass() + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedObjectType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superclass, + ResolvedType elementType) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html new file mode 100644 index 0000000..523a4cd --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedPrimitiveType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedPrimitiveType

+
+ + + + + + + + + +
+Packages that use ResolvedPrimitiveType
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedPrimitiveType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedPrimitiveType
+static ResolvedPrimitiveTypeResolvedPrimitiveType.voidType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedPrimitiveType
+static List<ResolvedPrimitiveType>ResolvedPrimitiveType.all() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html new file mode 100644 index 0000000..788e179 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedRecursiveType (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedRecursiveType

+
+No usage of com.fasterxml.classmate.types.ResolvedRecursiveType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html new file mode 100644 index 0000000..dd6f9ee --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.TypePlaceHolder (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.TypePlaceHolder

+
+No usage of com.fasterxml.classmate.types.TypePlaceHolder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/package-frame.html b/javadoc/0.5.4/com/fasterxml/classmate/types/package-frame.html new file mode 100644 index 0000000..d50e8f8 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.4 API) + + + + + + + + + + + +com.fasterxml.classmate.types + + + + +
+Classes  + +
+ResolvedArrayType +
+ResolvedInterfaceType +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+TypePlaceHolder
+ + + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/package-summary.html b/javadoc/0.5.4/com/fasterxml/classmate/types/package-summary.html new file mode 100644 index 0000000..7d07a9f --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/package-summary.html @@ -0,0 +1,199 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.types +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ResolvedArrayType 
ResolvedInterfaceType 
ResolvedObjectTypeType implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveTypeType used for Java primitive types (which does not include arrays here).
ResolvedRecursiveTypeSpecialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
TypePlaceHolderPlaceholder used for resolving type assignments to figure out + type parameters for subtypes.
+  + +

+

+Package com.fasterxml.classmate.types Description +

+ +

+Package that contains com.fastexml.classmate.ResolvedType + implementation classes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/package-tree.html b/javadoc/0.5.4/com/fasterxml/classmate/types/package-tree.html new file mode 100644 index 0000000..e8fa30d --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/package-tree.html @@ -0,0 +1,156 @@ + + + + + + + +com.fasterxml.classmate.types Class Hierarchy (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/types/package-use.html b/javadoc/0.5.4/com/fasterxml/classmate/types/package-use.html new file mode 100644 index 0000000..a8bd7a5 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/types/package-use.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.types (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.types

+
+ + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.types
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes. 
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate
ResolvedArrayType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate.types
ResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/ClassKey.html b/javadoc/0.5.4/com/fasterxml/classmate/util/ClassKey.html new file mode 100644 index 0000000..aa5b51e --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/ClassKey.html @@ -0,0 +1,329 @@ + + + + + + + +ClassKey (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ClassKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ClassKey
+
+
+
All Implemented Interfaces:
Comparable<ClassKey>
+
+
+
+
public class ClassKey
extends Object
implements Comparable<ClassKey>
+ + +

+Helper class used as key when we need efficient Class-to-value lookups. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassKey(Class<?> clz) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(ClassKey other) + +
+           
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClassKey

+
+public ClassKey(Class<?> clz)
+
+
+ + + + + + + + +
+Method Detail
+ +

+compareTo

+
+public int compareTo(ClassKey other)
+
+
+
Specified by:
compareTo in interface Comparable<ClassKey>
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/MethodKey.html b/javadoc/0.5.4/com/fasterxml/classmate/util/MethodKey.html new file mode 100644 index 0000000..54f0e32 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/MethodKey.html @@ -0,0 +1,322 @@ + + + + + + + +MethodKey (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class MethodKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.MethodKey
+
+
+
+
public class MethodKey
extends Object
+ + +

+Helper class needed when storing methods in maps; must +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
MethodKey(String name) + +
+           
MethodKey(String name, + Class<?>[] argTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+          Equality means name is the same and argument type erasures as well.
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MethodKey

+
+public MethodKey(String name)
+
+
+
+ +

+MethodKey

+
+public MethodKey(String name,
+                 Class<?>[] argTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(Object o)
+
+
Equality means name is the same and argument type erasures as well. +

+

+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html b/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..06bf6df --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html @@ -0,0 +1,301 @@ + + + + + + + +ResolvedTypeCache.Key (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache.Key

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
+
+
Enclosing class:
ResolvedTypeCache
+
+
+
+
public static class ResolvedTypeCache.Key
extends Object
+ + +

+Key used for type entries. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache.Key(Class<?> simpleType) + +
+           
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> simpleType)
+
+
+
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> erasedType,
+                             ResolvedType[] tp)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.html b/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.html new file mode 100644 index 0000000..b4b578c --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/ResolvedTypeCache.html @@ -0,0 +1,416 @@ + + + + + + + +ResolvedTypeCache (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache
+
+
+
+
public class ResolvedTypeCache
extends Object
+ + +

+Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances. + Since usage pattern is such that caller needs synchronization, cache access methods + are fully synchronized so that caller need not do explicit synchronization. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classResolvedTypeCache.Key + +
+          Key used for type entries.
+ + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap_map + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache(int maxEntries) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(ResolvedType type) + +
+           
+ ResolvedTypefind(ResolvedTypeCache.Key key) + +
+           
+ ResolvedTypeCache.Keykey(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.Keykey(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidput(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_map

+
+protected final com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap _map
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache

+
+public ResolvedTypeCache(int maxEntries)
+
+
+ + + + + + + + +
+Method Detail
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType,
+                                 ResolvedType[] tp)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+ +

+find

+
+public ResolvedType find(ResolvedTypeCache.Key key)
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+put

+
+public void put(ResolvedTypeCache.Key key,
+                ResolvedType type)
+
+
+
+
+
+
+ +

+add

+
+public void add(ResolvedType type)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ClassKey.html b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ClassKey.html new file mode 100644 index 0000000..4c912d0 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ClassKey.html @@ -0,0 +1,301 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassKey (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ClassKey

+
+ + + + + + + + + + + + + +
+Packages that use ClassKey
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ClassKey
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdBuilder._targetsToOverrides + +
+           
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdImpl._targetsToOverrides + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ClassKey
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+abstract  List<Class<?>>AnnotationOverrides.mixInsFor(ClassKey beanClass) + +
+           
+ List<Class<?>>AnnotationOverrides.StdImpl.mixInsFor(ClassKey target) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ClassKey
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type ClassKey
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ClassKey
+ intClassKey.compareTo(ClassKey other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/MethodKey.html b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/MethodKey.html new file mode 100644 index 0000000..5ef5ac4 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/MethodKey.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.MethodKey (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.MethodKey

+
+ + + + + + + + + +
+Packages that use MethodKey
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of MethodKey in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return MethodKey
+ MethodKeyRawMethod.createKey() + +
+           
+ MethodKeyRawConstructor.createKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..0ccac73 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache.Key (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache.Key

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache.Key
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache.Key in com.fasterxml.classmate.util
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedTypeCache.Key
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeCache.Key
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html new file mode 100644 index 0000000..9ff25af --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedTypeCache
+protected  ResolvedTypeCacheTypeResolver._resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/package-frame.html b/javadoc/0.5.4/com/fasterxml/classmate/util/package-frame.html new file mode 100644 index 0000000..929a323 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.4 API) + + + + + + + + + + + +com.fasterxml.classmate.util + + + + +
+Classes  + +
+ClassKey +
+MethodKey +
+ResolvedTypeCache +
+ResolvedTypeCache.Key
+ + + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/package-summary.html b/javadoc/0.5.4/com/fasterxml/classmate/util/package-summary.html new file mode 100644 index 0000000..3d4fd52 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/package-summary.html @@ -0,0 +1,186 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.util +

+Various utility classes used by ClassMate. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ClassKeyHelper class used as key when we need efficient Class-to-value lookups.
MethodKeyHelper class needed when storing methods in maps; must
ResolvedTypeCacheSimple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache.KeyKey used for type entries.
+  + +

+

+Package com.fasterxml.classmate.util Description +

+ +

+Various utility classes used by ClassMate. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/package-tree.html b/javadoc/0.5.4/com/fasterxml/classmate/util/package-tree.html new file mode 100644 index 0000000..8eb178d --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +com.fasterxml.classmate.util Class Hierarchy (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/com/fasterxml/classmate/util/package-use.html b/javadoc/0.5.4/com/fasterxml/classmate/util/package-use.html new file mode 100644 index 0000000..44feca5 --- /dev/null +++ b/javadoc/0.5.4/com/fasterxml/classmate/util/package-use.html @@ -0,0 +1,224 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.util (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.util

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.util
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache + +
+          Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.members
MethodKey + +
+          Helper class needed when storing methods in maps; must
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.util
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache.Key + +
+          Key used for type entries.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/constant-values.html b/javadoc/0.5.4/constant-values.html new file mode 100644 index 0000000..316cbb9 --- /dev/null +++ b/javadoc/0.5.4/constant-values.html @@ -0,0 +1,147 @@ + + + + + + + +Constant Field Values (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/deprecated-list.html b/javadoc/0.5.4/deprecated-list.html new file mode 100644 index 0000000..4baf871 --- /dev/null +++ b/javadoc/0.5.4/deprecated-list.html @@ -0,0 +1,147 @@ + + + + + + + +Deprecated List (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/help-doc.html b/javadoc/0.5.4/help-doc.html new file mode 100644 index 0000000..883b320 --- /dev/null +++ b/javadoc/0.5.4/help-doc.html @@ -0,0 +1,224 @@ + + + + + + + +API Help (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/index-all.html b/javadoc/0.5.4/index-all.html new file mode 100644 index 0000000..5b9219b --- /dev/null +++ b/javadoc/0.5.4/index-all.html @@ -0,0 +1,1462 @@ + + + + + + + +Index (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I K M N O P R S T V W _
+

+A

+
+
actualType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
actualType(ResolvedType) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
add(Class<?>, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(ClassKey, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation, overriding existing value + for the annotation type. +
add(ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
addAll(Annotations) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding all annotations from specified set, as overrides + to annotations this set has +
addAnnotation(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
addAsDefault(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation if and only if no value + exists for the annotation type. +
all() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
allTypesAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +
AnnotationConfiguration - Class in com.fasterxml.classmate
Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration() - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration +
  +
AnnotationConfiguration.StdConfiguration - Class in com.fasterxml.classmate
Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationConfiguration.StdConfiguration(AnnotationInclusion) - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
AnnotationInclusion - Enum in com.fasterxml.classmate
Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides - Class in com.fasterxml.classmate
Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides +
  +
AnnotationOverrides.StdBuilder - Class in com.fasterxml.classmate
To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdBuilder() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
AnnotationOverrides.StdImpl - Class in com.fasterxml.classmate
Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationOverrides.StdImpl(HashMap<ClassKey, List<Class<?>>>) - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
Annotations - Class in com.fasterxml.classmate
Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Annotations() - +Constructor for class com.fasterxml.classmate.Annotations +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
applyDefault(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverride(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverrides(Annotations) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
arrayType(ResolvedType) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing array type of given element type. +
+
+

+B

+
+
build() - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +
builder() - +Static method in class com.fasterxml.classmate.AnnotationOverrides +
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +
+
+

+C

+
+
canCreateSubtype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
ClassKey - Class in com.fasterxml.classmate.util
Helper class used as key when we need efficient Class-to-value lookups.
ClassKey(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ClassKey +
  +
com.fasterxml.classmate - package com.fasterxml.classmate
Package that contains main public interface of ClassMate + package.
com.fasterxml.classmate.members - package com.fasterxml.classmate.members
Package that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.types - package com.fasterxml.classmate.types
Package that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.util - package com.fasterxml.classmate.util
Various utility classes used by ClassMate.
compareTo(ClassKey) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
create(Class<?>, List<ResolvedType>) - +Static method in class com.fasterxml.classmate.TypeBindings +
Factory method for constructing bindings for given class using specified type + parameters. +
create(Class<?>, ResolvedType[]) - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
createKey() - +Method in class com.fasterxml.classmate.members.RawConstructor +
Although constructors are different from other methods, we can use + MethodKey easily. +
createKey() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
+
+

+D

+
+
DEFAULT_ANNOTATION_CONFIG - +Static variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Default annotation configuration is to ignore all annotations types. +
+
+

+E

+
+
emptyBindings() - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMember +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.MethodKey +
Equality means name is the same and argument type erasures as well. +
equals(Object) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
+
+

+F

+
+
Filter<T> - Interface in com.fasterxml.classmate
Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
find(ResolvedTypeCache.Key) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
findBoundType(String) - +Method in class com.fasterxml.classmate.TypeBindings +
Find type bound to specified name, if there is one; returns bound type if so, null if not. +
findSupertype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method for finding super type of this type that has specified type + erased signature. +
+
+

+G

+
+
GenericType<T> - Class in com.fasterxml.classmate
This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
GenericType() - +Constructor for class com.fasterxml.classmate.GenericType +
  +
get(Class<A>) - +Method in class com.fasterxml.classmate.Annotations +
  +
getAnnotations() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
Returns number of arguments method takes. +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
Returns number of arguments method takes. +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null type +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getBoundName(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBoundType(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBriefDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable brief description of type, which does not include + information about super types. +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getErasedSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +
getErasedSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns type-erased Class that this resolved type has. +
getFullDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable full description of type, which includes specification + of super types (in brief format) +
getFullDescription() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns ordered list of interfaces (in declaration order) that this type + implements. +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return empty list +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getParentClass() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null; +
getParentClass() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getPriority() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns JDK object that represents member. +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getReturnType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +
getSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getTypeBindings() - +Method in class com.fasterxml.classmate.ResolvedType +
Method for accessing bindings of type variables to resolved types in context + of this type. +
getTypeParameters() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns list of generic type declarations for this type, in order they + are declared in class description. +
getTypeParameters() - +Method in class com.fasterxml.classmate.TypeBindings +
Accessor for getting bound types in declaration order +
+
+

+H

+
+
hashCode() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
hashCode() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
HierarchicType - Class in com.fasterxml.classmate.members
Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
HierarchicType(ResolvedType, boolean, int) - +Constructor for class com.fasterxml.classmate.members.HierarchicType +
  +
+
+

+I

+
+
include(T) - +Method in interface com.fasterxml.classmate.Filter +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isAbstract() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isArray() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is an array type. +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isConcrete() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isEmpty() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
isInstanceOf(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isMixin() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isSelfReference(ResolvedType) - +Static method in class com.fasterxml.classmate.TypeResolver +
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +
isStatic() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isStatic() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
+
+

+K

+
+
key(Class<?>) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
key(Class<?>, ResolvedType[]) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
+
+

+M

+
+
mainTypeAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +
MemberResolver - Class in com.fasterxml.classmate
Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
MemberResolver(TypeResolver) - +Constructor for class com.fasterxml.classmate.MemberResolver +
Constructor for resolver that does not include java.lang.Object + in type hierarchy +
MethodKey - Class in com.fasterxml.classmate.util
Helper class needed when storing methods in maps; must
MethodKey(String) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
MethodKey(String, Class<?>[]) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
mixInsFor(Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
  +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
+
+

+N

+
+
NO_CONSTRUCTORS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_FIELDS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_METHODS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_TYPES - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
+
+

+O

+
+
overridesOnly() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for finding just overrides for the main type (if any). +
+
+

+P

+
+
put(ResolvedTypeCache.Key, ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+R

+
+
RawConstructor - Class in com.fasterxml.classmate.members
 
RawConstructor(ResolvedType, Constructor<?>) - +Constructor for class com.fasterxml.classmate.members.RawConstructor +
  +
RawField - Class in com.fasterxml.classmate.members
 
RawField(ResolvedType, Field) - +Constructor for class com.fasterxml.classmate.members.RawField +
  +
RawMember - Class in com.fasterxml.classmate.members
Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMember(ResolvedType) - +Constructor for class com.fasterxml.classmate.members.RawMember +
  +
RawMethod - Class in com.fasterxml.classmate.members
 
RawMethod(ResolvedType, Method) - +Constructor for class com.fasterxml.classmate.members.RawMethod +
  +
resolve(ResolvedType, AnnotationConfiguration, AnnotationOverrides) - +Method in class com.fasterxml.classmate.MemberResolver +
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +
resolve(Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving a type-erased class; in this case any + generic type information has to come from super-types (via inheritance). +
resolve(Class<?>, Class<?>...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(Class<?>, ResolvedType...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given type (specified by type-erased class), + using specified types as type parameters. +
resolve(GenericType<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given generic type, defined by using sub-class + instance of GenericType +
resolve(Type, TypeBindings) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +
resolveConstructor(RawConstructor) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual constructor completely +
resolveConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +
ResolvedArrayType - Class in com.fasterxml.classmate.types
 
ResolvedArrayType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType) - +Constructor for class com.fasterxml.classmate.types.ResolvedArrayType +
  +
ResolvedConstructor - Class in com.fasterxml.classmate.members
Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedConstructor(ResolvedType, Annotations, Constructor<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedConstructor +
  +
ResolvedField - Class in com.fasterxml.classmate.members
 
ResolvedField(ResolvedType, Annotations, Field, ResolvedType) - +Constructor for class com.fasterxml.classmate.members.ResolvedField +
  +
ResolvedInterfaceType - Class in com.fasterxml.classmate.types
 
ResolvedInterfaceType(Class<?>, TypeBindings, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
ResolvedMember - Class in com.fasterxml.classmate.members
Fully type-resolved equivalent of RawMember.
ResolvedMember(ResolvedType, Annotations) - +Constructor for class com.fasterxml.classmate.members.ResolvedMember +
  +
ResolvedMethod - Class in com.fasterxml.classmate.members
 
ResolvedMethod(ResolvedType, Annotations, Method, ResolvedType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedMethod +
  +
ResolvedObjectType - Class in com.fasterxml.classmate.types
Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, List<ResolvedType>) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedPrimitiveType - Class in com.fasterxml.classmate.types
Type used for Java primitive types (which does not include arrays here).
ResolvedPrimitiveType(Class<?>, char, String) - +Constructor for class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
ResolvedRecursiveType - Class in com.fasterxml.classmate.types
Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
ResolvedRecursiveType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
ResolvedType - Class in com.fasterxml.classmate
 
ResolvedType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.ResolvedType +
  +
ResolvedTypeCache - Class in com.fasterxml.classmate.util
Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache(int) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
ResolvedTypeCache.Key - Class in com.fasterxml.classmate.util
Key used for type entries.
ResolvedTypeCache.Key(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeCache.Key(Class<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeWithMembers - Class in com.fasterxml.classmate
Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
ResolvedTypeWithMembers(TypeResolver, AnnotationConfiguration, HierarchicType, HierarchicType[], Filter<RawConstructor>, Filter<RawField>, Filter<RawMethod>) - +Constructor for class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveField(RawField) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual field completely +
resolveMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for fully resolving field definitions and associated annotations. +
resolveMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveMethod(RawMethod) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual method completely +
resolveStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +
resolveSubtype(ResolvedType, Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +
+
+

+S

+
+
setConstructorFilter(Filter<RawConstructor>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setFieldFilter(Filter<RawField>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setIncludeLangObject(boolean) - +Method in class com.fasterxml.classmate.MemberResolver +
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +
setInclusion(Class<? extends Annotation>, AnnotationInclusion) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
setMethodFilter(Filter<RawMethod>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setReference(ResolvedType) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
size() - +Method in class com.fasterxml.classmate.Annotations +
  +
size() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
size() - +Method in class com.fasterxml.classmate.TypeBindings +
Returns number of bindings contained +
size() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+T

+
+
toString() - +Method in class com.fasterxml.classmate.Annotations +
  +
toString() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
toString() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
toString() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
toString() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
toString() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
toString() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
toString() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
TypeBindings - Class in com.fasterxml.classmate
Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
typeParameterArray() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
typeParametersFor(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that will try to find type parameterization this type + has for specified super type +
TypePlaceHolder - Class in com.fasterxml.classmate.types
Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
TypePlaceHolder(int) - +Constructor for class com.fasterxml.classmate.types.TypePlaceHolder +
  +
TypeResolver - Class in com.fasterxml.classmate
Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
TypeResolver() - +Constructor for class com.fasterxml.classmate.TypeResolver +
  +
+
+

+V

+
+
valueOf(String) - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns an array containing the constants of this enum type, in +the order they are declared. +
voidType() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
+
+

+W

+
+
withAdditionalBinding(String, ResolvedType) - +Method in class com.fasterxml.classmate.TypeBindings +
Method for creating an instance that has same bindings as this object, + plus one additional binding +
+
+

+_

+
+
_actualType - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
Type assigned during wildcard resolution +
_annotationHandler - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Handler for resolving annotation information +
_annotations - +Variable in class com.fasterxml.classmate.Annotations +
  +
_annotations - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
  +
_appendClassDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassName(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendErasedClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_cfgIncludeLangObject - +Variable in class com.fasterxml.classmate.MemberResolver +
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +
_constantFields - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interfaces can have static final (constant) fields. +
_constructor - +Variable in class com.fasterxml.classmate.members.RawConstructor +
  +
_constructor - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_constructorFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +
_constructorFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting constructors to include +
_constructors - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_constructors - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Constructors declared by the resolved Object class. +
_declaringType - +Variable in class com.fasterxml.classmate.members.RawMember +
ResolvedType (class with generic type parameters) that declared + this member +
_declaringType - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
ResolvedType (class with generic type parameters) that declared + this member +
_defaultInclusion - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_description - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Human-readable description should be simple as well +
_elementType - +Variable in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
_erasedType - +Variable in class com.fasterxml.classmate.ResolvedType +
  +
_field - +Variable in class com.fasterxml.classmate.members.RawField +
  +
_field - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_fieldFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +
_fieldFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting fields to include +
_gatherTypes(ResolvedType, Set<ClassKey>, List<ResolvedType>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
_getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getFields(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getMethods(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_inclusionFor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_inclusions - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_isMixin - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +
_mainType - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Leaf of the type hierarchy, i.e. +
_map - +Variable in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
_memberFields - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interface methods are all public and abstract. +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_method - +Variable in class com.fasterxml.classmate.members.RawMethod +
  +
_method - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_methodFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +
_methodFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting methods to include +
_modifiers - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Modifiers of the underlying class. +
_ordinal - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
_primitiveTypes - +Static variable in class com.fasterxml.classmate.TypeResolver +
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. +
_priority - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. +
_referencedType - +Variable in class com.fasterxml.classmate.types.ResolvedRecursiveType +
Actual fully resolved type; assigned once resultion is complete +
_resolvedTypes - +Variable in class com.fasterxml.classmate.TypeResolver +
Simple cache of types resolved by this resolved; capped to last 200 resolved types. +
_returnType - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_signature - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Primitive types have single-character Signature, easy and efficient + to just store here +
_staticFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superClass - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
List of interfaces this type implements; may be empty but never null +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
List of interfaces this type implements; may be empty but never null +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
_type - +Variable in class com.fasterxml.classmate.members.HierarchicType +
  +
_type - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_typeBindings - +Variable in class com.fasterxml.classmate.ResolvedType +
Type bindings active when resolving members (methods, fields, + constructors) of this type +
_typeResolver - +Variable in class com.fasterxml.classmate.MemberResolver +
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +
_typeResolver - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Need to be able to resolve member types still +
_types - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +
+
+A B C D E F G H I K M N O P R S T V W _ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/index.html b/javadoc/0.5.4/index.html new file mode 100644 index 0000000..e0fa850 --- /dev/null +++ b/javadoc/0.5.4/index.html @@ -0,0 +1,40 @@ + + + + + + + +ClassMate 0.5.4 API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/javadoc/0.5.4/overview-frame.html b/javadoc/0.5.4/overview-frame.html new file mode 100644 index 0000000..1dd6de8 --- /dev/null +++ b/javadoc/0.5.4/overview-frame.html @@ -0,0 +1,49 @@ + + + + + + + +Overview List (ClassMate 0.5.4 API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+com.fasterxml.classmate +
+com.fasterxml.classmate.members +
+com.fasterxml.classmate.types +
+com.fasterxml.classmate.util +
+

+ +

+  + + diff --git a/javadoc/0.5.4/overview-summary.html b/javadoc/0.5.4/overview-summary.html new file mode 100644 index 0000000..5e27514 --- /dev/null +++ b/javadoc/0.5.4/overview-summary.html @@ -0,0 +1,172 @@ + + + + + + + +Overview (ClassMate 0.5.4 API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+ClassMate 0.5.4 API +

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package.
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.typesPackage that contains com.fastexml.classmate.ResolvedType + implementation classes.
com.fasterxml.classmate.utilVarious utility classes used by ClassMate.
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/overview-tree.html b/javadoc/0.5.4/overview-tree.html new file mode 100644 index 0000000..fc6613f --- /dev/null +++ b/javadoc/0.5.4/overview-tree.html @@ -0,0 +1,179 @@ + + + + + + + +Class Hierarchy (ClassMate 0.5.4 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
com.fasterxml.classmate, com.fasterxml.classmate.members, com.fasterxml.classmate.types, com.fasterxml.classmate.util
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2011 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.5.4/package-list b/javadoc/0.5.4/package-list new file mode 100644 index 0000000..1532090 --- /dev/null +++ b/javadoc/0.5.4/package-list @@ -0,0 +1,4 @@ +com.fasterxml.classmate +com.fasterxml.classmate.members +com.fasterxml.classmate.types +com.fasterxml.classmate.util diff --git a/javadoc/0.5.4/resources/inherit.gif b/javadoc/0.5.4/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/javadoc/0.5.4/resources/inherit.gif differ diff --git a/javadoc/0.5.4/stylesheet.css b/javadoc/0.5.4/stylesheet.css new file mode 100644 index 0000000..6ea9e51 --- /dev/null +++ b/javadoc/0.5.4/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/javadoc/0.8.0/allclasses-frame.html b/javadoc/0.8.0/allclasses-frame.html new file mode 100644 index 0000000..d83d8f3 --- /dev/null +++ b/javadoc/0.8.0/allclasses-frame.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.8.0 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.8.0/allclasses-noframe.html b/javadoc/0.8.0/allclasses-noframe.html new file mode 100644 index 0000000..f213193 --- /dev/null +++ b/javadoc/0.8.0/allclasses-noframe.html @@ -0,0 +1,96 @@ + + + + + + + +All Classes (ClassMate 0.8.0 API) + + + + + + + + + + + +All Classes +
+ + + + + +
AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationInclusion +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+ClassKey +
+Filter +
+GenericType +
+HierarchicType +
+MemberResolver +
+MethodKey +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedArrayType +
+ResolvedConstructor +
+ResolvedField +
+ResolvedInterfaceType +
+ResolvedMember +
+ResolvedMethod +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+ResolvedType +
+ResolvedTypeCache +
+ResolvedTypeCache.Key +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypePlaceHolder +
+TypeResolver +
+
+ + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..6787e56 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,488 @@ + + + + + + + +AnnotationConfiguration.StdConfiguration (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration.StdConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+      extended by com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Enclosing class:
AnnotationConfiguration
+
+
+
+
public static class AnnotationConfiguration.StdConfiguration
extends AnnotationConfiguration
implements Serializable
+ + +

+Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types. Same default is used for both class and + member method annotations (constructor, field and static method + annotations are never inherited) +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
+  + + + + + + + + + + + + + + + +
+Field Summary
+protected  AnnotationInclusion_defaultInclusion + +
+           
+protected  HashMap<ClassKey,AnnotationInclusion>_inclusions + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  AnnotationInclusion_inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+ AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ voidsetInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_defaultInclusion

+
+protected final AnnotationInclusion _defaultInclusion
+
+
+
+
+
+ +

+_inclusions

+
+protected final HashMap<ClassKey,AnnotationInclusion> _inclusions
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration.StdConfiguration

+
+public AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
Specified by:
getInclusionForClass in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForConstructor

+
+public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForConstructor in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForField

+
+public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
Specified by:
getInclusionForField in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+getInclusionForMethod

+
+public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Description copied from class: AnnotationConfiguration
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
Specified by:
getInclusionForMethod in class AnnotationConfiguration
+
+
+
+
+
+
+ +

+setInclusion

+
+public void setInclusion(Class<? extends Annotation> annotationType,
+                         AnnotationInclusion incl)
+
+
+
+
+
+
+
+
+
+ +

+_inclusionFor

+
+protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.html new file mode 100644 index 0000000..33f8754 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationConfiguration.html @@ -0,0 +1,380 @@ + + + + + + + +AnnotationConfiguration (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationConfiguration

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationConfiguration
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Direct Known Subclasses:
AnnotationConfiguration.StdConfiguration
+
+
+
+
public abstract class AnnotationConfiguration
extends Object
implements Serializable
+ + +

+Interface for object that determines handling of annotations in regards + to inheritance, overrides. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  + + + + + + + + + + +
+Constructor Summary
AnnotationConfiguration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+abstract  AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+abstract  AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+abstract  AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationConfiguration

+
+public AnnotationConfiguration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInclusionForClass

+
+public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +

+

+
+
+
+
+
+
+
+ +

+getInclusionForConstructor

+
+public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

+ Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+
+
+
+ +

+getInclusionForField

+
+public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

+ Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion. +

+

+
+
+
+
+
+
+
+ +

+getInclusionForMethod

+
+public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
+
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

+ Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationInclusion.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationInclusion.html new file mode 100644 index 0000000..329d706 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationInclusion.html @@ -0,0 +1,389 @@ + + + + + + + +AnnotationInclusion (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Enum AnnotationInclusion

+
+java.lang.Object
+  extended by java.lang.Enum<AnnotationInclusion>
+      extended by com.fasterxml.classmate.AnnotationInclusion
+
+
+
All Implemented Interfaces:
Serializable, Comparable<AnnotationInclusion>
+
+
+
+
public enum AnnotationInclusion
extends Enum<AnnotationInclusion>
+ + +

+Enumeration that defines different settings for handling behavior + of individual annotations +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
DONT_INCLUDE + +
+          Value that indicates that annotation is to be ignored, not included + in resolved bean information.
INCLUDE_AND_INHERIT + +
+          Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes.
INCLUDE_AND_INHERIT_IF_INHERITED + +
+          Value that indicates that annotation is to be included in results, and + values from overridden members are inherited only if the annotation is + marked with the Inherited annotation.
INCLUDE_BUT_DONT_INHERIT + +
+          Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationInclusionvalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+DONT_INCLUDE

+
+public static final AnnotationInclusion DONT_INCLUDE
+
+
Value that indicates that annotation is to be ignored, not included + in resolved bean information. + Applicable to all member types. +

+

+
+
+
+ +

+INCLUDE_BUT_DONT_INHERIT

+
+public static final AnnotationInclusion INCLUDE_BUT_DONT_INHERIT
+
+
Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes. + Applicable only to member methods; if used with other members will + mean basic inclusion. +

+

+
+
+
+ +

+INCLUDE_AND_INHERIT_IF_INHERITED

+
+public static final AnnotationInclusion INCLUDE_AND_INHERIT_IF_INHERITED
+
+
Value that indicates that annotation is to be included in results, and + values from overridden members are inherited only if the annotation is + marked with the Inherited annotation. + Applicable only to member methods; if used with other members will + mean basic inclusion. +

+

+
+
+
+ +

+INCLUDE_AND_INHERIT

+
+public static final AnnotationInclusion INCLUDE_AND_INHERIT
+
+
Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes. + Note that inheritance only matters with member methods; for other types + it just means "include". +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static AnnotationInclusion[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (AnnotationInclusion c : AnnotationInclusion.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static AnnotationInclusion valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..9e3193d --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,344 @@ + + + + + + + +AnnotationOverrides.StdBuilder (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdBuilder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdBuilder
extends Object
+ + +

+To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ AnnotationOverrides.StdBuilderadd(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderadd(ClassKey target, + Class<?> mixin) + +
+           
+ AnnotationOverridesbuild() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdBuilder

+
+public AnnotationOverrides.StdBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(Class<?> target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+add

+
+public AnnotationOverrides.StdBuilder add(ClassKey target,
+                                          Class<?> mixin)
+
+
+
+
+
+
+ +

+build

+
+public AnnotationOverrides build()
+
+
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..e9c12a8 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html @@ -0,0 +1,335 @@ + + + + + + + +AnnotationOverrides.StdImpl (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides.StdImpl

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+      extended by com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Enclosing class:
AnnotationOverrides
+
+
+
+
public static class AnnotationOverrides.StdImpl
extends AnnotationOverrides
+ + +

+Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones). +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationOverrides
AnnotationOverrides.StdBuilder, AnnotationOverrides.StdImpl
+  + + + + + + + + + + + +
+Field Summary
+protected  HashMap<ClassKey,List<Class<?>>>_targetsToOverrides + +
+           
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<Class<?>>mixInsFor(ClassKey target) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.AnnotationOverrides
builder, mixInsFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_targetsToOverrides

+
+protected final HashMap<ClassKey,List<Class<?>>> _targetsToOverrides
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides.StdImpl

+
+public AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides)
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(ClassKey target)
+
+
+
Specified by:
mixInsFor in class AnnotationOverrides
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.html b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.html new file mode 100644 index 0000000..a81f96b --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/AnnotationOverrides.html @@ -0,0 +1,351 @@ + + + + + + + +AnnotationOverrides (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class AnnotationOverrides

+
+java.lang.Object
+  extended by com.fasterxml.classmate.AnnotationOverrides
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Direct Known Subclasses:
AnnotationOverrides.StdImpl
+
+
+
+
public abstract class AnnotationOverrides
extends Object
implements Serializable
+ + +

+Interface for object that can provide mix-ins to override annotations. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classAnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  + + + + + + + + + + +
+Constructor Summary
AnnotationOverrides() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static AnnotationOverrides.StdBuilderbuilder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+ List<Class<?>>mixInsFor(Class<?> beanClass) + +
+          Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
+abstract  List<Class<?>>mixInsFor(ClassKey beanClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnnotationOverrides

+
+public AnnotationOverrides()
+
+
+ + + + + + + + +
+Method Detail
+ +

+mixInsFor

+
+public List<Class<?>> mixInsFor(Class<?> beanClass)
+
+
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +

+

+
+
+
+ +
Returns:
List of mix-in sources (starting with highest priority); + can be null or empty list if no mix-ins are to be used.
+
+
+
+ +

+mixInsFor

+
+public abstract List<Class<?>> mixInsFor(ClassKey beanClass)
+
+
+
+
+
+
+
+
+
+ +

+builder

+
+public static AnnotationOverrides.StdBuilder builder()
+
+
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/Annotations.html b/javadoc/0.8.0/com/fasterxml/classmate/Annotations.html new file mode 100644 index 0000000..186614d --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/Annotations.html @@ -0,0 +1,435 @@ + + + + + + + +Annotations (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class Annotations

+
+java.lang.Object
+  extended by com.fasterxml.classmate.Annotations
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class Annotations
extends Object
implements Serializable
+ + +

+Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors). +

+ +

+

+
Author:
+
tatu
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  HashMap<Class<? extends Annotation>,Annotation>_annotations + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Annotations() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(Annotation override) + +
+          Method for adding specified annotation, overriding existing value + for the annotation type.
+ voidaddAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+ voidaddAsDefault(Annotation defValue) + +
+          Method for adding specified annotation if and only if no value + exists for the annotation type.
+ + + + + +
+<A extends Annotation> +
+A
+
get(Class<A> cls) + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_annotations

+
+protected HashMap<Class<? extends Annotation>,Annotation> _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Annotations

+
+public Annotations()
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public void add(Annotation override)
+
+
Method for adding specified annotation, overriding existing value + for the annotation type. +

+

+
+
+
+
+
+
+
+ +

+addAll

+
+public void addAll(Annotations overrides)
+
+
Method for adding all annotations from specified set, as overrides + to annotations this set has +

+

+
+
+
+
+
+
+
+ +

+addAsDefault

+
+public void addAsDefault(Annotation defValue)
+
+
Method for adding specified annotation if and only if no value + exists for the annotation type. +

+

+
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+
+
+
+ +

+get

+
+public <A extends Annotation> A get(Class<A> cls)
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/Filter.html b/javadoc/0.8.0/com/fasterxml/classmate/Filter.html new file mode 100644 index 0000000..43e3ba5 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/Filter.html @@ -0,0 +1,212 @@ + + + + + + + +Filter (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Interface Filter<T>

+
+
+
public interface Filter<T>
+ + +

+Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ booleaninclude(T element) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+include

+
+boolean include(T element)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/GenericType.html b/javadoc/0.8.0/com/fasterxml/classmate/GenericType.html new file mode 100644 index 0000000..4e658d8 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/GenericType.html @@ -0,0 +1,248 @@ + + + + + + + +GenericType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class GenericType<T>

+
+java.lang.Object
+  extended by com.fasterxml.classmate.GenericType<T>
+
+
+
All Implemented Interfaces:
Serializable, Type
+
+
+
+
public abstract class GenericType<T>
extends Object
implements Serializable, Type
+ + +

+This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects). + It is based on ideas from + http://gafter.blogspot.com/2006/12/super-type-tokens.html, +

+ Usage is by sub-classing: here is one way to instantiate reference + to generic type List<Integer>: +

+  GenericType type = new GenericType<List<Integer>>() { };
+
+ which can be passed to methods that accept GenericReference. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected GenericType() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GenericType

+
+protected GenericType()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/MemberResolver.html b/javadoc/0.8.0/com/fasterxml/classmate/MemberResolver.html new file mode 100644 index 0000000..d2c2943 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/MemberResolver.html @@ -0,0 +1,543 @@ + + + + + + + +MemberResolver (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class MemberResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.MemberResolver
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class MemberResolver
extends Object
implements Serializable
+ + +

+Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes). +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_cfgIncludeLangObject + +
+          Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>_fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>_methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+protected  TypeResolver_typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  + + + + + + + + + + +
+Constructor Summary
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  void_gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+ ResolvedTypeWithMembersresolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ MemberResolversetConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolversetFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolversetIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolversetMethodFilter(Filter<RawMethod> f) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +

+

+
+
+
+ +

+_cfgIncludeLangObject

+
+protected boolean _cfgIncludeLangObject
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+MemberResolver

+
+public MemberResolver(TypeResolver typeResolver)
+
+
Constructor for resolver that does not include java.lang.Object + in type hierarchy +

+

+ + + + + + + + +
+Method Detail
+ +

+setIncludeLangObject

+
+public MemberResolver setIncludeLangObject(boolean state)
+
+
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +

+

+
+
+
+
+
+
+
+ +

+setFieldFilter

+
+public MemberResolver setFieldFilter(Filter<RawField> f)
+
+
+
+
+
+
+
+
+
+ +

+setMethodFilter

+
+public MemberResolver setMethodFilter(Filter<RawMethod> f)
+
+
+
+
+
+
+
+
+
+ +

+setConstructorFilter

+
+public MemberResolver setConstructorFilter(Filter<RawConstructor> f)
+
+
+
+
+
+
+
+
+
+ +

+resolve

+
+public ResolvedTypeWithMembers resolve(ResolvedType mainType,
+                                       AnnotationConfiguration annotationConfig,
+                                       AnnotationOverrides annotationOverrides)
+
+
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +

+

+
+
+
+
Parameters:
mainType - Resolved type that is the starting point (i.e. the leaf class) + for member resolution.
annotationConfig - Configuration of annotation types; which ones to include, how to inherit
annotationOverrides - Definitions of annotation overrides to use, if any (may be null)
+
+
+
+ +

+_gatherTypes

+
+protected void _gatherTypes(ResolvedType currentType,
+                            Set<ClassKey> seenTypes,
+                            List<ResolvedType> types)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/ResolvedType.html b/javadoc/0.8.0/com/fasterxml/classmate/ResolvedType.html new file mode 100644 index 0000000..56855da --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/ResolvedType.html @@ -0,0 +1,1341 @@ + + + + + + + +ResolvedType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+
+
+
All Implemented Interfaces:
Type
+
+
+
Direct Known Subclasses:
ResolvedArrayType, ResolvedInterfaceType, ResolvedObjectType, ResolvedPrimitiveType, ResolvedRecursiveType, TypePlaceHolder
+
+
+
+
public abstract class ResolvedType
extends Object
implements Type
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Class<?>_erasedType + +
+           
+protected  TypeBindings_typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+protected static RawConstructor[]NO_CONSTRUCTORS + +
+           
+protected static RawField[]NO_FIELDS + +
+           
+protected static RawMethod[]NO_METHODS + +
+           
+static ResolvedType[]NO_TYPES + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringBuilder_appendClassDescription(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassName(StringBuilder sb) + +
+           
+protected  StringBuilder_appendClassSignature(StringBuilder sb) + +
+           
+protected  StringBuilder_appendErasedClassSignature(StringBuilder sb) + +
+           
+protected  RawConstructor[]_getConstructors() + +
+           
+protected  RawField[]_getFields(boolean statics) + +
+           
+protected  RawMethod[]_getMethods(boolean statics) + +
+           
+abstract  StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+abstract  StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+abstract  StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtype(Class<?> subtype) + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
+abstract  booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetBriefDescription() + +
+          Human-readable brief description of type, which does not include + information about super types.
+ List<RawConstructor>getConstructors() + +
+           
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ Class<?>getErasedType() + +
+          Returns type-erased Class that this resolved type has.
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+abstract  List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+abstract  ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ TypeBindingsgetTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ List<ResolvedType>getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ inthashCode() + +
+           
+abstract  booleanisAbstract() + +
+           
+abstract  booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisConcrete() + +
+           
+ booleanisInstanceOf(Class<?> type) + +
+           
+abstract  booleanisInterface() + +
+           
+abstract  booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ StringtoString() + +
+           
+ List<ResolvedType>typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_TYPES

+
+public static final ResolvedType[] NO_TYPES
+
+
+
+
+
+ +

+NO_CONSTRUCTORS

+
+protected static final RawConstructor[] NO_CONSTRUCTORS
+
+
+
+
+
+ +

+NO_FIELDS

+
+protected static final RawField[] NO_FIELDS
+
+
+
+
+
+ +

+NO_METHODS

+
+protected static final RawMethod[] NO_METHODS
+
+
+
+
+
+ +

+_erasedType

+
+protected final Class<?> _erasedType
+
+
+
+
+
+ +

+_typeBindings

+
+protected final TypeBindings _typeBindings
+
+
Type bindings active when resolving members (methods, fields, + constructors) of this type +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedType

+
+protected ResolvedType(Class<?> cls,
+                       TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public abstract boolean canCreateSubtypes()
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
+
+
+
+
+
+
+ +

+canCreateSubtype

+
+public final boolean canCreateSubtype(Class<?> subtype)
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +

+

+
+
+
+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
Returns type-erased Class that this resolved type has. +

+

+
+
+
+
+
+
+
+ +

+getParentClass

+
+public abstract ResolvedType getParentClass()
+
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public abstract ResolvedType getSelfReferencedType()
+
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public abstract ResolvedType getArrayElementType()
+
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public abstract List<ResolvedType> getImplementedInterfaces()
+
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Returns list of generic type declarations for this type, in order they + are declared in class description. +

+

+
+
+
+
+
+
+
+ +

+getTypeBindings

+
+public TypeBindings getTypeBindings()
+
+
Method for accessing bindings of type variables to resolved types in context + of this type. It has same number of entries as return List of + getTypeParameters(), accessible using declared name to which they + bind; for example, Map has 2 type bindings; one for + key type (name "K", from Map.java) and one for value type + (name "V", from Map.java). +

+

+
+
+
+
+
+
+
+ +

+typeParametersFor

+
+public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
+
+
Method that will try to find type parameterization this type + has for specified super type +

+

+
+
+
+ +
Returns:
List of type parameters for specified supertype (which may + be empty, if supertype is not a parametric type); null if specified + type is not a super type of this type
+
+
+
+ +

+findSupertype

+
+public ResolvedType findSupertype(Class<?> erasedSupertype)
+
+
Method for finding super type of this type that has specified type + erased signature. If supertype is an interface which is implemented + using multiple inheritance paths, preference is given to interfaces + implemented "highest up the stack" (directly implemented interfaces + over interfaces superclass implements). +

+

+
+
+
+
+
+
+
+ +

+isInterface

+
+public abstract boolean isInterface()
+
+
+
+
+
+
+
+
+
+ +

+isConcrete

+
+public final boolean isConcrete()
+
+
+
+
+
+
+
+
+
+ +

+isAbstract

+
+public abstract boolean isAbstract()
+
+
+
+
+
+
+
+
+
+ +

+isArray

+
+public abstract boolean isArray()
+
+
Method that indicates whether this type is an array type. +

+

+
+
+
+
+
+
+
+ +

+isPrimitive

+
+public abstract boolean isPrimitive()
+
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
+
+
+
+
+
+
+ +

+isInstanceOf

+
+public final boolean isInstanceOf(Class<?> type)
+
+
+
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
+
+
+
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
+
+
+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
+
+
+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
+
+
+
+
+
+
+ +

+getBriefDescription

+
+public String getBriefDescription()
+
+
Human-readable brief description of type, which does not include + information about super types. +

+

+
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public abstract StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public abstract StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+appendSignature

+
+public abstract StringBuilder appendSignature(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public abstract StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+_appendClassSignature

+
+protected StringBuilder _appendClassSignature(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+_appendErasedClassSignature

+
+protected StringBuilder _appendErasedClassSignature(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+_appendClassDescription

+
+protected StringBuilder _appendClassDescription(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+_appendClassName

+
+protected StringBuilder _appendClassName(StringBuilder sb)
+
+
+
+
+
+
+
+
+
+ +

+_getFields

+
+protected RawField[] _getFields(boolean statics)
+
+
+
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getMethods

+
+protected RawMethod[] _getMethods(boolean statics)
+
+
+
+
+
+
Parameters:
statics - Whether to return static methods (true) or member methods (false)
+
+
+
+ +

+_getConstructors

+
+protected RawConstructor[] _getConstructors()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/ResolvedTypeWithMembers.html b/javadoc/0.8.0/com/fasterxml/classmate/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..416d35a --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/ResolvedTypeWithMembers.html @@ -0,0 +1,849 @@ + + + + + + + +ResolvedTypeWithMembers (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class ResolvedTypeWithMembers

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
+
+
public class ResolvedTypeWithMembers
extends Object
+ + +

+Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations"). + Instances are created by MemberResolver. +

+ Note that instances are not thread-safe, as the expectation is that instances + will not be shared (unlike raw members or resolved types) +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler_annotationHandler + +
+          Handler for resolving annotation information
+protected  Filter<RawConstructor>_constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  ResolvedConstructor[]_constructors + +
+           
+protected  Filter<RawField>_fieldFilter + +
+          Filter to use for selecting fields to include
+protected  HierarchicType_mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  ResolvedField[]_memberFields + +
+           
+protected  ResolvedMethod[]_memberMethods + +
+           
+protected  Filter<RawMethod>_methodFilter + +
+          Filter to use for selecting methods to include
+protected  ResolvedMethod[]_staticMethods + +
+           
+protected  TypeResolver_typeResolver + +
+          Need to be able to resolve member types still
+protected  HierarchicType[]_types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+protected static AnnotationConfigurationDEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<HierarchicType>allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ ResolvedConstructor[]getConstructors() + +
+           
+ ResolvedField[]getMemberFields() + +
+           
+ ResolvedMethod[]getMemberMethods() + +
+           
+ ResolvedMethod[]getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+ List<HierarchicType>mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+protected  booleanmethodCanInherit(Annotation annotation) + +
+           
+ List<HierarchicType>overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+protected  ResolvedConstructorresolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+protected  ResolvedFieldresolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+protected  ResolvedMethod[]resolveMemberMethods() + +
+           
+protected  ResolvedMethodresolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_ANNOTATION_CONFIG

+
+protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
+
+
Default annotation configuration is to ignore all annotations types. +

+

+
+
+
+ +

+_typeResolver

+
+protected final TypeResolver _typeResolver
+
+
Need to be able to resolve member types still +

+

+
+
+
+ +

+_annotationHandler

+
+protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
+
+
Handler for resolving annotation information +

+

+
+
+
+ +

+_mainType

+
+protected final HierarchicType _mainType
+
+
Leaf of the type hierarchy, i.e. type from which this hierarchy + was generated. +

+

+
+
+
+ +

+_types

+
+protected final HierarchicType[] _types
+
+
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +

+

+
+
+
+ +

+_fieldFilter

+
+protected Filter<RawField> _fieldFilter
+
+
Filter to use for selecting fields to include +

+

+
+
+
+ +

+_constructorFilter

+
+protected Filter<RawConstructor> _constructorFilter
+
+
Filter to use for selecting constructors to include +

+

+
+
+
+ +

+_methodFilter

+
+protected Filter<RawMethod> _methodFilter
+
+
Filter to use for selecting methods to include +

+

+
+
+
+ +

+_staticMethods

+
+protected ResolvedMethod[] _staticMethods
+
+
+
+
+
+ +

+_memberMethods

+
+protected ResolvedMethod[] _memberMethods
+
+
+
+
+
+ +

+_memberFields

+
+protected ResolvedField[] _memberFields
+
+
+
+
+
+ +

+_constructors

+
+protected ResolvedConstructor[] _constructors
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeWithMembers

+
+public ResolvedTypeWithMembers(TypeResolver typeResolver,
+                               AnnotationConfiguration annotationConfig,
+                               HierarchicType mainType,
+                               HierarchicType[] types,
+                               Filter<RawConstructor> constructorFilter,
+                               Filter<RawField> fieldFilter,
+                               Filter<RawMethod> methodFilter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+allTypesAndOverrides

+
+public List<HierarchicType> allTypesAndOverrides()
+
+
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +

+

+
+
+
+
+ +

+mainTypeAndOverrides

+
+public List<HierarchicType> mainTypeAndOverrides()
+
+
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +

+

+
+
+
+
+ +

+overridesOnly

+
+public List<HierarchicType> overridesOnly()
+
+
Accessor for finding just overrides for the main type (if any). +

+

+
+
+
+
+ +

+getStaticMethods

+
+public ResolvedMethod[] getStaticMethods()
+
+
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +

+

+
+
+
+
+ +

+getMemberFields

+
+public ResolvedField[] getMemberFields()
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public ResolvedMethod[] getMemberMethods()
+
+
+
+
+
+
+ +

+getConstructors

+
+public ResolvedConstructor[] getConstructors()
+
+
+
+
+
+
+ +

+resolveConstructors

+
+protected ResolvedConstructor[] resolveConstructors()
+
+
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +

+

+
+
+
+
+ +

+resolveMemberFields

+
+protected ResolvedField[] resolveMemberFields()
+
+
Method for fully resolving field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in. +

+

+
+
+
+
+ +

+resolveStaticMethods

+
+protected ResolvedMethod[] resolveStaticMethods()
+
+
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +

+

+
+
+
+
+ +

+resolveMemberMethods

+
+protected ResolvedMethod[] resolveMemberMethods()
+
+
+
+
+
+
+ +

+resolveConstructor

+
+protected ResolvedConstructor resolveConstructor(RawConstructor raw)
+
+
Method for resolving individual constructor completely +

+

+
+
+
+
+ +

+resolveField

+
+protected ResolvedField resolveField(RawField raw)
+
+
Method for resolving individual field completely +

+

+
+
+
+
+ +

+resolveMethod

+
+protected ResolvedMethod resolveMethod(RawMethod raw)
+
+
Method for resolving individual method completely +

+

+
+
+
+
+ +

+methodCanInherit

+
+protected boolean methodCanInherit(Annotation annotation)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/TypeBindings.html b/javadoc/0.8.0/com/fasterxml/classmate/TypeBindings.html new file mode 100644 index 0000000..18f015d --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/TypeBindings.html @@ -0,0 +1,501 @@ + + + + + + + +TypeBindings (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeBindings

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeBindings
+
+
+
+
public final class TypeBindings
extends Object
+ + +

+Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static TypeBindingscreate(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingscreate(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsemptyBindings() + +
+           
+ booleanequals(Object o) + +
+           
+ ResolvedTypefindBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ StringgetBoundName(int index) + +
+           
+ ResolvedTypegetBoundType(int index) + +
+           
+ List<ResolvedType>getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ inthashCode() + +
+           
+ booleanisEmpty() + +
+           
+ intsize() + +
+          Returns number of bindings contained
+ StringtoString() + +
+           
+protected  ResolvedType[]typeParameterArray() + +
+           
+ TypeBindingswithAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyBindings

+
+public static TypeBindings emptyBindings()
+
+
+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  List<ResolvedType> typeList)
+
+
Factory method for constructing bindings for given class using specified type + parameters. +

+

+
+
+
+
+ +

+create

+
+public static TypeBindings create(Class<?> erasedType,
+                                  ResolvedType[] types)
+
+
+
+
+
+
+ +

+withAdditionalBinding

+
+public TypeBindings withAdditionalBinding(String name,
+                                          ResolvedType type)
+
+
Method for creating an instance that has same bindings as this object, + plus one additional binding +

+

+
+
+
+
+ +

+findBoundType

+
+public ResolvedType findBoundType(String name)
+
+
Find type bound to specified name, if there is one; returns bound type if so, null if not. +

+

+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
Returns number of bindings contained +

+

+
+
+
+
+ +

+getBoundName

+
+public String getBoundName(int index)
+
+
+
+
+
+
+ +

+getBoundType

+
+public ResolvedType getBoundType(int index)
+
+
+
+
+
+
+ +

+getTypeParameters

+
+public List<ResolvedType> getTypeParameters()
+
+
Accessor for getting bound types in declaration order +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+typeParameterArray

+
+protected ResolvedType[] typeParameterArray()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/TypeResolver.html b/javadoc/0.8.0/com/fasterxml/classmate/TypeResolver.html new file mode 100644 index 0000000..9a4e070 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/TypeResolver.html @@ -0,0 +1,499 @@ + + + + + + + +TypeResolver (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate +
+Class TypeResolver

+
+java.lang.Object
+  extended by com.fasterxml.classmate.TypeResolver
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class TypeResolver
extends Object
implements Serializable
+ + +

+Object that is used for resolving generic type information of a class + so that it is accessible using simple API. Resolved types are also starting + point for accessing resolved (generics aware) return and argument types + of class members (methods, fields, constructors). +

+ Note that resolver instances are stateful in that resolvers cache resolved + types for efficiency. Since this is internal state and not directly visible + to callers, access to state is fully synchronized so that access from + multiple threads is safe. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected static HashMap<ClassKey,ResolvedType>_primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  ResolvedTypeCache_resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  + + + + + + + + + + +
+Constructor Summary
TypeResolver() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedArrayTypearrayType(Type elementType) + +
+          Factory method for constructing array type of given element type.
+static booleanisSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTyperesolve(TypeBindings typeBindings, + Type jdkType) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTyperesolve(Type type, + Type... typeParameters) + +
+          Factory method for resolving given base type + using specified types as type parameters.
+ ResolvedTyperesolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_primitiveTypes

+
+protected static final HashMap<ClassKey,ResolvedType> _primitiveTypes
+
+
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. Same goes for limited number + of other "standard" types... +

+

+
+
+
+ +

+_resolvedTypes

+
+protected final ResolvedTypeCache _resolvedTypes
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypeResolver

+
+public TypeResolver()
+
+
+ + + + + + + + +
+Method Detail
+ +

+resolve

+
+public ResolvedType resolve(Type type,
+                            Type... typeParameters)
+
+
Factory method for resolving given base type + using specified types as type parameters. + Sample usage would be: +
+  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
+
+ which would be equivalent to +
+  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
+
+ Note that you can mix different types of type parameters, whether already + resolved (ResolvedType), type-erased (Class) or + generic type reference (GenericType). +

+

+
+
+
+
+
+
+
+ +

+arrayType

+
+public ResolvedArrayType arrayType(Type elementType)
+
+
Factory method for constructing array type of given element type. +

+

+
+
+
+
+
+
+
+ +

+resolve

+
+public ResolvedType resolve(TypeBindings typeBindings,
+                            Type jdkType)
+
+
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +

+ Use of this method is discouraged (use if and only if you really know what you + are doing!); but if used, type bindings passed should come from ResolvedType + instance of declaring class (or interface). +

+ NOTE: order of arguments was reversed for 0.8, to avoid problems with + overload varargs method. +

+

+
+
+
+
+
+
+
+ +

+resolveSubtype

+
+public ResolvedType resolveSubtype(ResolvedType supertype,
+                                   Class<?> subtype)
+                            throws IllegalArgumentException,
+                                   UnsupportedOperationException
+
+
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +

+ A typical use case here is to refine a generic type; for example, given + that we have generic type like List<Integer>, but we want + a more specific implementation type like + class ArrayList but with same parameterization (here just Integer), + we could achieve it by: +

+  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
+  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
+
+ (in this case, it would have been simpler to resolve directly; but in some + cases we are handled supertype and want to refine it, in which case steps + would be the same but separated by other code) +

+ Note that this method will fail if extension can not succeed; either because + this type is not extendable (sub-classable) -- which is true for primitive + and array types -- or because given class is not a subtype of this type. + To check whether subtyping could succeed, you can call + ResolvedType.canCreateSubtypes() to see if supertype can ever + be extended. +

+

+
+
+
+
Parameters:
supertype - Type to subtype (extend)
subtype - Type-erased sub-class or sub-interface +
Returns:
Resolved subtype +
Throws: +
IllegalArgumentException - If this type can be extended in general, but not into specified sub-class +
UnsupportedOperationException - If this type can not be sub-classed
+
+
+
+ +

+isSelfReference

+
+public static boolean isSelfReference(ResolvedType type)
+
+
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..f85c49a --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration

+
+No usage of com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.html new file mode 100644 index 0000000..18f6dc1 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationConfiguration.html @@ -0,0 +1,240 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationConfiguration

+
+ + + + + + + + + +
+Packages that use AnnotationConfiguration
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationConfiguration in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationConfiguration in com.fasterxml.classmate
+static classAnnotationConfiguration.StdConfiguration + +
+          Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationConfiguration
+protected static AnnotationConfigurationResolvedTypeWithMembers.DEFAULT_ANNOTATION_CONFIG + +
+          Default annotation configuration is to ignore all annotations types.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationConfiguration
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationConfiguration
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationInclusion.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationInclusion.html new file mode 100644 index 0000000..5ab94fa --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationInclusion.html @@ -0,0 +1,330 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationInclusion (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationInclusion

+
+ + + + + + + + + +
+Packages that use AnnotationInclusion
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationInclusion in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._defaultInclusion + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type AnnotationInclusion
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationInclusion
+protected  AnnotationInclusionAnnotationConfiguration.StdConfiguration._inclusionFor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForClass(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForConstructor(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForField(Class<? extends Annotation> annotationType) + +
+           
+abstract  AnnotationInclusionAnnotationConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+          Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+ AnnotationInclusionAnnotationConfiguration.StdConfiguration.getInclusionForMethod(Class<? extends Annotation> annotationType) + +
+           
+static AnnotationInclusionAnnotationInclusion.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static AnnotationInclusion[]AnnotationInclusion.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationInclusion
+ voidAnnotationConfiguration.StdConfiguration.setInclusion(Class<? extends Annotation> annotationType, + AnnotationInclusion incl) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type AnnotationInclusion
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..235c02c --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdBuilder (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdBuilder

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides.StdBuilder
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides.StdBuilder in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides.StdBuilder
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(Class<?> target, + Class<?> mixin) + +
+           
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+static AnnotationOverrides.StdBuilderAnnotationOverrides.builder() + +
+          Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..f907cac --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdImpl (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdImpl

+
+No usage of com.fasterxml.classmate.AnnotationOverrides.StdImpl +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.html new file mode 100644 index 0000000..92aa831 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/AnnotationOverrides.html @@ -0,0 +1,221 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.AnnotationOverrides

+
+ + + + + + + + + +
+Packages that use AnnotationOverrides
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of AnnotationOverrides in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Subclasses of AnnotationOverrides in com.fasterxml.classmate
+static classAnnotationOverrides.StdImpl + +
+          Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return AnnotationOverrides
+ AnnotationOverridesAnnotationOverrides.StdBuilder.build() + +
+          Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type AnnotationOverrides
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/Annotations.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/Annotations.html new file mode 100644 index 0000000..3a087fb --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/Annotations.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.Annotations (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.Annotations

+
+ + + + + + + + + + + + + +
+Packages that use Annotations
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Annotations
+ voidAnnotations.addAll(Annotations overrides) + +
+          Method for adding all annotations from specified set, as overrides + to annotations this set has
+  +

+ + + + + +
+Uses of Annotations in com.fasterxml.classmate.members
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as Annotations
+protected  AnnotationsResolvedMember._annotations + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.members with parameters of type Annotations
+ voidResolvedMember.applyOverrides(Annotations overrides) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type Annotations
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/Filter.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/Filter.html new file mode 100644 index 0000000..c1fad6f --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/Filter.html @@ -0,0 +1,307 @@ + + + + + + + +Uses of Interface com.fasterxml.classmate.Filter (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
com.fasterxml.classmate.Filter

+
+ + + + + + + + + +
+Packages that use Filter
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of Filter in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as Filter
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type Filter
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type Filter
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/GenericType.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/GenericType.html new file mode 100644 index 0000000..a7e2647 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/GenericType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.GenericType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.GenericType

+
+No usage of com.fasterxml.classmate.GenericType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/MemberResolver.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/MemberResolver.html new file mode 100644 index 0000000..daa1c3c --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/MemberResolver.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.MemberResolver (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.MemberResolver

+
+ + + + + + + + + +
+Packages that use MemberResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of MemberResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return MemberResolver
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+ MemberResolverMemberResolver.setIncludeLangObject(boolean state) + +
+          Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedType.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedType.html new file mode 100644 index 0000000..c17163b --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedType.html @@ -0,0 +1,1190 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedType

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use ResolvedType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedType
+static ResolvedType[]ResolvedType.NO_TYPES + +
+           
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ResolvedType
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedType
+ ResolvedTypeTypeBindings.findBoundType(String name) + +
+          Find type bound to specified name, if there is one; returns bound type if so, null if not.
+ ResolvedTypeResolvedType.findSupertype(Class<?> erasedSupertype) + +
+          Method for finding super type of this type that has specified type + erased signature.
+abstract  ResolvedTypeResolvedType.getArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ ResolvedTypeTypeBindings.getBoundType(int index) + +
+           
+abstract  ResolvedTypeResolvedType.getParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+abstract  ResolvedTypeResolvedType.getSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ ResolvedTypeTypeResolver.resolve(TypeBindings typeBindings, + Type jdkType) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+ ResolvedTypeTypeResolver.resolve(Type type, + Type... typeParameters) + +
+          Factory method for resolving given base type + using specified types as type parameters.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+protected  ResolvedType[]TypeBindings.typeParameterArray() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type ResolvedType
+abstract  List<ResolvedType>ResolvedType.getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<ResolvedType>TypeBindings.getTypeParameters() + +
+          Accessor for getting bound types in declaration order
+ List<ResolvedType>ResolvedType.getTypeParameters() + +
+          Returns list of generic type declarations for this type, in order they + are declared in class description.
+ List<ResolvedType>ResolvedType.typeParametersFor(Class<?> erasedSupertype) + +
+          Method that will try to find type parameterization this type + has for specified super type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static booleanTypeResolver.isSelfReference(ResolvedType type) + +
+          Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+ ResolvedTypeTypeResolver.resolveSubtype(ResolvedType supertype, + Class<?> subtype) + +
+          Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype).
+ TypeBindingsTypeBindings.withAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+  +

+ + + + + + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ResolvedType
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.members declared as ResolvedType
+protected  ResolvedType[]ResolvedMethod._argumentTypes + +
+           
+protected  ResolvedType[]ResolvedConstructor._argumentTypes + +
+           
+protected  ResolvedTypeResolvedMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeRawMember._declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+protected  ResolvedTypeResolvedMethod._returnType + +
+           
+protected  ResolvedTypeResolvedField._type + +
+           
+protected  ResolvedTypeHierarchicType._type + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return ResolvedType
+ ResolvedTypeResolvedMethod.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedConstructor.getArgumentType(int index) + +
+           
+ ResolvedTypeResolvedMember.getDeclaringType() + +
+           
+ ResolvedTypeRawMember.getDeclaringType() + +
+           
+ ResolvedTypeResolvedMethod.getReturnType() + +
+           
+ ResolvedTypeResolvedMethod.getType() + +
+           
+abstract  ResolvedTypeResolvedMember.getType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ ResolvedTypeResolvedField.getType() + +
+           
+ ResolvedTypeResolvedConstructor.getType() + +
+           
+ ResolvedTypeHierarchicType.getType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.members with parameters of type ResolvedType
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
RawField(ResolvedType context, + Field field) + +
+           
RawMember(ResolvedType context) + +
+           
RawMethod(ResolvedType context, + Method method) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of ResolvedType in com.fasterxml.classmate.types
+ classResolvedArrayType + +
+           
+ classResolvedInterfaceType + +
+           
+ classResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
+ classResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+ classResolvedRecursiveType + +
+          Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
+ classTypePlaceHolder + +
+          Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedType
+protected  ResolvedTypeTypePlaceHolder._actualType + +
+          Type assigned during wildcard resolution
+protected  ResolvedTypeResolvedArrayType._elementType + +
+           
+protected  ResolvedTypeResolvedRecursiveType._referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+protected  ResolvedType[]ResolvedObjectType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+protected  ResolvedType[]ResolvedInterfaceType._superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedType
+ ResolvedTypeTypePlaceHolder.actualType() + +
+           
+ ResolvedTypeTypePlaceHolder.getArrayElementType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getArrayElementType() + +
+          To avoid infinite loops, will return null type
+ ResolvedTypeResolvedPrimitiveType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedObjectType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getArrayElementType() + +
+           
+ ResolvedTypeResolvedArrayType.getArrayElementType() + +
+           
+ ResolvedTypeTypePlaceHolder.getParentClass() + +
+           
+ ResolvedTypeResolvedRecursiveType.getParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypeResolvedPrimitiveType.getParentClass() + +
+           
+ ResolvedTypeResolvedInterfaceType.getParentClass() + +
+           
+ ResolvedTypeResolvedArrayType.getParentClass() + +
+           
+ ResolvedTypeTypePlaceHolder.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedRecursiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedPrimitiveType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedObjectType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedInterfaceType.getSelfReferencedType() + +
+           
+ ResolvedTypeResolvedArrayType.getSelfReferencedType() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedType
+ List<ResolvedType>TypePlaceHolder.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedRecursiveType.getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<ResolvedType>ResolvedPrimitiveType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedObjectType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedInterfaceType.getImplementedInterfaces() + +
+           
+ List<ResolvedType>ResolvedArrayType.getImplementedInterfaces() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types with parameters of type ResolvedType
+ voidTypePlaceHolder.actualType(ResolvedType t) + +
+           
+ voidResolvedRecursiveType.setReference(ResolvedType ref) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedType
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate.types with type arguments of type ResolvedType
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
+  +

+ + + + + +
+Uses of ResolvedType in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedType
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedType
+ voidResolvedTypeCache.add(ResolvedType type) + +
+           
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate.util with parameters of type ResolvedType
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..93bcb8b --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html @@ -0,0 +1,186 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedTypeWithMembers (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.ResolvedTypeWithMembers

+
+ + + + + + + + + +
+Packages that use ResolvedTypeWithMembers
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeWithMembers in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedTypeWithMembers
+ ResolvedTypeWithMembersMemberResolver.resolve(ResolvedType mainType, + AnnotationConfiguration annotationConfig, + AnnotationOverrides annotationOverrides) + +
+          Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeBindings.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeBindings.html new file mode 100644 index 0000000..e921ff9 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeBindings.html @@ -0,0 +1,333 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeBindings (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeBindings

+
+ + + + + + + + + + + + + +
+Packages that use TypeBindings
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeBindings
+protected  TypeBindingsResolvedType._typeBindings + +
+          Type bindings active when resolving members (methods, fields, + constructors) of this type
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return TypeBindings
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + List<ResolvedType> typeList) + +
+          Factory method for constructing bindings for given class using specified type + parameters.
+static TypeBindingsTypeBindings.create(Class<?> erasedType, + ResolvedType[] types) + +
+           
+static TypeBindingsTypeBindings.emptyBindings() + +
+           
+ TypeBindingsResolvedType.getTypeBindings() + +
+          Method for accessing bindings of type variables to resolved types in context + of this type.
+ TypeBindingsTypeBindings.withAdditionalBinding(String name, + ResolvedType type) + +
+          Method for creating an instance that has same bindings as this object, + plus one additional binding
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type TypeBindings
+ ResolvedTypeTypeResolver.resolve(TypeBindings typeBindings, + Type jdkType) + +
+          Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+  +

+ + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeBindings
ResolvedType(Class<?> cls, + TypeBindings bindings) + +
+           
+  +

+ + + + + +
+Uses of TypeBindings in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type TypeBindings
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedType elementType) + +
+           
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeResolver.html b/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeResolver.html new file mode 100644 index 0000000..57a67e7 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/class-use/TypeResolver.html @@ -0,0 +1,218 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.TypeResolver (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.TypeResolver

+
+ + + + + + + + + +
+Packages that use TypeResolver
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of TypeResolver in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as TypeResolver
+protected  TypeResolverResolvedTypeWithMembers._typeResolver + +
+          Need to be able to resolve member types still
+protected  TypeResolverMemberResolver._typeResolver + +
+          Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type TypeResolver
MemberResolver(TypeResolver typeResolver) + +
+          Constructor for resolver that does not include java.lang.Object + in type hierarchy
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/HierarchicType.html b/javadoc/0.8.0/com/fasterxml/classmate/members/HierarchicType.html new file mode 100644 index 0000000..5c4a017 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/HierarchicType.html @@ -0,0 +1,466 @@ + + + + + + + +HierarchicType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class HierarchicType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.HierarchicType
+
+
+
+
public final class HierarchicType
extends Object
+ + +

+Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  boolean_isMixin + +
+          Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
+protected  int_priority + +
+          Relative priority of this type in hierarchy; higher priority members can override + lower priority members.
+protected  ResolvedType_type + +
+           
+  + + + + + + + + + + +
+Constructor Summary
HierarchicType(ResolvedType type, + boolean mixin, + int priority) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ Class<?>getErasedType() + +
+           
+ intgetPriority() + +
+           
+ ResolvedTypegetType() + +
+           
+ inthashCode() + +
+           
+ booleanisMixin() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_isMixin

+
+protected final boolean _isMixin
+
+
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +

+

+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+
+ +

+_priority

+
+protected final int _priority
+
+
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. Priority values are unique and are based on type index + (starting from 0), although they are not to be used for indexing. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HierarchicType

+
+public HierarchicType(ResolvedType type,
+                      boolean mixin,
+                      int priority)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public ResolvedType getType()
+
+
+
+
+
+
+ +

+getErasedType

+
+public Class<?> getErasedType()
+
+
+
+
+
+
+ +

+isMixin

+
+public boolean isMixin()
+
+
+
+
+
+
+ +

+getPriority

+
+public int getPriority()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/RawConstructor.html b/javadoc/0.8.0/com/fasterxml/classmate/members/RawConstructor.html new file mode 100644 index 0000000..c500607 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/RawConstructor.html @@ -0,0 +1,398 @@ + + + + + + + +RawConstructor (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawConstructor
+
+
+
+
public final class RawConstructor
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Constructor<?>_constructor + +
+           
+protected  int_hashCode + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawConstructor(ResolvedType context, + Constructor<?> constructor) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+ booleanequals(Object o) + +
+           
+ Constructor<?>getRawMember() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+
+ +

+_hashCode

+
+protected final int _hashCode
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawConstructor

+
+public RawConstructor(ResolvedType context,
+                      Constructor<?> constructor)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createKey

+
+public MethodKey createKey()
+
+
Although constructors are different from other methods, we can use + MethodKey easily. +

+

+
+
+
+
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Specified by:
hashCode in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/RawField.html b/javadoc/0.8.0/com/fasterxml/classmate/members/RawField.html new file mode 100644 index 0000000..151c9d5 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/RawField.html @@ -0,0 +1,395 @@ + + + + + + + +RawField (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawField
+
+
+
+
public final class RawField
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawField(ResolvedType context, + Field field) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+           
+ inthashCode() + +
+           
+ booleanisTransient() + +
+           
+ booleanisVolatile() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawField

+
+public RawField(ResolvedType context,
+                Field field)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Field getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+isTransient

+
+public boolean isTransient()
+
+
+
+
+
+
+ +

+isVolatile

+
+public boolean isVolatile()
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Specified by:
hashCode in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/RawMember.html b/javadoc/0.8.0/com/fasterxml/classmate/members/RawMember.html new file mode 100644 index 0000000..1045081 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/RawMember.html @@ -0,0 +1,543 @@ + + + + + + + +RawMember (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+
+
+
Direct Known Subclasses:
RawConstructor, RawField, RawMethod
+
+
+
+
public abstract class RawMember
extends Object
+ + +

+Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution. + Instances are typically created by ResolvedType + when requested, and form the input to eventual full flattening of type members. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected RawMember(ResolvedType context) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanequals(Object o) + +
+           
+ Annotation[]getAnnotations() + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+           
+abstract  inthashCode() + +
+           
+ booleanisFinal() + +
+           
+ booleanisPrivate() + +
+           
+ booleanisProtected() + +
+           
+ booleanisPublic() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMember

+
+protected RawMember(ResolvedType context)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+isFinal

+
+public boolean isFinal()
+
+
+
+
+
+
+ +

+isPrivate

+
+public boolean isPrivate()
+
+
+
+
+
+
+ +

+isProtected

+
+public boolean isProtected()
+
+
+
+
+
+
+ +

+isPublic

+
+public boolean isPublic()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
+
+
+
+
+ +

+equals

+
+public abstract boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public abstract int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/RawMethod.html b/javadoc/0.8.0/com/fasterxml/classmate/members/RawMethod.html new file mode 100644 index 0000000..8e56062 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/RawMethod.html @@ -0,0 +1,470 @@ + + + + + + + +RawMethod (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class RawMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.RawMember
+      extended by com.fasterxml.classmate.members.RawMethod
+
+
+
+
public final class RawMethod
extends RawMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  int_hashCode + +
+           
+protected  Method_method + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.RawMember
_declaringType
+  + + + + + + + + + + +
+Constructor Summary
RawMethod(ResolvedType context, + Method method) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ MethodKeycreateKey() + +
+           
+ booleanequals(Object o) + +
+           
+ MethodgetRawMember() + +
+           
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisNative() + +
+           
+ booleanisStrict() + +
+           
+ booleanisSynchronized() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.RawMember
getAnnotations, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+
+ +

+_hashCode

+
+protected final int _hashCode
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+RawMethod

+
+public RawMethod(ResolvedType context,
+                 Method method)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
+
Specified by:
getRawMember in class RawMember
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStrict

+
+public boolean isStrict()
+
+
+
+
+
+
+ +

+isNative

+
+public boolean isNative()
+
+
+
+
+
+
+ +

+isSynchronized

+
+public boolean isSynchronized()
+
+
+
+
+
+
+ +

+createKey

+
+public MethodKey createKey()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Specified by:
hashCode in class RawMember
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Specified by:
equals in class RawMember
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedConstructor.html b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedConstructor.html new file mode 100644 index 0000000..cc54c23 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedConstructor.html @@ -0,0 +1,472 @@ + + + + + + + +ResolvedConstructor (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedConstructor

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedConstructor
+
+
+
+
public final class ResolvedConstructor
extends ResolvedMember
+ + +

+Class that represents a constructor that has fully resolved generic + type information and annotation information. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  Constructor<?>_constructor + +
+           
+protected  int_hashCode + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedConstructor(ResolvedType context, + Annotations ann, + Constructor<?> constructor, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ Constructor<?>getRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, get, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_constructor

+
+protected final Constructor<?> _constructor
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+
+ +

+_hashCode

+
+protected final int _hashCode
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedConstructor

+
+public ResolvedConstructor(ResolvedType context,
+                           Annotations ann,
+                           Constructor<?> constructor,
+                           ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Constructor<?> getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedField.html b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedField.html new file mode 100644 index 0000000..7544c7f --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedField.html @@ -0,0 +1,465 @@ + + + + + + + +ResolvedField (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedField

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedField
+
+
+
+
public final class ResolvedField
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Field_field + +
+           
+protected  int_hashCode + +
+           
+protected  ResolvedType_type + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedField(ResolvedType context, + Annotations ann, + Field field, + ResolvedType type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ FieldgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ booleanisTransient() + +
+           
+ booleanisVolatile() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, get, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_field

+
+protected final Field _field
+
+
+
+
+
+ +

+_type

+
+protected final ResolvedType _type
+
+
+
+
+
+ +

+_hashCode

+
+protected final int _hashCode
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedField

+
+public ResolvedField(ResolvedType context,
+                     Annotations ann,
+                     Field field,
+                     ResolvedType type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Field getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+isTransient

+
+public boolean isTransient()
+
+
+
+
+
+
+ +

+isVolatile

+
+public boolean isVolatile()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMember.html b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMember.html new file mode 100644 index 0000000..3288e92 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMember.html @@ -0,0 +1,608 @@ + + + + + + + +ResolvedMember (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMember

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+
+
+
Direct Known Subclasses:
ResolvedConstructor, ResolvedField, ResolvedMethod
+
+
+
+
public abstract class ResolvedMember
extends Object
+ + +

+Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not + overridden, or filtered out) are resolved, since resolution process can add non-trivial + overhead. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  Annotations_annotations + +
+           
+protected  ResolvedType_declaringType + +
+          ResolvedType (class with generic type parameters) that declared + this member
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedMember(ResolvedType context, + Annotations ann) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidapplyDefault(Annotation override) + +
+           
+ voidapplyOverride(Annotation override) + +
+           
+ voidapplyOverrides(Annotations overrides) + +
+           
+ + + + + +
+<A extends Annotation> +
+A
+
get(Class<A> cls) + +
+           
+ ResolvedTypegetDeclaringType() + +
+           
+protected  intgetModifiers() + +
+           
+ StringgetName() + +
+           
+abstract  MembergetRawMember() + +
+          Returns JDK object that represents member.
+abstract  ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ booleanisFinal() + +
+           
+ booleanisPrivate() + +
+           
+ booleanisProtected() + +
+           
+ booleanisPublic() + +
+           
+ booleanisStatic() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_declaringType

+
+protected final ResolvedType _declaringType
+
+
ResolvedType (class with generic type parameters) that declared + this member +

+

+
+
+
+ +

+_annotations

+
+protected final Annotations _annotations
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMember

+
+protected ResolvedMember(ResolvedType context,
+                         Annotations ann)
+
+
+ + + + + + + + +
+Method Detail
+ +

+applyOverride

+
+public void applyOverride(Annotation override)
+
+
+
+
+
+
+ +

+applyOverrides

+
+public void applyOverrides(Annotations overrides)
+
+
+
+
+
+
+ +

+applyDefault

+
+public void applyDefault(Annotation override)
+
+
+
+
+
+
+ +

+get

+
+public <A extends Annotation> A get(Class<A> cls)
+
+
+
+
+
+
+ +

+getDeclaringType

+
+public final ResolvedType getDeclaringType()
+
+
+
+
+
+
+ +

+getType

+
+public abstract ResolvedType getType()
+
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
+
+
+
+ +

+getRawMember

+
+public abstract Member getRawMember()
+
+
Returns JDK object that represents member. +

+

+
+
+
+
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+isFinal

+
+public boolean isFinal()
+
+
+
+
+
+
+ +

+isPrivate

+
+public boolean isPrivate()
+
+
+
+
+
+
+ +

+isProtected

+
+public boolean isProtected()
+
+
+
+
+
+
+ +

+isPublic

+
+public boolean isPublic()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getModifiers

+
+protected final int getModifiers()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMethod.html b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMethod.html new file mode 100644 index 0000000..55ca1e6 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/ResolvedMethod.html @@ -0,0 +1,582 @@ + + + + + + + +ResolvedMethod (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.members +
+Class ResolvedMethod

+
+java.lang.Object
+  extended by com.fasterxml.classmate.members.ResolvedMember
+      extended by com.fasterxml.classmate.members.ResolvedMethod
+
+
+
+
public final class ResolvedMethod
extends ResolvedMember
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType[]_argumentTypes + +
+           
+protected  int_hashCode + +
+           
+protected  Method_method + +
+           
+protected  ResolvedType_returnType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.members.ResolvedMember
_annotations, _declaringType
+  + + + + + + + + + + +
+Constructor Summary
ResolvedMethod(ResolvedType context, + Annotations ann, + Method method, + ResolvedType returnType, + ResolvedType[] argumentTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ intgetArgumentCount() + +
+          Returns number of arguments method takes.
+ ResolvedTypegetArgumentType(int index) + +
+           
+ MethodgetRawMember() + +
+          Returns JDK object that represents member.
+ ResolvedTypegetReturnType() + +
+           
+ ResolvedTypegetType() + +
+          Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+ inthashCode() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisNative() + +
+           
+ booleanisStrict() + +
+           
+ booleanisSynchronized() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.members.ResolvedMember
applyDefault, applyOverride, applyOverrides, get, getDeclaringType, getModifiers, getName, isFinal, isPrivate, isProtected, isPublic, isStatic, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_method

+
+protected final Method _method
+
+
+
+
+
+ +

+_returnType

+
+protected final ResolvedType _returnType
+
+
+
+
+
+ +

+_argumentTypes

+
+protected final ResolvedType[] _argumentTypes
+
+
+
+
+
+ +

+_hashCode

+
+protected final int _hashCode
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedMethod

+
+public ResolvedMethod(ResolvedType context,
+                      Annotations ann,
+                      Method method,
+                      ResolvedType returnType,
+                      ResolvedType[] argumentTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRawMember

+
+public Method getRawMember()
+
+
Description copied from class: ResolvedMember
+
Returns JDK object that represents member. +

+

+
Specified by:
getRawMember in class ResolvedMember
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
+
+
+
+ +

+isStrict

+
+public boolean isStrict()
+
+
+
+
+
+
+ +

+isNative

+
+public boolean isNative()
+
+
+
+
+
+
+ +

+isSynchronized

+
+public boolean isSynchronized()
+
+
+
+
+
+
+ +

+getType

+
+public ResolvedType getType()
+
+
Description copied from class: ResolvedMember
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +

+

+
Specified by:
getType in class ResolvedMember
+
+
+
+
+
+
+ +

+getReturnType

+
+public ResolvedType getReturnType()
+
+
+
+
+
+
+ +

+getArgumentCount

+
+public int getArgumentCount()
+
+
Returns number of arguments method takes. +

+

+
+
+
+
+ +

+getArgumentType

+
+public ResolvedType getArgumentType(int index)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/HierarchicType.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/HierarchicType.html new file mode 100644 index 0000000..fdaca06 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/HierarchicType.html @@ -0,0 +1,257 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.HierarchicType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.HierarchicType

+
+ + + + + + + + + +
+Packages that use HierarchicType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of HierarchicType in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as HierarchicType
+protected  HierarchicTypeResolvedTypeWithMembers._mainType + +
+          Leaf of the type hierarchy, i.e.
+protected  HierarchicType[]ResolvedTypeWithMembers._types + +
+          All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type HierarchicType
+ List<HierarchicType>ResolvedTypeWithMembers.allTypesAndOverrides() + +
+          Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+ List<HierarchicType>ResolvedTypeWithMembers.mainTypeAndOverrides() + +
+          Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+ List<HierarchicType>ResolvedTypeWithMembers.overridesOnly() + +
+          Accessor for finding just overrides for the main type (if any).
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate with parameters of type HierarchicType
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawConstructor.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawConstructor.html new file mode 100644 index 0000000..38271f7 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawConstructor.html @@ -0,0 +1,347 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawConstructor (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawConstructor

+
+ + + + + + + + + + + + + +
+Packages that use RawConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawConstructor
+protected static RawConstructor[]ResolvedType.NO_CONSTRUCTORS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawConstructor
+protected  Filter<RawConstructor>ResolvedTypeWithMembers._constructorFilter + +
+          Filter to use for selecting constructors to include
+protected  Filter<RawConstructor>MemberResolver._constructorFilter + +
+          Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawConstructor
+protected  RawConstructor[]ResolvedType._getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedType.getConstructors() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawConstructor
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawConstructor
+ MemberResolverMemberResolver.setConstructorFilter(Filter<RawConstructor> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawConstructor
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawConstructor in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawConstructor
+protected  RawConstructor[]ResolvedObjectType._constructors + +
+          Constructors declared by the resolved Object class.
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawConstructor
+ List<RawConstructor>ResolvedRecursiveType.getConstructors() + +
+           
+ List<RawConstructor>ResolvedObjectType.getConstructors() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawField.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawField.html new file mode 100644 index 0000000..6f9811e --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawField.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawField (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawField

+
+ + + + + + + + + + + + + +
+Packages that use RawField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawField
+protected static RawField[]ResolvedType.NO_FIELDS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawField
+protected  Filter<RawField>ResolvedTypeWithMembers._fieldFilter + +
+          Filter to use for selecting fields to include
+protected  Filter<RawField>MemberResolver._fieldFilter + +
+          Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawField
+protected  RawField[]ResolvedType._getFields(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawField
+ List<RawField>ResolvedType.getMemberFields() + +
+           
+ List<RawField>ResolvedType.getStaticFields() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawField
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawField
+ MemberResolverMemberResolver.setFieldFilter(Filter<RawField> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawField
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawField in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawField
+protected  RawField[]ResolvedInterfaceType._constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawField[]ResolvedObjectType._memberFields + +
+           
+protected  RawField[]ResolvedObjectType._staticFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawField
+ List<RawField>ResolvedRecursiveType.getMemberFields() + +
+           
+ List<RawField>ResolvedObjectType.getMemberFields() + +
+           
+ List<RawField>ResolvedRecursiveType.getStaticFields() + +
+           
+ List<RawField>ResolvedObjectType.getStaticFields() + +
+           
+ List<RawField>ResolvedInterfaceType.getStaticFields() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMember.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMember.html new file mode 100644 index 0000000..7ed22c4 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMember.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMember (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMember

+
+ + + + + + + + + +
+Packages that use RawMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of RawMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of RawMember in com.fasterxml.classmate.members
+ classRawConstructor + +
+           
+ classRawField + +
+           
+ classRawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMethod.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMethod.html new file mode 100644 index 0000000..f0bf429 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/RawMethod.html @@ -0,0 +1,395 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMethod (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.RawMethod

+
+ + + + + + + + + + + + + +
+Packages that use RawMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as RawMethod
+protected static RawMethod[]ResolvedType.NO_METHODS + +
+           
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type RawMethod
+protected  Filter<RawMethod>ResolvedTypeWithMembers._methodFilter + +
+          Filter to use for selecting methods to include
+protected  Filter<RawMethod>MemberResolver._methodFilter + +
+          Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return RawMethod
+protected  RawMethod[]ResolvedType._getMethods(boolean statics) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedType.getStaticMethods() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type RawMethod
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type RawMethod
+ MemberResolverMemberResolver.setMethodFilter(Filter<RawMethod> f) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type RawMethod
ResolvedTypeWithMembers(TypeResolver typeResolver, + AnnotationConfiguration annotationConfig, + HierarchicType mainType, + HierarchicType[] types, + Filter<RawConstructor> constructorFilter, + Filter<RawField> fieldFilter, + Filter<RawMethod> methodFilter) + +
+           
+  +

+ + + + + +
+Uses of RawMethod in com.fasterxml.classmate.types
+  +

+ + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as RawMethod
+protected  RawMethod[]ResolvedObjectType._memberMethods + +
+           
+protected  RawMethod[]ResolvedInterfaceType._memberMethods + +
+          Interface methods are all public and abstract.
+protected  RawMethod[]ResolvedObjectType._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type RawMethod
+ List<RawMethod>ResolvedRecursiveType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedInterfaceType.getMemberMethods() + +
+           
+ List<RawMethod>ResolvedRecursiveType.getStaticMethods() + +
+           
+ List<RawMethod>ResolvedObjectType.getStaticMethods() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html new file mode 100644 index 0000000..0c0afb0 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedConstructor (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedConstructor

+
+ + + + + + + + + +
+Packages that use ResolvedConstructor
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedConstructor in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedConstructor
+protected  ResolvedConstructor[]ResolvedTypeWithMembers._constructors + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedConstructor
+ ResolvedConstructor[]ResolvedTypeWithMembers.getConstructors() + +
+           
+protected  ResolvedConstructorResolvedTypeWithMembers.resolveConstructor(RawConstructor raw) + +
+          Method for resolving individual constructor completely
+protected  ResolvedConstructor[]ResolvedTypeWithMembers.resolveConstructors() + +
+          Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedField.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedField.html new file mode 100644 index 0000000..75ab42f --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedField.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedField (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedField

+
+ + + + + + + + + +
+Packages that use ResolvedField
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedField in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedField
+protected  ResolvedField[]ResolvedTypeWithMembers._memberFields + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedField
+ ResolvedField[]ResolvedTypeWithMembers.getMemberFields() + +
+           
+protected  ResolvedFieldResolvedTypeWithMembers.resolveField(RawField raw) + +
+          Method for resolving individual field completely
+protected  ResolvedField[]ResolvedTypeWithMembers.resolveMemberFields() + +
+          Method for fully resolving field definitions and associated annotations.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMember.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMember.html new file mode 100644 index 0000000..f664095 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMember.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMember (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMember

+
+ + + + + + + + + +
+Packages that use ResolvedMember
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of ResolvedMember in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of ResolvedMember in com.fasterxml.classmate.members
+ classResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
+ classResolvedField + +
+           
+ classResolvedMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMethod.html b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMethod.html new file mode 100644 index 0000000..32c4fa7 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/class-use/ResolvedMethod.html @@ -0,0 +1,241 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMethod (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.members.ResolvedMethod

+
+ + + + + + + + + +
+Packages that use ResolvedMethod
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedMethod in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedMethod
+protected  ResolvedMethod[]ResolvedTypeWithMembers._memberMethods + +
+           
+protected  ResolvedMethod[]ResolvedTypeWithMembers._staticMethods + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedMethod
+ ResolvedMethod[]ResolvedTypeWithMembers.getMemberMethods() + +
+           
+ ResolvedMethod[]ResolvedTypeWithMembers.getStaticMethods() + +
+          Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveMemberMethods() + +
+           
+protected  ResolvedMethodResolvedTypeWithMembers.resolveMethod(RawMethod raw) + +
+          Method for resolving individual method completely
+protected  ResolvedMethod[]ResolvedTypeWithMembers.resolveStaticMethods() + +
+          Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/package-frame.html b/javadoc/0.8.0/com/fasterxml/classmate/members/package-frame.html new file mode 100644 index 0000000..e1db692 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/package-frame.html @@ -0,0 +1,49 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.8.0 API) + + + + + + + + + + + +com.fasterxml.classmate.members + + + + +
+Classes  + +
+HierarchicType +
+RawConstructor +
+RawField +
+RawMember +
+RawMethod +
+ResolvedConstructor +
+ResolvedField +
+ResolvedMember +
+ResolvedMethod
+ + + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/package-summary.html b/javadoc/0.8.0/com/fasterxml/classmate/members/package-summary.html new file mode 100644 index 0000000..883a001 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/package-summary.html @@ -0,0 +1,211 @@ + + + + + + + +com.fasterxml.classmate.members (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.members +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
HierarchicTypeContainer class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor 
RawField 
RawMemberBase class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMethod 
ResolvedConstructorClass that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField 
ResolvedMemberFully type-resolved equivalent of RawMember.
ResolvedMethod 
+  + +

+

+Package com.fasterxml.classmate.members Description +

+ +

+Package that contains implementations of various member types + (methods, fields, constructors) +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/package-tree.html b/javadoc/0.8.0/com/fasterxml/classmate/members/package-tree.html new file mode 100644 index 0000000..232cf56 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/package-tree.html @@ -0,0 +1,158 @@ + + + + + + + +com.fasterxml.classmate.members Class Hierarchy (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.members +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/members/package-use.html b/javadoc/0.8.0/com/fasterxml/classmate/members/package-use.html new file mode 100644 index 0000000..9893ecc --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/members/package-use.html @@ -0,0 +1,270 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.members (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.members

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.members
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate
HierarchicType + +
+          Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
ResolvedConstructor + +
+          Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedField + +
+           
ResolvedMethod + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.members
RawMember + +
+          Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
ResolvedMember + +
+          Fully type-resolved equivalent of RawMember.
+  +

+ + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate.members used by com.fasterxml.classmate.types
RawConstructor + +
+           
RawField + +
+           
RawMethod + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/package-frame.html b/javadoc/0.8.0/com/fasterxml/classmate/package-frame.html new file mode 100644 index 0000000..2238f73 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/package-frame.html @@ -0,0 +1,77 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.8.0 API) + + + + + + + + + + + +com.fasterxml.classmate + + + + +
+Interfaces  + +
+Filter
+ + + + + + +
+Classes  + +
+AnnotationConfiguration +
+AnnotationConfiguration.StdConfiguration +
+AnnotationOverrides +
+AnnotationOverrides.StdBuilder +
+AnnotationOverrides.StdImpl +
+Annotations +
+GenericType +
+MemberResolver +
+ResolvedType +
+ResolvedTypeWithMembers +
+TypeBindings +
+TypeResolver
+ + + + + + +
+Enums  + +
+AnnotationInclusion
+ + + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/package-summary.html b/javadoc/0.8.0/com/fasterxml/classmate/package-summary.html new file mode 100644 index 0000000..a1b8439 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/package-summary.html @@ -0,0 +1,273 @@ + + + + + + + +com.fasterxml.classmate (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate +

+Package that contains main public interface of ClassMate + package. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
Filter<T>Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AnnotationConfigurationInterface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration.StdConfigurationSimple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationOverridesInterface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilderTo make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdImplSimple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationsContainer class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
GenericType<T>This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
MemberResolverBuilder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType 
ResolvedTypeWithMembersClass that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindingsHelper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolverObject that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  + +

+ + + + + + + + + +
+Enum Summary
AnnotationInclusionEnumeration that defines different settings for handling behavior + of individual annotations
+  + +

+

+Package com.fasterxml.classmate Description +

+ +

+Package that contains main public interface of ClassMate + package. +

+ Most commonly resolution starts with TypeResolver, + using its resolve() method, which returns a + ResolvedType instance. + These type objects contain all necessary information about type itself; + but if type information on members (fields, methods, constructors, static + members) is needed, MemberResolver can + resolve types for members: it takes ResolvedTypes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/package-tree.html b/javadoc/0.8.0/com/fasterxml/classmate/package-tree.html new file mode 100644 index 0000000..122155c --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/package-tree.html @@ -0,0 +1,181 @@ + + + + + + + +com.fasterxml.classmate Class Hierarchy (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/package-use.html b/javadoc/0.8.0/com/fasterxml/classmate/package-use.html new file mode 100644 index 0000000..5b6277e --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/package-use.html @@ -0,0 +1,317 @@ + + + + + + + +Uses of Package com.fasterxml.classmate (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate
AnnotationConfiguration + +
+          Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationInclusion + +
+          Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides + +
+          Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides.StdBuilder + +
+          To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Filter + +
+          Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
MemberResolver + +
+          Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
ResolvedType + +
+           
ResolvedTypeWithMembers + +
+          Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
TypeResolver + +
+          Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.members
Annotations + +
+          Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
ResolvedType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.types
ResolvedType + +
+           
TypeBindings + +
+          Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate used by com.fasterxml.classmate.util
ResolvedType + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedArrayType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedArrayType.html new file mode 100644 index 0000000..6106823 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedArrayType.html @@ -0,0 +1,626 @@ + + + + + + + +ResolvedArrayType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedArrayType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedArrayType
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public final class ResolvedArrayType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_elementType + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedArrayType(Class<?> erased, + TypeBindings bindings, + ResolvedType elementType) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_elementType

+
+protected final ResolvedType _elementType
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedArrayType

+
+public ResolvedArrayType(Class<?> erased,
+                         TypeBindings bindings,
+                         ResolvedType elementType)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedInterfaceType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedInterfaceType.html new file mode 100644 index 0000000..f922f5a --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedInterfaceType.html @@ -0,0 +1,712 @@ + + + + + + + +ResolvedInterfaceType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedInterfaceType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public class ResolvedInterfaceType
extends ResolvedType
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawField[]_constantFields + +
+          Interfaces can have static final (constant) fields.
+protected  RawMethod[]_memberMethods + +
+          Interface methods are all public and abstract.
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedInterfaceType(Class<?> erased, + TypeBindings bindings, + ResolvedType[] superInterfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getSignature, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_constantFields

+
+protected RawField[] _constantFields
+
+
Interfaces can have static final (constant) fields. +

+

+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
Interface methods are all public and abstract. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedInterfaceType

+
+public ResolvedInterfaceType(Class<?> erased,
+                             TypeBindings bindings,
+                             ResolvedType[] superInterfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedObjectType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedObjectType.html new file mode 100644 index 0000000..f3e3fa0 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedObjectType.html @@ -0,0 +1,895 @@ + + + + + + + +ResolvedObjectType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedObjectType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedObjectType
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public class ResolvedObjectType
extends ResolvedType
+ + +

+Type implementation for classes that do not represent interfaces, + primitive or array types. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  RawConstructor[]_constructors + +
+          Constructors declared by the resolved Object class.
+protected  RawField[]_memberFields + +
+           
+protected  RawMethod[]_memberMethods + +
+           
+protected  int_modifiers + +
+          Modifiers of the underlying class.
+protected  RawField[]_staticFields + +
+           
+protected  RawMethod[]_staticMethods + +
+           
+protected  ResolvedObjectType_superClass + +
+           
+protected  ResolvedType[]_superInterfaces + +
+          List of interfaces this type implements; may be empty but never null
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + + + +
+Constructor Summary
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedObjectTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_superClass

+
+protected final ResolvedObjectType _superClass
+
+
+
+
+
+ +

+_superInterfaces

+
+protected final ResolvedType[] _superInterfaces
+
+
List of interfaces this type implements; may be empty but never null +

+

+
+
+
+ +

+_modifiers

+
+protected final int _modifiers
+
+
Modifiers of the underlying class. +

+

+
+
+
+ +

+_constructors

+
+protected RawConstructor[] _constructors
+
+
Constructors declared by the resolved Object class. +

+

+
+
+
+ +

+_memberFields

+
+protected RawField[] _memberFields
+
+
+
+
+
+ +

+_staticFields

+
+protected RawField[] _staticFields
+
+
+
+
+
+ +

+_memberMethods

+
+protected RawMethod[] _memberMethods
+
+
+
+
+
+ +

+_staticMethods

+
+protected RawMethod[] _staticMethods
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          List<ResolvedType> interfaces)
+
+
+
+ +

+ResolvedObjectType

+
+public ResolvedObjectType(Class<?> erased,
+                          TypeBindings bindings,
+                          ResolvedObjectType superClass,
+                          ResolvedType[] interfaces)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedObjectType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public final ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public final boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public final boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public final boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedPrimitiveType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedPrimitiveType.html new file mode 100644 index 0000000..abad771 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedPrimitiveType.html @@ -0,0 +1,779 @@ + + + + + + + +ResolvedPrimitiveType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedPrimitiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public final class ResolvedPrimitiveType
extends ResolvedType
+ + +

+Type used for Java primitive types (which does not include arrays here). +

+ Since set of primitive types is bounded, constructor is defined as protected, + and class final; that is, new primitive types are not to be constructed + by calling applications. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  String_description + +
+          Human-readable description should be simple as well
+protected  String_signature + +
+          Primitive types have single-character Signature, easy and efficient + to just store here
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + + +
+Constructor Summary
+protected ResolvedPrimitiveType(Class<?> erased, + char sig, + String desc) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static List<ResolvedPrimitiveType>all() + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ StringgetErasedSignature() + +
+          Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+ StringgetFullDescription() + +
+          Human-readable full description of type, which includes specification + of super types (in brief format)
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ StringgetSignature() + +
+          Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+static ResolvedPrimitiveTypevoidType() + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedType, getMemberFields, getMemberMethods, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_signature

+
+protected final String _signature
+
+
Primitive types have single-character Signature, easy and efficient + to just store here +

+

+
+
+
+ +

+_description

+
+protected final String _description
+
+
Human-readable description should be simple as well +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedPrimitiveType

+
+protected ResolvedPrimitiveType(Class<?> erased,
+                                char sig,
+                                String desc)
+
+
+ + + + + + + + +
+Method Detail
+ +

+all

+
+public static List<ResolvedPrimitiveType> all()
+
+
+
+
+
+
+ +

+voidType

+
+public static ResolvedPrimitiveType voidType()
+
+
+
+
+
+
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getSignature

+
+public String getSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +

+

+
Overrides:
getSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getErasedSignature

+
+public String getErasedSignature()
+
+
Description copied from class: ResolvedType
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +

+

+
Overrides:
getErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+getFullDescription

+
+public String getFullDescription()
+
+
Description copied from class: ResolvedType
+
Human-readable full description of type, which includes specification + of super types (in brief format) +

+

+
Overrides:
getFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedRecursiveType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedRecursiveType.html new file mode 100644 index 0000000..f9b41ee --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/ResolvedRecursiveType.html @@ -0,0 +1,751 @@ + + + + + + + +ResolvedRecursiveType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class ResolvedRecursiveType

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public class ResolvedRecursiveType
extends ResolvedType
+ + +

+Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class. + Underlying information is achievable (for full resolution), but + not exposed using super type (parent) accessors; and has special + handling when used for constructing descriptions. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_referencedType + +
+          Actual fully resolved type; assigned once resultion is complete
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
ResolvedRecursiveType(Class<?> erased, + TypeBindings bindings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          To avoid infinite loops, will return null type
+ List<RawConstructor>getConstructors() + +
+           
+ List<ResolvedType>getImplementedInterfaces() + +
+          To avoid infinite loops, will return empty list
+ List<RawField>getMemberFields() + +
+           
+ List<RawMethod>getMemberMethods() + +
+           
+ ResolvedTypegetParentClass() + +
+          To avoid infinite loops, will return null;
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ List<RawField>getStaticFields() + +
+           
+ List<RawMethod>getStaticMethods() + +
+           
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ voidsetReference(ResolvedType ref) + +
+           
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_referencedType

+
+protected ResolvedType _referencedType
+
+
Actual fully resolved type; assigned once resultion is complete +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedRecursiveType

+
+public ResolvedRecursiveType(Class<?> erased,
+                             TypeBindings bindings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+setReference

+
+public void setReference(ResolvedType ref)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
To avoid infinite loops, will return null; +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
To avoid infinite loops, will return empty list +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
To avoid infinite loops, will return null type +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberFields

+
+public List<RawField> getMemberFields()
+
+
+
Overrides:
getMemberFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticFields

+
+public List<RawField> getStaticFields()
+
+
+
Overrides:
getStaticFields in class ResolvedType
+
+
+
+
+
+
+ +

+getStaticMethods

+
+public List<RawMethod> getStaticMethods()
+
+
+
Overrides:
getStaticMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getMemberMethods

+
+public List<RawMethod> getMemberMethods()
+
+
+
Overrides:
getMemberMethods in class ResolvedType
+
+
+
+
+
+
+ +

+getConstructors

+
+public List<RawConstructor> getConstructors()
+
+
+
Overrides:
getConstructors in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/TypePlaceHolder.html b/javadoc/0.8.0/com/fasterxml/classmate/types/TypePlaceHolder.html new file mode 100644 index 0000000..d9e5329 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/TypePlaceHolder.html @@ -0,0 +1,685 @@ + + + + + + + +TypePlaceHolder (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.types +
+Class TypePlaceHolder

+
+java.lang.Object
+  extended by com.fasterxml.classmate.ResolvedType
+      extended by com.fasterxml.classmate.types.TypePlaceHolder
+
+
+
All Implemented Interfaces:
Type
+
+
+
+
public class TypePlaceHolder
extends ResolvedType
+ + +

+Placeholder used for resolving type assignments to figure out + type parameters for subtypes. +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+protected  ResolvedType_actualType + +
+          Type assigned during wildcard resolution
+protected  int_ordinal + +
+           
+ + + + + + + +
Fields inherited from class com.fasterxml.classmate.ResolvedType
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
+  + + + + + + + + + + +
+Constructor Summary
TypePlaceHolder(int ordinal) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ResolvedTypeactualType() + +
+           
+ voidactualType(ResolvedType t) + +
+           
+ StringBuilderappendBriefDescription(StringBuilder sb) + +
+           
+ StringBuilderappendErasedSignature(StringBuilder sb) + +
+           
+ StringBuilderappendFullDescription(StringBuilder sb) + +
+           
+ StringBuilderappendSignature(StringBuilder sb) + +
+           
+ booleancanCreateSubtypes() + +
+          Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+ ResolvedTypegetArrayElementType() + +
+          Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+ List<ResolvedType>getImplementedInterfaces() + +
+          Returns ordered list of interfaces (in declaration order) that this type + implements.
+ ResolvedTypegetParentClass() + +
+          Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+ ResolvedTypegetSelfReferencedType() + +
+          Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+ booleanisAbstract() + +
+           
+ booleanisArray() + +
+          Method that indicates whether this type is an array type.
+ booleanisInterface() + +
+           
+ booleanisPrimitive() + +
+          Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+ + + + + + + +
Methods inherited from class com.fasterxml.classmate.ResolvedType
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_ordinal

+
+protected final int _ordinal
+
+
+
+
+
+ +

+_actualType

+
+protected ResolvedType _actualType
+
+
Type assigned during wildcard resolution +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+TypePlaceHolder

+
+public TypePlaceHolder(int ordinal)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canCreateSubtypes

+
+public boolean canCreateSubtypes()
+
+
Description copied from class: ResolvedType
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +

+

+
Specified by:
canCreateSubtypes in class ResolvedType
+
+
+
+
+
+
+ +

+actualType

+
+public ResolvedType actualType()
+
+
+
+
+
+
+ +

+actualType

+
+public void actualType(ResolvedType t)
+
+
+
+
+
+
+ +

+getParentClass

+
+public ResolvedType getParentClass()
+
+
Description copied from class: ResolvedType
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method. +

+

+
Specified by:
getParentClass in class ResolvedType
+
+
+
+
+
+
+ +

+getSelfReferencedType

+
+public ResolvedType getSelfReferencedType()
+
+
Description copied from class: ResolvedType
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops. +

+

+
Specified by:
getSelfReferencedType in class ResolvedType
+
+
+
+
+
+
+ +

+getImplementedInterfaces

+
+public List<ResolvedType> getImplementedInterfaces()
+
+
Description copied from class: ResolvedType
+
Returns ordered list of interfaces (in declaration order) that this type + implements. +

+

+
Specified by:
getImplementedInterfaces in class ResolvedType
+
+
+ +
Returns:
List of interfaces this type implements, if any; empty list if none
+
+
+
+ +

+getArrayElementType

+
+public ResolvedType getArrayElementType()
+
+
Description copied from class: ResolvedType
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +

+

+
Specified by:
getArrayElementType in class ResolvedType
+
+
+
+
+
+
+ +

+isInterface

+
+public boolean isInterface()
+
+
+
Specified by:
isInterface in class ResolvedType
+
+
+
+
+
+
+ +

+isAbstract

+
+public boolean isAbstract()
+
+
+
Specified by:
isAbstract in class ResolvedType
+
+
+
+
+
+
+ +

+isArray

+
+public boolean isArray()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is an array type. +

+

+
Specified by:
isArray in class ResolvedType
+
+
+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Description copied from class: ResolvedType
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +

+

+
Specified by:
isPrimitive in class ResolvedType
+
+
+
+
+
+
+ +

+appendSignature

+
+public StringBuilder appendSignature(StringBuilder sb)
+
+
+
Specified by:
appendSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendErasedSignature

+
+public StringBuilder appendErasedSignature(StringBuilder sb)
+
+
+
Specified by:
appendErasedSignature in class ResolvedType
+
+
+
+
+
+
+ +

+appendBriefDescription

+
+public StringBuilder appendBriefDescription(StringBuilder sb)
+
+
+
Specified by:
appendBriefDescription in class ResolvedType
+
+
+
+
+
+
+ +

+appendFullDescription

+
+public StringBuilder appendFullDescription(StringBuilder sb)
+
+
+
Specified by:
appendFullDescription in class ResolvedType
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html new file mode 100644 index 0000000..be581e3 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedArrayType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedArrayType

+
+ + + + + + + + + +
+Packages that use ResolvedArrayType
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedArrayType in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate that return ResolvedArrayType
+ ResolvedArrayTypeTypeResolver.arrayType(Type elementType) + +
+          Factory method for constructing array type of given element type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html new file mode 100644 index 0000000..131b0d2 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedInterfaceType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedInterfaceType

+
+No usage of com.fasterxml.classmate.types.ResolvedInterfaceType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html new file mode 100644 index 0000000..fed67a1 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html @@ -0,0 +1,224 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedObjectType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedObjectType

+
+ + + + + + + + + +
+Packages that use ResolvedObjectType
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedObjectType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate.types declared as ResolvedObjectType
+protected  ResolvedObjectTypeResolvedObjectType._superClass + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedObjectType
+ ResolvedObjectTypeResolvedObjectType.getParentClass() + +
+           
+  +

+ + + + + + + + + + + +
Constructors in com.fasterxml.classmate.types with parameters of type ResolvedObjectType
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + List<ResolvedType> interfaces) + +
+           
ResolvedObjectType(Class<?> erased, + TypeBindings bindings, + ResolvedObjectType superClass, + ResolvedType[] interfaces) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html new file mode 100644 index 0000000..6e95fa6 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedPrimitiveType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedPrimitiveType

+
+ + + + + + + + + +
+Packages that use ResolvedPrimitiveType
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + +
+Uses of ResolvedPrimitiveType in com.fasterxml.classmate.types
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return ResolvedPrimitiveType
+static ResolvedPrimitiveTypeResolvedPrimitiveType.voidType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.types that return types with arguments of type ResolvedPrimitiveType
+static List<ResolvedPrimitiveType>ResolvedPrimitiveType.all() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html new file mode 100644 index 0000000..5b4a68c --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedRecursiveType (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.ResolvedRecursiveType

+
+No usage of com.fasterxml.classmate.types.ResolvedRecursiveType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html new file mode 100644 index 0000000..9f374f9 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.types.TypePlaceHolder (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.types.TypePlaceHolder

+
+No usage of com.fasterxml.classmate.types.TypePlaceHolder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/package-frame.html b/javadoc/0.8.0/com/fasterxml/classmate/types/package-frame.html new file mode 100644 index 0000000..59bacb1 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.8.0 API) + + + + + + + + + + + +com.fasterxml.classmate.types + + + + +
+Classes  + +
+ResolvedArrayType +
+ResolvedInterfaceType +
+ResolvedObjectType +
+ResolvedPrimitiveType +
+ResolvedRecursiveType +
+TypePlaceHolder
+ + + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/package-summary.html b/javadoc/0.8.0/com/fasterxml/classmate/types/package-summary.html new file mode 100644 index 0000000..f228751 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/package-summary.html @@ -0,0 +1,199 @@ + + + + + + + +com.fasterxml.classmate.types (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.types +

+Package that contains ResolvedType + implementation classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ResolvedArrayType 
ResolvedInterfaceType 
ResolvedObjectTypeType implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveTypeType used for Java primitive types (which does not include arrays here).
ResolvedRecursiveTypeSpecialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
TypePlaceHolderPlaceholder used for resolving type assignments to figure out + type parameters for subtypes.
+  + +

+

+Package com.fasterxml.classmate.types Description +

+ +

+Package that contains ResolvedType + implementation classes. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/package-tree.html b/javadoc/0.8.0/com/fasterxml/classmate/types/package-tree.html new file mode 100644 index 0000000..8095b1c --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/package-tree.html @@ -0,0 +1,157 @@ + + + + + + + +com.fasterxml.classmate.types Class Hierarchy (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/types/package-use.html b/javadoc/0.8.0/com/fasterxml/classmate/types/package-use.html new file mode 100644 index 0000000..5b33293 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/types/package-use.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.types (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.types

+
+ + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.types
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes. 
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate
ResolvedArrayType + +
+           
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.types used by com.fasterxml.classmate.types
ResolvedObjectType + +
+          Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedPrimitiveType + +
+          Type used for Java primitive types (which does not include arrays here).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/ClassKey.html b/javadoc/0.8.0/com/fasterxml/classmate/util/ClassKey.html new file mode 100644 index 0000000..5a38004 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/ClassKey.html @@ -0,0 +1,331 @@ + + + + + + + +ClassKey (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ClassKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ClassKey
+
+
+
All Implemented Interfaces:
Serializable, Comparable<ClassKey>
+
+
+
+
public class ClassKey
extends Object
implements Comparable<ClassKey>, Serializable
+ + +

+Helper class used as key when we need efficient Class-to-value lookups. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ClassKey(Class<?> clz) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(ClassKey other) + +
+           
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ClassKey

+
+public ClassKey(Class<?> clz)
+
+
+ + + + + + + + +
+Method Detail
+ +

+compareTo

+
+public int compareTo(ClassKey other)
+
+
+
Specified by:
compareTo in interface Comparable<ClassKey>
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/MethodKey.html b/javadoc/0.8.0/com/fasterxml/classmate/util/MethodKey.html new file mode 100644 index 0000000..0710537 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/MethodKey.html @@ -0,0 +1,327 @@ + + + + + + + +MethodKey (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class MethodKey

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.MethodKey
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class MethodKey
extends Object
implements Serializable
+ + +

+Helper class needed when storing methods in maps; must +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
MethodKey(String name) + +
+           
MethodKey(String name, + Class<?>[] argTypes) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+          Equality means name is the same and argument type erasures as well.
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MethodKey

+
+public MethodKey(String name)
+
+
+
+ +

+MethodKey

+
+public MethodKey(String name,
+                 Class<?>[] argTypes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(Object o)
+
+
Equality means name is the same and argument type erasures as well. +

+

+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html b/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..6e066df --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html @@ -0,0 +1,301 @@ + + + + + + + +ResolvedTypeCache.Key (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache.Key

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
+
+
Enclosing class:
ResolvedTypeCache
+
+
+
+
public static class ResolvedTypeCache.Key
extends Object
+ + +

+Key used for type entries. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache.Key(Class<?> simpleType) + +
+           
ResolvedTypeCache.Key(Class<?> erasedType, + ResolvedType[] tp) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object o) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> simpleType)
+
+
+
+ +

+ResolvedTypeCache.Key

+
+public ResolvedTypeCache.Key(Class<?> erasedType,
+                             ResolvedType[] tp)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object o)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.html b/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.html new file mode 100644 index 0000000..ce2808e --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/ResolvedTypeCache.html @@ -0,0 +1,439 @@ + + + + + + + +ResolvedTypeCache (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.fasterxml.classmate.util +
+Class ResolvedTypeCache

+
+java.lang.Object
+  extended by com.fasterxml.classmate.util.ResolvedTypeCache
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class ResolvedTypeCache
extends Object
implements Serializable
+ + +

+Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances. + Since usage pattern is such that caller needs synchronization, cache access methods + are fully synchronized so that caller need not do explicit synchronization. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classResolvedTypeCache.Key + +
+          Key used for type entries.
+ + + + + + + + + + +
+Field Summary
+protected  com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap_map + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ResolvedTypeCache(int maxEntries) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(ResolvedType type) + +
+           
+ ResolvedTypefind(ResolvedTypeCache.Key key) + +
+           
+ ResolvedTypeCache.Keykey(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.Keykey(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+ voidput(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+ intsize() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+_map

+
+protected final com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap _map
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ResolvedTypeCache

+
+public ResolvedTypeCache(int maxEntries)
+
+
+ + + + + + + + +
+Method Detail
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+
+
+
+ +

+key

+
+public ResolvedTypeCache.Key key(Class<?> simpleType,
+                                 ResolvedType[] tp)
+
+
Helper method for constructing reusable cache keys +

+

+
+
+
+
+
+
+
+ +

+find

+
+public ResolvedType find(ResolvedTypeCache.Key key)
+
+
+
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+
+
+
+ +

+put

+
+public void put(ResolvedTypeCache.Key key,
+                ResolvedType type)
+
+
+
+
+
+
+
+
+
+ +

+add

+
+public void add(ResolvedType type)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ClassKey.html b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ClassKey.html new file mode 100644 index 0000000..b4f06aa --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ClassKey.html @@ -0,0 +1,301 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassKey (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ClassKey

+
+ + + + + + + + + + + + + +
+Packages that use ClassKey
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Fields in com.fasterxml.classmate with type parameters of type ClassKey
+protected  HashMap<ClassKey,AnnotationInclusion>AnnotationConfiguration.StdConfiguration._inclusions + +
+           
+protected static HashMap<ClassKey,ResolvedType>TypeResolver._primitiveTypes + +
+          Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdBuilder._targetsToOverrides + +
+           
+protected  HashMap<ClassKey,List<Class<?>>>AnnotationOverrides.StdImpl._targetsToOverrides + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.fasterxml.classmate with parameters of type ClassKey
+ AnnotationOverrides.StdBuilderAnnotationOverrides.StdBuilder.add(ClassKey target, + Class<?> mixin) + +
+           
+abstract  List<Class<?>>AnnotationOverrides.mixInsFor(ClassKey beanClass) + +
+           
+ List<Class<?>>AnnotationOverrides.StdImpl.mixInsFor(ClassKey target) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.fasterxml.classmate with type arguments of type ClassKey
+protected  voidMemberResolver._gatherTypes(ResolvedType currentType, + Set<ClassKey> seenTypes, + List<ResolvedType> types) + +
+           
+  +

+ + + + + + + + +
Constructor parameters in com.fasterxml.classmate with type arguments of type ClassKey
AnnotationOverrides.StdImpl(HashMap<ClassKey,List<Class<?>>> overrides) + +
+           
+  +

+ + + + + +
+Uses of ClassKey in com.fasterxml.classmate.util
+  +

+ + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ClassKey
+ intClassKey.compareTo(ClassKey other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/MethodKey.html b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/MethodKey.html new file mode 100644 index 0000000..be21c18 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/MethodKey.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.MethodKey (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.MethodKey

+
+ + + + + + + + + +
+Packages that use MethodKey
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
+  +

+ + + + + +
+Uses of MethodKey in com.fasterxml.classmate.members
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.members that return MethodKey
+ MethodKeyRawMethod.createKey() + +
+           
+ MethodKeyRawConstructor.createKey() + +
+          Although constructors are different from other methods, we can use + MethodKey easily.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..f967e87 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache.Key (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache.Key

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache.Key
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache.Key in com.fasterxml.classmate.util
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util that return ResolvedTypeCache.Key
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType) + +
+          Helper method for constructing reusable cache keys
+ ResolvedTypeCache.KeyResolvedTypeCache.key(Class<?> simpleType, + ResolvedType[] tp) + +
+          Helper method for constructing reusable cache keys
+  +

+ + + + + + + + + + + + + +
Methods in com.fasterxml.classmate.util with parameters of type ResolvedTypeCache.Key
+ ResolvedTypeResolvedTypeCache.find(ResolvedTypeCache.Key key) + +
+           
+ voidResolvedTypeCache.put(ResolvedTypeCache.Key key, + ResolvedType type) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html new file mode 100644 index 0000000..0b2f15d --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache

+
+ + + + + + + + + +
+Packages that use ResolvedTypeCache
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
+  +

+ + + + + +
+Uses of ResolvedTypeCache in com.fasterxml.classmate
+  +

+ + + + + + + + + +
Fields in com.fasterxml.classmate declared as ResolvedTypeCache
+protected  ResolvedTypeCacheTypeResolver._resolvedTypes + +
+          Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/package-frame.html b/javadoc/0.8.0/com/fasterxml/classmate/util/package-frame.html new file mode 100644 index 0000000..65d3467 --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.8.0 API) + + + + + + + + + + + +com.fasterxml.classmate.util + + + + +
+Classes  + +
+ClassKey +
+MethodKey +
+ResolvedTypeCache +
+ResolvedTypeCache.Key
+ + + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/package-summary.html b/javadoc/0.8.0/com/fasterxml/classmate/util/package-summary.html new file mode 100644 index 0000000..452d44a --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/package-summary.html @@ -0,0 +1,186 @@ + + + + + + + +com.fasterxml.classmate.util (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package com.fasterxml.classmate.util +

+Various utility classes used by ClassMate. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ClassKeyHelper class used as key when we need efficient Class-to-value lookups.
MethodKeyHelper class needed when storing methods in maps; must
ResolvedTypeCacheSimple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache.KeyKey used for type entries.
+  + +

+

+Package com.fasterxml.classmate.util Description +

+ +

+Various utility classes used by ClassMate. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/package-tree.html b/javadoc/0.8.0/com/fasterxml/classmate/util/package-tree.html new file mode 100644 index 0000000..d622efc --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/package-tree.html @@ -0,0 +1,157 @@ + + + + + + + +com.fasterxml.classmate.util Class Hierarchy (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package com.fasterxml.classmate.util +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/com/fasterxml/classmate/util/package-use.html b/javadoc/0.8.0/com/fasterxml/classmate/util/package-use.html new file mode 100644 index 0000000..f9d5f8e --- /dev/null +++ b/javadoc/0.8.0/com/fasterxml/classmate/util/package-use.html @@ -0,0 +1,224 @@ + + + + + + + +Uses of Package com.fasterxml.classmate.util (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
com.fasterxml.classmate.util

+
+ + + + + + + + + + + + + + + + + +
+Packages that use com.fasterxml.classmate.util
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package. 
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors) 
com.fasterxml.classmate.utilVarious utility classes used by ClassMate. 
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache + +
+          Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
+  +

+ + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.members
MethodKey + +
+          Helper class needed when storing methods in maps; must
+  +

+ + + + + + + + + + + +
+Classes in com.fasterxml.classmate.util used by com.fasterxml.classmate.util
ClassKey + +
+          Helper class used as key when we need efficient Class-to-value lookups.
ResolvedTypeCache.Key + +
+          Key used for type entries.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/constant-values.html b/javadoc/0.8.0/constant-values.html new file mode 100644 index 0000000..b683f0b --- /dev/null +++ b/javadoc/0.8.0/constant-values.html @@ -0,0 +1,147 @@ + + + + + + + +Constant Field Values (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/deprecated-list.html b/javadoc/0.8.0/deprecated-list.html new file mode 100644 index 0000000..cd3bb9a --- /dev/null +++ b/javadoc/0.8.0/deprecated-list.html @@ -0,0 +1,147 @@ + + + + + + + +Deprecated List (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/help-doc.html b/javadoc/0.8.0/help-doc.html new file mode 100644 index 0000000..2e330ad --- /dev/null +++ b/javadoc/0.8.0/help-doc.html @@ -0,0 +1,224 @@ + + + + + + + +API Help (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/index-all.html b/javadoc/0.8.0/index-all.html new file mode 100644 index 0000000..7ac31ed --- /dev/null +++ b/javadoc/0.8.0/index-all.html @@ -0,0 +1,1531 @@ + + + + + + + +Index (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I K M N O P R S T V W _
+

+A

+
+
actualType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
actualType(ResolvedType) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
add(Class<?>, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(ClassKey, Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
add(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation, overriding existing value + for the annotation type. +
add(ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
addAll(Annotations) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding all annotations from specified set, as overrides + to annotations this set has +
addAsDefault(Annotation) - +Method in class com.fasterxml.classmate.Annotations +
Method for adding specified annotation if and only if no value + exists for the annotation type. +
all() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
allTypesAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides) +
AnnotationConfiguration - Class in com.fasterxml.classmate
Interface for object that determines handling of annotations in regards + to inheritance, overrides.
AnnotationConfiguration() - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration +
  +
AnnotationConfiguration.StdConfiguration - Class in com.fasterxml.classmate
Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
AnnotationConfiguration.StdConfiguration(AnnotationInclusion) - +Constructor for class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
AnnotationInclusion - Enum in com.fasterxml.classmate
Enumeration that defines different settings for handling behavior + of individual annotations
AnnotationOverrides - Class in com.fasterxml.classmate
Interface for object that can provide mix-ins to override annotations.
AnnotationOverrides() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides +
  +
AnnotationOverrides.StdBuilder - Class in com.fasterxml.classmate
To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
AnnotationOverrides.StdBuilder() - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
AnnotationOverrides.StdImpl - Class in com.fasterxml.classmate
Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
AnnotationOverrides.StdImpl(HashMap<ClassKey, List<Class<?>>>) - +Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
Annotations - Class in com.fasterxml.classmate
Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
Annotations() - +Constructor for class com.fasterxml.classmate.Annotations +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendBriefDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendErasedSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendFullDescription(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
appendSignature(StringBuilder) - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
applyDefault(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverride(Annotation) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
applyOverrides(Annotations) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
arrayType(Type) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing array type of given element type. +
+
+

+B

+
+
build() - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder +
builder() - +Static method in class com.fasterxml.classmate.AnnotationOverrides +
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes) +
+
+

+C

+
+
canCreateSubtype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed. +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
canCreateSubtypes() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
ClassKey - Class in com.fasterxml.classmate.util
Helper class used as key when we need efficient Class-to-value lookups.
ClassKey(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ClassKey +
  +
com.fasterxml.classmate - package com.fasterxml.classmate
Package that contains main public interface of ClassMate + package.
com.fasterxml.classmate.members - package com.fasterxml.classmate.members
Package that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.types - package com.fasterxml.classmate.types
Package that contains ResolvedType + implementation classes.
com.fasterxml.classmate.util - package com.fasterxml.classmate.util
Various utility classes used by ClassMate.
compareTo(ClassKey) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
create(Class<?>, List<ResolvedType>) - +Static method in class com.fasterxml.classmate.TypeBindings +
Factory method for constructing bindings for given class using specified type + parameters. +
create(Class<?>, ResolvedType[]) - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
createKey() - +Method in class com.fasterxml.classmate.members.RawConstructor +
Although constructors are different from other methods, we can use + MethodKey easily. +
createKey() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
+
+

+D

+
+
DEFAULT_ANNOTATION_CONFIG - +Static variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Default annotation configuration is to ignore all annotations types. +
+
+

+E

+
+
emptyBindings() - +Static method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMember +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
equals(Object) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
equals(Object) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
equals(Object) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
equals(Object) - +Method in class com.fasterxml.classmate.util.MethodKey +
Equality means name is the same and argument type erasures as well. +
equals(Object) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
+
+

+F

+
+
Filter<T> - Interface in com.fasterxml.classmate
Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
find(ResolvedTypeCache.Key) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
findBoundType(String) - +Method in class com.fasterxml.classmate.TypeBindings +
Find type bound to specified name, if there is one; returns bound type if so, null if not. +
findSupertype(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method for finding super type of this type that has specified type + erased signature. +
+
+

+G

+
+
GenericType<T> - Class in com.fasterxml.classmate
This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
GenericType() - +Constructor for class com.fasterxml.classmate.GenericType +
  +
get(Class<A>) - +Method in class com.fasterxml.classmate.Annotations +
  +
get(Class<A>) - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getAnnotations() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
Returns number of arguments method takes. +
getArgumentCount() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
Returns number of arguments method takes. +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getArgumentType(int) - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types. +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null type +
getArrayElementType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getBoundName(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBoundType(int) - +Method in class com.fasterxml.classmate.TypeBindings +
  +
getBriefDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable brief description of type, which does not include + information about super types. +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getConstructors() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getDeclaringType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getErasedSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need +
getErasedSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getErasedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns type-erased Class that this resolved type has. +
getFullDescription() - +Method in class com.fasterxml.classmate.ResolvedType +
Human-readable full description of type, which includes specification + of super types (in brief format) +
getFullDescription() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns ordered list of interfaces (in declaration order) that this type + implements. +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return empty list +
getImplementedInterfaces() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as class annotation. +
getInclusionForClass(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +
getInclusionForConstructor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +
getInclusionForField(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration +
Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +
getInclusionForMethod(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getMemberMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getModifiers() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getName() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
getParentClass() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getParentClass() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
To avoid infinite loops, will return null; +
getParentClass() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getPriority() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns JDK object that represents member. +
getRawMember() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getReturnType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.ResolvedType +
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getSelfReferencedType() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
getSignature() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that returns full generic signature of the type; suitable + as signature for things like ASM package. +
getSignature() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticFields() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations. +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
getStaticMethods() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
getType() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null. +
getType() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
getTypeBindings() - +Method in class com.fasterxml.classmate.ResolvedType +
Method for accessing bindings of type variables to resolved types in context + of this type. +
getTypeParameters() - +Method in class com.fasterxml.classmate.ResolvedType +
Returns list of generic type declarations for this type, in order they + are declared in class description. +
getTypeParameters() - +Method in class com.fasterxml.classmate.TypeBindings +
Accessor for getting bound types in declaration order +
+
+

+H

+
+
hashCode() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawField +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
hashCode() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
hashCode() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
hashCode() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
hashCode() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
HierarchicType - Class in com.fasterxml.classmate.members
Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
HierarchicType(ResolvedType, boolean, int) - +Constructor for class com.fasterxml.classmate.members.HierarchicType +
  +
+
+

+I

+
+
include(T) - +Method in interface com.fasterxml.classmate.Filter +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
isAbstract() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
isAbstract() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isAbstract() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isArray() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is an array type. +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isArray() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isConcrete() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isEmpty() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
isFinal() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isFinal() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isInstanceOf(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isInterface() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isMixin() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
isNative() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
isNative() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.ResolvedType +
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types. +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
isPrimitive() - +Method in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
isPrivate() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isPrivate() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isProtected() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isProtected() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isPublic() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isPublic() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isSelfReference(ResolvedType) - +Static method in class com.fasterxml.classmate.TypeResolver +
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces +
isStatic() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
isStatic() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
isStrict() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
isStrict() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
isSynchronized() - +Method in class com.fasterxml.classmate.members.RawMethod +
  +
isSynchronized() - +Method in class com.fasterxml.classmate.members.ResolvedMethod +
  +
isTransient() - +Method in class com.fasterxml.classmate.members.RawField +
  +
isTransient() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
isVolatile() - +Method in class com.fasterxml.classmate.members.RawField +
  +
isVolatile() - +Method in class com.fasterxml.classmate.members.ResolvedField +
  +
+
+

+K

+
+
key(Class<?>) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
key(Class<?>, ResolvedType[]) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
Helper method for constructing reusable cache keys +
+
+

+M

+
+
mainTypeAndOverrides() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides. +
MemberResolver - Class in com.fasterxml.classmate
Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
MemberResolver(TypeResolver) - +Constructor for class com.fasterxml.classmate.MemberResolver +
Constructor for resolver that does not include java.lang.Object + in type hierarchy +
methodCanInherit(Annotation) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
MethodKey - Class in com.fasterxml.classmate.util
Helper class needed when storing methods in maps; must
MethodKey(String) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
MethodKey(String, Class<?>[]) - +Constructor for class com.fasterxml.classmate.util.MethodKey +
  +
mixInsFor(Class<?>) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type. +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides +
  +
mixInsFor(ClassKey) - +Method in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
+
+

+N

+
+
NO_CONSTRUCTORS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_FIELDS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_METHODS - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
NO_TYPES - +Static variable in class com.fasterxml.classmate.ResolvedType +
  +
+
+

+O

+
+
overridesOnly() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Accessor for finding just overrides for the main type (if any). +
+
+

+P

+
+
put(ResolvedTypeCache.Key, ResolvedType) - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+R

+
+
RawConstructor - Class in com.fasterxml.classmate.members
 
RawConstructor(ResolvedType, Constructor<?>) - +Constructor for class com.fasterxml.classmate.members.RawConstructor +
  +
RawField - Class in com.fasterxml.classmate.members
 
RawField(ResolvedType, Field) - +Constructor for class com.fasterxml.classmate.members.RawField +
  +
RawMember - Class in com.fasterxml.classmate.members
Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
RawMember(ResolvedType) - +Constructor for class com.fasterxml.classmate.members.RawMember +
  +
RawMethod - Class in com.fasterxml.classmate.members
 
RawMethod(ResolvedType, Method) - +Constructor for class com.fasterxml.classmate.members.RawMethod +
  +
resolve(ResolvedType, AnnotationConfiguration, AnnotationOverrides) - +Method in class com.fasterxml.classmate.MemberResolver +
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions. +
resolve(Type, Type...) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving given base type + using specified types as type parameters. +
resolve(TypeBindings, Type) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +
resolveConstructor(RawConstructor) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual constructor completely +
resolveConstructors() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for constructors of the main type. +
ResolvedArrayType - Class in com.fasterxml.classmate.types
 
ResolvedArrayType(Class<?>, TypeBindings, ResolvedType) - +Constructor for class com.fasterxml.classmate.types.ResolvedArrayType +
  +
ResolvedConstructor - Class in com.fasterxml.classmate.members
Class that represents a constructor that has fully resolved generic + type information and annotation information.
ResolvedConstructor(ResolvedType, Annotations, Constructor<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedConstructor +
  +
ResolvedField - Class in com.fasterxml.classmate.members
 
ResolvedField(ResolvedType, Annotations, Field, ResolvedType) - +Constructor for class com.fasterxml.classmate.members.ResolvedField +
  +
ResolvedInterfaceType - Class in com.fasterxml.classmate.types
 
ResolvedInterfaceType(Class<?>, TypeBindings, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedInterfaceType +
  +
ResolvedMember - Class in com.fasterxml.classmate.members
Fully type-resolved equivalent of RawMember.
ResolvedMember(ResolvedType, Annotations) - +Constructor for class com.fasterxml.classmate.members.ResolvedMember +
  +
ResolvedMethod - Class in com.fasterxml.classmate.members
 
ResolvedMethod(ResolvedType, Annotations, Method, ResolvedType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.members.ResolvedMethod +
  +
ResolvedObjectType - Class in com.fasterxml.classmate.types
Type implementation for classes that do not represent interfaces, + primitive or array types.
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, List<ResolvedType>) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.types.ResolvedObjectType +
  +
ResolvedPrimitiveType - Class in com.fasterxml.classmate.types
Type used for Java primitive types (which does not include arrays here).
ResolvedPrimitiveType(Class<?>, char, String) - +Constructor for class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
ResolvedRecursiveType - Class in com.fasterxml.classmate.types
Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
ResolvedRecursiveType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
ResolvedType - Class in com.fasterxml.classmate
 
ResolvedType(Class<?>, TypeBindings) - +Constructor for class com.fasterxml.classmate.ResolvedType +
  +
ResolvedTypeCache - Class in com.fasterxml.classmate.util
Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
ResolvedTypeCache(int) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
ResolvedTypeCache.Key - Class in com.fasterxml.classmate.util
Key used for type entries.
ResolvedTypeCache.Key(Class<?>) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeCache.Key(Class<?>, ResolvedType[]) - +Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key +
  +
ResolvedTypeWithMembers - Class in com.fasterxml.classmate
Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
ResolvedTypeWithMembers(TypeResolver, AnnotationConfiguration, HierarchicType, HierarchicType[], Filter<RawConstructor>, Filter<RawField>, Filter<RawMethod>) - +Constructor for class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveField(RawField) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual field completely +
resolveMemberFields() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for fully resolving field definitions and associated annotations. +
resolveMemberMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
resolveMethod(RawMethod) - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method for resolving individual method completely +
resolveStaticMethods() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter. +
resolveSubtype(ResolvedType, Class<?>) - +Method in class com.fasterxml.classmate.TypeResolver +
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must propery extend or implement specified supertype). +
+
+

+S

+
+
setConstructorFilter(Filter<RawConstructor>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setFieldFilter(Filter<RawField>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setIncludeLangObject(boolean) - +Method in class com.fasterxml.classmate.MemberResolver +
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included. +
setInclusion(Class<? extends Annotation>, AnnotationInclusion) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
setMethodFilter(Filter<RawMethod>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
setReference(ResolvedType) - +Method in class com.fasterxml.classmate.types.ResolvedRecursiveType +
  +
size() - +Method in class com.fasterxml.classmate.Annotations +
  +
size() - +Method in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
size() - +Method in class com.fasterxml.classmate.TypeBindings +
Returns number of bindings contained +
size() - +Method in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
+
+

+T

+
+
toString() - +Method in class com.fasterxml.classmate.Annotations +
  +
toString() - +Method in class com.fasterxml.classmate.members.HierarchicType +
  +
toString() - +Method in class com.fasterxml.classmate.members.RawMember +
  +
toString() - +Method in class com.fasterxml.classmate.members.ResolvedMember +
  +
toString() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
toString() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
toString() - +Method in class com.fasterxml.classmate.util.ClassKey +
  +
toString() - +Method in class com.fasterxml.classmate.util.MethodKey +
  +
TypeBindings - Class in com.fasterxml.classmate
Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
typeParameterArray() - +Method in class com.fasterxml.classmate.TypeBindings +
  +
typeParametersFor(Class<?>) - +Method in class com.fasterxml.classmate.ResolvedType +
Method that will try to find type parameterization this type + has for specified super type +
TypePlaceHolder - Class in com.fasterxml.classmate.types
Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
TypePlaceHolder(int) - +Constructor for class com.fasterxml.classmate.types.TypePlaceHolder +
  +
TypeResolver - Class in com.fasterxml.classmate
Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
TypeResolver() - +Constructor for class com.fasterxml.classmate.TypeResolver +
  +
+
+

+V

+
+
valueOf(String) - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum com.fasterxml.classmate.AnnotationInclusion +
Returns an array containing the constants of this enum type, in +the order they are declared. +
voidType() - +Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
  +
+
+

+W

+
+
withAdditionalBinding(String, ResolvedType) - +Method in class com.fasterxml.classmate.TypeBindings +
Method for creating an instance that has same bindings as this object, + plus one additional binding +
+
+

+_

+
+
_actualType - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
Type assigned during wildcard resolution +
_annotationHandler - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Handler for resolving annotation information +
_annotations - +Variable in class com.fasterxml.classmate.Annotations +
  +
_annotations - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
  +
_appendClassDescription(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassName(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_appendErasedClassSignature(StringBuilder) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_argumentTypes - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_cfgIncludeLangObject - +Variable in class com.fasterxml.classmate.MemberResolver +
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +
_constantFields - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interfaces can have static final (constant) fields. +
_constructor - +Variable in class com.fasterxml.classmate.members.RawConstructor +
  +
_constructor - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_constructorFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +
_constructorFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting constructors to include +
_constructors - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_constructors - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Constructors declared by the resolved Object class. +
_declaringType - +Variable in class com.fasterxml.classmate.members.RawMember +
ResolvedType (class with generic type parameters) that declared + this member +
_declaringType - +Variable in class com.fasterxml.classmate.members.ResolvedMember +
ResolvedType (class with generic type parameters) that declared + this member +
_defaultInclusion - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_description - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Human-readable description should be simple as well +
_elementType - +Variable in class com.fasterxml.classmate.types.ResolvedArrayType +
  +
_erasedType - +Variable in class com.fasterxml.classmate.ResolvedType +
  +
_field - +Variable in class com.fasterxml.classmate.members.RawField +
  +
_field - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_fieldFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +
_fieldFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting fields to include +
_gatherTypes(ResolvedType, Set<ClassKey>, List<ResolvedType>) - +Method in class com.fasterxml.classmate.MemberResolver +
  +
_getConstructors() - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getFields(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_getMethods(boolean) - +Method in class com.fasterxml.classmate.ResolvedType +
  +
_hashCode - +Variable in class com.fasterxml.classmate.members.RawConstructor +
  +
_hashCode - +Variable in class com.fasterxml.classmate.members.RawMethod +
  +
_hashCode - +Variable in class com.fasterxml.classmate.members.ResolvedConstructor +
  +
_hashCode - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_hashCode - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_inclusionFor(Class<? extends Annotation>) - +Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_inclusions - +Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration +
  +
_isMixin - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members. +
_mainType - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Leaf of the type hierarchy, i.e. +
_map - +Variable in class com.fasterxml.classmate.util.ResolvedTypeCache +
  +
_memberFields - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
Interface methods are all public and abstract. +
_memberMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_method - +Variable in class com.fasterxml.classmate.members.RawMethod +
  +
_method - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_methodFilter - +Variable in class com.fasterxml.classmate.MemberResolver +
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +
_methodFilter - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Filter to use for selecting methods to include +
_modifiers - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
Modifiers of the underlying class. +
_ordinal - +Variable in class com.fasterxml.classmate.types.TypePlaceHolder +
  +
_primitiveTypes - +Static variable in class com.fasterxml.classmate.TypeResolver +
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. +
_priority - +Variable in class com.fasterxml.classmate.members.HierarchicType +
Relative priority of this type in hierarchy; higher priority members can override + lower priority members. +
_referencedType - +Variable in class com.fasterxml.classmate.types.ResolvedRecursiveType +
Actual fully resolved type; assigned once resultion is complete +
_resolvedTypes - +Variable in class com.fasterxml.classmate.TypeResolver +
Simple cache of types resolved by this resolved; capped to last 200 resolved types. +
_returnType - +Variable in class com.fasterxml.classmate.members.ResolvedMethod +
  +
_signature - +Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType +
Primitive types have single-character Signature, easy and efficient + to just store here +
_staticFields - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
  +
_staticMethods - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superClass - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
  +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType +
List of interfaces this type implements; may be empty but never null +
_superInterfaces - +Variable in class com.fasterxml.classmate.types.ResolvedObjectType +
List of interfaces this type implements; may be empty but never null +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder +
  +
_targetsToOverrides - +Variable in class com.fasterxml.classmate.AnnotationOverrides.StdImpl +
  +
_type - +Variable in class com.fasterxml.classmate.members.HierarchicType +
  +
_type - +Variable in class com.fasterxml.classmate.members.ResolvedField +
  +
_typeBindings - +Variable in class com.fasterxml.classmate.ResolvedType +
Type bindings active when resolving members (methods, fields, + constructors) of this type +
_typeResolver - +Variable in class com.fasterxml.classmate.MemberResolver +
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +
_typeResolver - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
Need to be able to resolve member types still +
_types - +Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers +
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members) +
+
+A B C D E F G H I K M N O P R S T V W _ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/index.html b/javadoc/0.8.0/index.html new file mode 100644 index 0000000..3a8ef4f --- /dev/null +++ b/javadoc/0.8.0/index.html @@ -0,0 +1,40 @@ + + + + + + + +ClassMate 0.8.0 API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/javadoc/0.8.0/overview-frame.html b/javadoc/0.8.0/overview-frame.html new file mode 100644 index 0000000..d3b968e --- /dev/null +++ b/javadoc/0.8.0/overview-frame.html @@ -0,0 +1,49 @@ + + + + + + + +Overview List (ClassMate 0.8.0 API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+com.fasterxml.classmate +
+com.fasterxml.classmate.members +
+com.fasterxml.classmate.types +
+com.fasterxml.classmate.util +
+

+ +

+  + + diff --git a/javadoc/0.8.0/overview-summary.html b/javadoc/0.8.0/overview-summary.html new file mode 100644 index 0000000..338d4a6 --- /dev/null +++ b/javadoc/0.8.0/overview-summary.html @@ -0,0 +1,172 @@ + + + + + + + +Overview (ClassMate 0.8.0 API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+ClassMate 0.8.0 API +

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages
com.fasterxml.classmatePackage that contains main public interface of ClassMate + package.
com.fasterxml.classmate.membersPackage that contains implementations of various member types + (methods, fields, constructors)
com.fasterxml.classmate.typesPackage that contains ResolvedType + implementation classes.
com.fasterxml.classmate.utilVarious utility classes used by ClassMate.
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/overview-tree.html b/javadoc/0.8.0/overview-tree.html new file mode 100644 index 0000000..b51830b --- /dev/null +++ b/javadoc/0.8.0/overview-tree.html @@ -0,0 +1,189 @@ + + + + + + + +Class Hierarchy (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
com.fasterxml.classmate, com.fasterxml.classmate.members, com.fasterxml.classmate.types, com.fasterxml.classmate.util
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.fasterxml.classmate.Filter<T>
+

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/package-list b/javadoc/0.8.0/package-list new file mode 100644 index 0000000..1532090 --- /dev/null +++ b/javadoc/0.8.0/package-list @@ -0,0 +1,4 @@ +com.fasterxml.classmate +com.fasterxml.classmate.members +com.fasterxml.classmate.types +com.fasterxml.classmate.util diff --git a/javadoc/0.8.0/resources/inherit.gif b/javadoc/0.8.0/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/javadoc/0.8.0/resources/inherit.gif differ diff --git a/javadoc/0.8.0/serialized-form.html b/javadoc/0.8.0/serialized-form.html new file mode 100644 index 0000000..9670e49 --- /dev/null +++ b/javadoc/0.8.0/serialized-form.html @@ -0,0 +1,520 @@ + + + + + + + +Serialized Form (ClassMate 0.8.0 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package com.fasterxml.classmate
+ +

+ + + + + +
+Class com.fasterxml.classmate.AnnotationConfiguration extends Object implements Serializable
+ +

+ +

+ + + + + +
+Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration extends AnnotationConfiguration implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_defaultInclusion

+
+AnnotationInclusion _defaultInclusion
+
+
+
+
+
+

+_inclusions

+
+HashMap<K,V> _inclusions
+
+
+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.AnnotationOverrides extends Object implements Serializable
+ +

+ +

+ + + + + +
+Class com.fasterxml.classmate.AnnotationOverrides.StdImpl extends AnnotationOverrides implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_targetsToOverrides

+
+HashMap<K,V> _targetsToOverrides
+
+
+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.Annotations extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_annotations

+
+HashMap<K,V> _annotations
+
+
+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.GenericType extends Object implements Serializable
+ +

+ +

+ + + + + +
+Class com.fasterxml.classmate.MemberResolver extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_typeResolver

+
+TypeResolver _typeResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types) +

+

+
+
+
+

+_cfgIncludeLangObject

+
+boolean _cfgIncludeLangObject
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not. +

+

+
+
+
+

+_fieldFilter

+
+Filter<T> _fieldFilter
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields. +

+

+
+
+
+

+_methodFilter

+
+Filter<T> _methodFilter
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods. +

+

+
+
+
+

+_constructorFilter

+
+Filter<T> _constructorFilter
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors. +

+

+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.TypeResolver extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_resolvedTypes

+
+ResolvedTypeCache _resolvedTypes
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed. +

+

+
+
+
+ + + + + +
+Package com.fasterxml.classmate.util
+ +

+ + + + + +
+Class com.fasterxml.classmate.util.ClassKey extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_className

+
+String _className
+
+
+
+
+
+

+_class

+
+Class<T> _class
+
+
+
+
+
+

+_hashCode

+
+int _hashCode
+
+
Let's cache hash code straight away, since we are almost certain to need it. +

+

+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.util.MethodKey extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_name

+
+String _name
+
+
+
+
+
+

+_argumentTypes

+
+Class<T>[] _argumentTypes
+
+
+
+
+
+

+_hashCode

+
+int _hashCode
+
+
+
+
+ +

+ + + + + +
+Class com.fasterxml.classmate.util.ResolvedTypeCache extends Object implements Serializable
+ +

+ + + + + +
+Serialized Fields
+ +

+_map

+
+com.fasterxml.classmate.util.ResolvedTypeCache.CacheMap _map
+
+
+
+
+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 fasterxml.com. All Rights Reserved. + + diff --git a/javadoc/0.8.0/stylesheet.css b/javadoc/0.8.0/stylesheet.css new file mode 100644 index 0000000..6ea9e51 --- /dev/null +++ b/javadoc/0.8.0/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/javadoc/1.3/allclasses-frame.html b/javadoc/1.3/allclasses-frame.html new file mode 100644 index 0000000..5f765fd --- /dev/null +++ b/javadoc/1.3/allclasses-frame.html @@ -0,0 +1,53 @@ + + + + + + +All Classes (ClassMate 1.3.0 API) + + + + +

All Classes

+ + + diff --git a/javadoc/1.3/allclasses-noframe.html b/javadoc/1.3/allclasses-noframe.html new file mode 100644 index 0000000..84c7e0f --- /dev/null +++ b/javadoc/1.3/allclasses-noframe.html @@ -0,0 +1,53 @@ + + + + + + +All Classes (ClassMate 1.3.0 API) + + + + +

All Classes

+ + + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..0c4087b --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,486 @@ + + + + + + +AnnotationConfiguration.StdConfiguration (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class AnnotationConfiguration.StdConfiguration

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    Enclosing class:
    +
    AnnotationConfiguration
    +
    +
    +
    +
    public static class AnnotationConfiguration.StdConfiguration
    +extends AnnotationConfiguration
    +implements Serializable
    +
    Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types. Same default is used for both class and + member method annotations (constructor, field and static method + annotations are never inherited)
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.html new file mode 100644 index 0000000..d2c3840 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationConfiguration.html @@ -0,0 +1,384 @@ + + + + + + +AnnotationConfiguration (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class AnnotationConfiguration

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AnnotationConfiguration

        +
        public AnnotationConfiguration()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInclusionForClass

        +
        public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
        +
        Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
        +
      • +
      + + + +
        +
      • +

        getInclusionForConstructor

        +
        public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
        +
        Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation. +

        + Note that constructor annotations can never be inherited so this just determines + between inclusion or non-inclusion.

        +
      • +
      + + + +
        +
      • +

        getInclusionForField

        +
        public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
        +
        Method called to figure out how to handle instances of specified annotation + type when used as field annotation. +

        + Note that field annotations can never be inherited so this just determines + between inclusion or non-inclusion.

        +
      • +
      + + + +
        +
      • +

        getInclusionForMethod

        +
        public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
        +
        Method called to figure out how to handle instances of specified annotation + type when used as method annotation. +

        + Note that method annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion.

        +
      • +
      + + + +
        +
      • +

        getInclusionForParameter

        +
        public abstract AnnotationInclusion getInclusionForParameter(Class<? extends Annotation> annotationType)
        +
        Method called to figure out how to handle instances of specified annotation + type when used as parameter annotation. +

        + Note that parameter annotations can be inherited for member methods, but not for static + methods; for static methods thereby this just determines between inclusion and + non-inclusion.

        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationInclusion.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationInclusion.html new file mode 100644 index 0000000..1fd0d21 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationInclusion.html @@ -0,0 +1,380 @@ + + + + + + +AnnotationInclusion (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Enum AnnotationInclusion

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      DONT_INCLUDE +
      Value that indicates that annotation is to be ignored, not included + in resolved bean information.
      +
      INCLUDE_AND_INHERIT +
      Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes.
      +
      INCLUDE_AND_INHERIT_IF_INHERITED +
      Value that indicates that annotation is to be included in results, and + values from overridden members are inherited only if the annotation is + marked with the Inherited annotation.
      +
      INCLUDE_BUT_DONT_INHERIT +
      Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        DONT_INCLUDE

        +
        public static final AnnotationInclusion DONT_INCLUDE
        +
        Value that indicates that annotation is to be ignored, not included + in resolved bean information. + Applicable to all member types.
        +
      • +
      + + + +
        +
      • +

        INCLUDE_BUT_DONT_INHERIT

        +
        public static final AnnotationInclusion INCLUDE_BUT_DONT_INHERIT
        +
        Value that indicates that annotation is to be included in results, but + only if directly associated with included member (or attached mix-in); + will not inherit from supertypes. + Applicable only to member methods; if used with other members will + mean basic inclusion.
        +
      • +
      + + + +
        +
      • +

        INCLUDE_AND_INHERIT_IF_INHERITED

        +
        public static final AnnotationInclusion INCLUDE_AND_INHERIT_IF_INHERITED
        +
        Value that indicates that annotation is to be included in results, and + values from overridden members are inherited only if the annotation is + marked with the Inherited annotation. + Applicable only to member methods; if used with other members will + mean basic inclusion.
        +
      • +
      + + + +
        +
      • +

        INCLUDE_AND_INHERIT

        +
        public static final AnnotationInclusion INCLUDE_AND_INHERIT
        +
        Value that indicates that annotation is to be included in results; and + values from overridden members are also inherited if not overridden + by members of subtypes. + Note that inheritance only matters with member methods; for other types + it just means "include".
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static AnnotationInclusion[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (AnnotationInclusion c : AnnotationInclusion.values())
        +    System.out.println(c);
        +
        +
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static AnnotationInclusion valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        Parameters:
        name - the name of the enum constant to be returned.
        +
        Returns:
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..a5cce29 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,336 @@ + + + + + + +AnnotationOverrides.StdBuilder (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class AnnotationOverrides.StdBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.fasterxml.classmate.AnnotationOverrides.StdBuilder
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    AnnotationOverrides
    +
    +
    +
    +
    public static class AnnotationOverrides.StdBuilder
    +extends Object
    +
    To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..8875ddd --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.StdImpl.html @@ -0,0 +1,337 @@ + + + + + + +AnnotationOverrides.StdImpl (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class AnnotationOverrides.StdImpl

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    Enclosing class:
    +
    AnnotationOverrides
    +
    +
    +
    +
    public static class AnnotationOverrides.StdImpl
    +extends AnnotationOverrides
    +
    Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.html b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.html new file mode 100644 index 0000000..5eb0bf0 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/AnnotationOverrides.html @@ -0,0 +1,338 @@ + + + + + + +AnnotationOverrides (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class AnnotationOverrides

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class AnnotationOverrides.StdBuilder +
      To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
      +
      static class AnnotationOverrides.StdImpl +
      Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
      +
      +
    • +
    + + + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AnnotationOverrides

        +
        public AnnotationOverrides()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mixInsFor

        +
        public List<Class<?>> mixInsFor(Class<?> beanClass)
        +
        Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
        +
        Returns:
        List of mix-in sources (starting with highest priority); + can be null or empty list if no mix-ins are to be used.
        +
      • +
      + + + + + + + +
        +
      • +

        builder

        +
        public static AnnotationOverrides.StdBuilder builder()
        +
        Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/Annotations.html b/javadoc/1.3/com/fasterxml/classmate/Annotations.html new file mode 100644 index 0000000..45790ca --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/Annotations.html @@ -0,0 +1,435 @@ + + + + + + +Annotations (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class Annotations

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Annotations

        +
        public Annotations()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        public void add(Annotation override)
        +
        Method for adding specified annotation, overriding existing value + for the annotation type.
        +
      • +
      + + + +
        +
      • +

        addAll

        +
        public void addAll(Annotations overrides)
        +
        Method for adding all annotations from specified set, as overrides + to annotations this set has
        +
      • +
      + + + +
        +
      • +

        addAsDefault

        +
        public void addAsDefault(Annotation defValue)
        +
        Method for adding specified annotation if and only if no value + exists for the annotation type.
        +
      • +
      + + + + + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      + + + + + + + +
        +
      • +

        asArray

        +
        public Annotation[] asArray()
        +
        Since:
        +
        1.1.1
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/Filter.html b/javadoc/1.3/com/fasterxml/classmate/Filter.html new file mode 100644 index 0000000..8ab2e93 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/Filter.html @@ -0,0 +1,212 @@ + + + + + + +Filter (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Interface Filter<T>

+
+
+
+
    +
  • +
    +
    +
    public interface Filter<T>
    +
    Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleaninclude(T element) 
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        include

        +
        boolean include(T element)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/GenericType.html b/javadoc/1.3/com/fasterxml/classmate/GenericType.html new file mode 100644 index 0000000..50431aa --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/GenericType.html @@ -0,0 +1,251 @@ + + + + + + +GenericType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class GenericType<T>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Type
    +
    +
    +
    +
    public abstract class GenericType<T>
    +extends Object
    +implements Serializable, Type
    +
    This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects). + It is based on ideas from + http://gafter.blogspot.com/2006/12/super-type-tokens.html, +

    + Usage is by sub-classing: here is one way to instantiate reference + to generic type List<Integer>: +

    +  GenericType type = new GenericType<List<Integer>>() { };
    +
    + which can be passed to methods that accept GenericReference.
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GenericType

        +
        protected GenericType()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/MemberResolver.html b/javadoc/1.3/com/fasterxml/classmate/MemberResolver.html new file mode 100644 index 0000000..d8fabda --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/MemberResolver.html @@ -0,0 +1,487 @@ + + + + + + +MemberResolver (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class MemberResolver

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _typeResolver

        +
        protected final TypeResolver _typeResolver
        +
        Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
        +
      • +
      + + + +
        +
      • +

        _cfgIncludeLangObject

        +
        protected boolean _cfgIncludeLangObject
        +
        Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
        +
      • +
      + + + +
        +
      • +

        _fieldFilter

        +
        protected Filter<RawField> _fieldFilter
        +
        Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
        +
      • +
      + + + +
        +
      • +

        _methodFilter

        +
        protected Filter<RawMethod> _methodFilter
        +
        Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
        +
      • +
      + + + +
        +
      • +

        _constructorFilter

        +
        protected Filter<RawConstructor> _constructorFilter
        +
        Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MemberResolver

        +
        public MemberResolver(TypeResolver typeResolver)
        +
        Constructor for resolver that does not include java.lang.Object + in type hierarchy
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setIncludeLangObject

        +
        public MemberResolver setIncludeLangObject(boolean state)
        +
        Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        resolve

        +
        public ResolvedTypeWithMembers resolve(ResolvedType mainType,
        +                              AnnotationConfiguration annotationConfig,
        +                              AnnotationOverrides annotationOverrides)
        +
        Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
        +
        Parameters:
        mainType - Resolved type that is the starting point (i.e. the leaf class) + for member resolution.
        annotationConfig - Configuration of annotation types; which ones to include, how to inherit
        annotationOverrides - Definitions of annotation overrides to use, if any (may be null)
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/ResolvedType.html b/javadoc/1.3/com/fasterxml/classmate/ResolvedType.html new file mode 100644 index 0000000..0d93b72 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/ResolvedType.html @@ -0,0 +1,1002 @@ + + + + + + +ResolvedType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class ResolvedType

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NO_TYPES

        +
        public static final ResolvedType[] NO_TYPES
        +
      • +
      + + + +
        +
      • +

        NO_CONSTRUCTORS

        +
        protected static final RawConstructor[] NO_CONSTRUCTORS
        +
      • +
      + + + +
        +
      • +

        NO_FIELDS

        +
        protected static final RawField[] NO_FIELDS
        +
      • +
      + + + +
        +
      • +

        NO_METHODS

        +
        protected static final RawMethod[] NO_METHODS
        +
      • +
      + + + +
        +
      • +

        _erasedType

        +
        protected final Class<?> _erasedType
        +
      • +
      + + + +
        +
      • +

        _typeBindings

        +
        protected final TypeBindings _typeBindings
        +
        Type bindings active when resolving members (methods, fields, + constructors) of this type
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        canCreateSubtypes

        +
        public abstract boolean canCreateSubtypes()
        +
        Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
        +
      • +
      + + + +
        +
      • +

        canCreateSubtype

        +
        public final boolean canCreateSubtype(Class<?> subtype)
        +
        Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
        +
      • +
      + + + +
        +
      • +

        getErasedType

        +
        public Class<?> getErasedType()
        +
        Returns type-erased Class that this resolved type has.
        +
      • +
      + + + +
        +
      • +

        getParentClass

        +
        public abstract ResolvedType getParentClass()
        +
        Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object. + Also, placeholders for cyclic (recursive) types return null for + this method.
        +
      • +
      + + + +
        +
      • +

        getSelfReferencedType

        +
        public abstract ResolvedType getSelfReferencedType()
        +
        Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>). + For all other types returns null but for self-references "real" type. + Separate accessor is provided to avoid accidental infinite loops.
        +
      • +
      + + + +
        +
      • +

        getArrayElementType

        +
        public abstract ResolvedType getArrayElementType()
        +
        Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
        +
      • +
      + + + +
        +
      • +

        getImplementedInterfaces

        +
        public abstract List<ResolvedType> getImplementedInterfaces()
        +
        Returns ordered list of interfaces (in declaration order) that this type + implements.
        +
        Returns:
        List of interfaces this type implements, if any; empty list if none
        +
      • +
      + + + +
        +
      • +

        getTypeParameters

        +
        public List<ResolvedType> getTypeParameters()
        +
        Returns list of generic type declarations for this type, in order they + are declared in class description.
        +
      • +
      + + + +
        +
      • +

        getTypeBindings

        +
        public TypeBindings getTypeBindings()
        +
        Method for accessing bindings of type variables to resolved types in context + of this type. It has same number of entries as return List of + getTypeParameters(), accessible using declared name to which they + bind; for example, Map has 2 type bindings; one for + key type (name "K", from Map.java) and one for value type + (name "V", from Map.java).
        +
      • +
      + + + +
        +
      • +

        typeParametersFor

        +
        public List<ResolvedType> typeParametersFor(Class<?> erasedSupertype)
        +
        Method that will try to find type parameterization this type + has for specified super type
        +
        Returns:
        List of type parameters for specified supertype (which may + be empty, if supertype is not a parametric type); null if specified + type is not a super type of this type
        +
      • +
      + + + +
        +
      • +

        findSupertype

        +
        public ResolvedType findSupertype(Class<?> erasedSupertype)
        +
        Method for finding super type of this type that has specified type + erased signature. If supertype is an interface which is implemented + using multiple inheritance paths, preference is given to interfaces + implemented "highest up the stack" (directly implemented interfaces + over interfaces superclass implements).
        +
      • +
      + + + +
        +
      • +

        isInterface

        +
        public abstract boolean isInterface()
        +
      • +
      + + + +
        +
      • +

        isConcrete

        +
        public final boolean isConcrete()
        +
      • +
      + + + +
        +
      • +

        isAbstract

        +
        public abstract boolean isAbstract()
        +
      • +
      + + + +
        +
      • +

        isArray

        +
        public abstract boolean isArray()
        +
        Method that indicates whether this type is an array type.
        +
      • +
      + + + +
        +
      • +

        isPrimitive

        +
        public abstract boolean isPrimitive()
        +
        Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
        +
      • +
      + + + +
        +
      • +

        isInstanceOf

        +
        public final boolean isInstanceOf(Class<?> type)
        +
      • +
      + + + + + + + +
        +
      • +

        getMemberFields

        +
        public List<RawField> getMemberFields()
        +
      • +
      + + + +
        +
      • +

        getMemberMethods

        +
        public List<RawMethod> getMemberMethods()
        +
      • +
      + + + +
        +
      • +

        getStaticFields

        +
        public List<RawField> getStaticFields()
        +
      • +
      + + + +
        +
      • +

        getStaticMethods

        +
        public List<RawMethod> getStaticMethods()
        +
      • +
      + + + +
        +
      • +

        getSignature

        +
        public String getSignature()
        +
        Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
        +
      • +
      + + + +
        +
      • +

        getErasedSignature

        +
        public String getErasedSignature()
        +
        Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
        +
      • +
      + + + +
        +
      • +

        getFullDescription

        +
        public String getFullDescription()
        +
        Human-readable full description of type, which includes specification + of super types (in brief format)
        +
      • +
      + + + +
        +
      • +

        getBriefDescription

        +
        public String getBriefDescription()
        +
        Human-readable brief description of type, which does not include + information about super types.
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        _getFields

        +
        protected RawField[] _getFields(boolean statics)
        +
        Parameters:
        statics - Whether to return static methods (true) or member methods (false)
        +
      • +
      + + + +
        +
      • +

        _getMethods

        +
        protected RawMethod[] _getMethods(boolean statics)
        +
        Parameters:
        statics - Whether to return static methods (true) or member methods (false)
        +
      • +
      + + + +
        +
      • +

        _getConstructors

        +
        protected RawConstructor[] _getConstructors()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html b/javadoc/1.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..7d1334c --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/ResolvedTypeWithMembers.html @@ -0,0 +1,793 @@ + + + + + + +ResolvedTypeWithMembers (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class ResolvedTypeWithMembers

+
+
+ +
+
    +
  • +
    +
    +
    public class ResolvedTypeWithMembers
    +extends Object
    +
    Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations"). + Instances are created by MemberResolver. +

    + Note that instances are not thread-safe, as the expectation is that instances + will not be shared (unlike raw members or resolved types)

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_ANNOTATION_CONFIG

        +
        protected static final AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG
        +
        Default annotation configuration is to ignore all annotations types.
        +
      • +
      + + + +
        +
      • +

        _typeResolver

        +
        protected final TypeResolver _typeResolver
        +
        Need to be able to resolve member types still
        +
      • +
      + + + +
        +
      • +

        _annotationHandler

        +
        protected final com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler _annotationHandler
        +
        Handler for resolving annotation information
        +
      • +
      + + + +
        +
      • +

        _mainType

        +
        protected final HierarchicType _mainType
        +
        Leaf of the type hierarchy, i.e. type from which this hierarchy + was generated.
        +
      • +
      + + + +
        +
      • +

        _types

        +
        protected final HierarchicType[] _types
        +
        All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
        +
      • +
      + + + +
        +
      • +

        _fieldFilter

        +
        protected Filter<RawField> _fieldFilter
        +
        Filter to use for selecting fields to include
        +
      • +
      + + + +
        +
      • +

        _constructorFilter

        +
        protected Filter<RawConstructor> _constructorFilter
        +
        Filter to use for selecting constructors to include
        +
      • +
      + + + +
        +
      • +

        _methodFilter

        +
        protected Filter<RawMethod> _methodFilter
        +
        Filter to use for selecting methods to include
        +
      • +
      + + + + + + + + + + + + + + + + + + + + +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      + + + +
        +
      • +

        allTypesAndOverrides

        +
        public List<HierarchicType> allTypesAndOverrides()
        +
        Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
        +
      • +
      + + + +
        +
      • +

        mainTypeAndOverrides

        +
        public List<HierarchicType> mainTypeAndOverrides()
        +
        Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
        +
      • +
      + + + +
        +
      • +

        overridesOnly

        +
        public List<HierarchicType> overridesOnly()
        +
        Accessor for finding just overrides for the main type (if any).
        +
      • +
      + + + +
        +
      • +

        getStaticFields

        +
        public ResolvedField[] getStaticFields()
        +
        Method for finding all static fields of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
        +
        Since:
        +
        1.2.0
        +
      • +
      + + + +
        +
      • +

        getStaticMethods

        +
        public ResolvedMethod[] getStaticMethods()
        +
        Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
        +
      • +
      + + + +
        +
      • +

        getMemberFields

        +
        public ResolvedField[] getMemberFields()
        +
      • +
      + + + +
        +
      • +

        getMemberMethods

        +
        public ResolvedMethod[] getMemberMethods()
        +
      • +
      + + + + + + + +
        +
      • +

        resolveConstructors

        +
        protected ResolvedConstructor[] resolveConstructors()
        +
        Method that will actually resolve full information (types, annotations) + for constructors of the main type.
        +
      • +
      + + + +
        +
      • +

        resolveMemberFields

        +
        protected ResolvedField[] resolveMemberFields()
        +
        Method for fully resolving field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in.
        +
      • +
      + + + +
        +
      • +

        resolveMemberMethods

        +
        protected ResolvedMethod[] resolveMemberMethods()
        +
      • +
      + + + +
        +
      • +

        resolveStaticFields

        +
        protected ResolvedField[] resolveStaticFields()
        +
        Method for fully resolving static field definitions and associated annotations. + Neither field definitions nor associated annotations inherit, but we may + still need to add annotation overrides, as well as filter out filters + and annotations that caller is not interested in.
        +
        Since:
        +
        1.2.0
        +
      • +
      + + + +
        +
      • +

        resolveStaticMethods

        +
        protected ResolvedMethod[] resolveStaticMethods()
        +
        Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
        +
      • +
      + + + + + + + +
        +
      • +

        resolveField

        +
        protected ResolvedField resolveField(RawField raw)
        +
        Method for resolving individual field completely
        +
      • +
      + + + +
        +
      • +

        resolveMethod

        +
        protected ResolvedMethod resolveMethod(RawMethod raw)
        +
        Method for resolving individual method completely
        +
      • +
      + + + +
        +
      • +

        methodCanInherit

        +
        protected boolean methodCanInherit(Annotation annotation)
        +
      • +
      + + + +
        +
      • +

        parameterCanInherit

        +
        protected boolean parameterCanInherit(Annotation annotation)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/TypeBindings.html b/javadoc/1.3/com/fasterxml/classmate/TypeBindings.html new file mode 100644 index 0000000..91ef8ff --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/TypeBindings.html @@ -0,0 +1,449 @@ + + + + + + +TypeBindings (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class TypeBindings

+
+
+ +
+
    +
  • +
    +
    +
    public final class TypeBindings
    +extends Object
    +
    Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        emptyBindings

        +
        public static TypeBindings emptyBindings()
        +
      • +
      + + + +
        +
      • +

        create

        +
        public static TypeBindings create(Class<?> erasedType,
        +                  List<ResolvedType> typeList)
        +
        Factory method for constructing bindings for given class using specified type + parameters.
        +
      • +
      + + + + + + + +
        +
      • +

        withUnboundVariable

        +
        public TypeBindings withUnboundVariable(String name)
        +
        Method for creating an instance that has same bindings as this object, + plus an indicator for additional type variable that may be unbound within + this context; this is needed to resolve recursive self-references.
        +
        Since:
        +
        1.3 (renamed from "withAdditionalBinding" in 1.2)
        +
      • +
      + + + +
        +
      • +

        findBoundType

        +
        public ResolvedType findBoundType(String name)
        +
        Find type bound to specified name, if there is one; returns bound type if so, null if not.
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Returns number of bindings contained
        +
      • +
      + + + +
        +
      • +

        getBoundName

        +
        public String getBoundName(int index)
        +
      • +
      + + + +
        +
      • +

        getBoundType

        +
        public ResolvedType getBoundType(int index)
        +
      • +
      + + + +
        +
      • +

        getTypeParameters

        +
        public List<ResolvedType> getTypeParameters()
        +
        Accessor for getting bound types in declaration order
        +
      • +
      + + + +
        +
      • +

        hasUnbound

        +
        public boolean hasUnbound(String name)
        +
        Since:
        +
        2.3
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        typeParameterArray

        +
        protected ResolvedType[] typeParameterArray()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/TypeResolver.html b/javadoc/1.3/com/fasterxml/classmate/TypeResolver.html new file mode 100644 index 0000000..68ad091 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/TypeResolver.html @@ -0,0 +1,466 @@ + + + + + + +TypeResolver (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate
+

Class TypeResolver

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class TypeResolver
    +extends Object
    +implements Serializable
    +
    Object that is used for resolving generic type information of a class + so that it is accessible using simple API. Resolved types are also starting + point for accessing resolved (generics aware) return and argument types + of class members (methods, fields, constructors). +

    + Note that resolver instances are stateful in that resolvers cache resolved + types for efficiency. Since this is internal state and not directly visible + to callers, access to state is fully synchronized so that access from + multiple threads is safe.

    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected static HashMap<ClassKey,ResolvedType>_primitiveTypes +
      Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
      +
      protected ResolvedTypeCache_resolvedTypes +
      Simple cache of types resolved by this resolved; capped to last 200 resolved types.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TypeResolver() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _primitiveTypes

        +
        protected static final HashMap<ClassKey,ResolvedType> _primitiveTypes
        +
        Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse. Same goes for limited number + of other "standard" types...
        +
      • +
      + + + +
        +
      • +

        _resolvedTypes

        +
        protected final ResolvedTypeCache _resolvedTypes
        +
        Simple cache of types resolved by this resolved; capped to last 200 resolved types. + Caching works because type instances themselves are mostly immutable; + and properly synchronized in cases where transient data (raw members) are + accessed.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TypeResolver

        +
        public TypeResolver()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        resolve

        +
        public ResolvedType resolve(Type type,
        +                   Type... typeParameters)
        +
        Factory method for resolving given base type + using specified types as type parameters. + Sample usage would be: +
        +  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
        +
        + which would be equivalent to +
        +  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
        +
        + Note that you can mix different types of type parameters, whether already + resolved (ResolvedType), type-erased (Class) or + generic type reference (GenericType).
        +
      • +
      + + + +
        +
      • +

        arrayType

        +
        public ResolvedArrayType arrayType(Type elementType)
        +
        Factory method for constructing array type of given element type.
        +
      • +
      + + + +
        +
      • +

        resolve

        +
        public ResolvedType resolve(TypeBindings typeBindings,
        +                   Type jdkType)
        +
        Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables. +

        + Use of this method is discouraged (use if and only if you really know what you + are doing!); but if used, type bindings passed should come from ResolvedType + instance of declaring class (or interface). +

        + NOTE: order of arguments was reversed for 0.8, to avoid problems with + overload varargs method.

        +
      • +
      + + + +
        +
      • +

        resolveSubtype

        +
        public ResolvedType resolveSubtype(ResolvedType supertype,
        +                          Class<?> subtype)
        +                            throws IllegalArgumentException,
        +                                   UnsupportedOperationException
        +
        Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must properly extend or implement specified supertype). +

        + A typical use case here is to refine a generic type; for example, given + that we have generic type like List<Integer>, but we want + a more specific implementation type like + class ArrayList but with same parameterization (here just Integer), + we could achieve it by: +

        +  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
        +  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
        +
        + (in this case, it would have been simpler to resolve directly; but in some + cases we are handled supertype and want to refine it, in which case steps + would be the same but separated by other code) +

        + Note that this method will fail if extension can not succeed; either because + this type is not extendable (sub-classable) -- which is true for primitive + and array types -- or because given class is not a subtype of this type. + To check whether subtyping could succeed, you can call + ResolvedType.canCreateSubtypes() to see if supertype can ever + be extended.

        +
        Parameters:
        supertype - Type to subtype (extend)
        subtype - Type-erased sub-class or sub-interface
        +
        Returns:
        Resolved subtype
        +
        Throws:
        +
        IllegalArgumentException - If this type can be extended in general, but not into specified sub-class
        +
        UnsupportedOperationException - If this type can not be sub-classed
        +
      • +
      + + + +
        +
      • +

        isSelfReference

        +
        public static boolean isSelfReference(ResolvedType type)
        +
        Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html new file mode 100644 index 0000000..0d97f74 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.StdConfiguration.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration

+
+
No usage of com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html new file mode 100644 index 0000000..6c1705f --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationConfiguration.html @@ -0,0 +1,215 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationConfiguration (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationConfiguration

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html new file mode 100644 index 0000000..9475645 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationInclusion.html @@ -0,0 +1,279 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationInclusion (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationInclusion

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html new file mode 100644 index 0000000..89d606a --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdBuilder.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdBuilder (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdBuilder

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html new file mode 100644 index 0000000..70d4dc8 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.StdImpl.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides.StdImpl (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationOverrides.StdImpl

+
+
No usage of com.fasterxml.classmate.AnnotationOverrides.StdImpl
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html new file mode 100644 index 0000000..4c68af2 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/AnnotationOverrides.html @@ -0,0 +1,199 @@ + + + + + + +Uses of Class com.fasterxml.classmate.AnnotationOverrides (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.AnnotationOverrides

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/Annotations.html b/javadoc/1.3/com/fasterxml/classmate/class-use/Annotations.html new file mode 100644 index 0000000..6bcda67 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/Annotations.html @@ -0,0 +1,267 @@ + + + + + + +Uses of Class com.fasterxml.classmate.Annotations (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.Annotations

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/Filter.html b/javadoc/1.3/com/fasterxml/classmate/class-use/Filter.html new file mode 100644 index 0000000..89afa68 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/Filter.html @@ -0,0 +1,257 @@ + + + + + + +Uses of Interface com.fasterxml.classmate.Filter (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Interface
com.fasterxml.classmate.Filter

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/GenericType.html b/javadoc/1.3/com/fasterxml/classmate/class-use/GenericType.html new file mode 100644 index 0000000..f854be7 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/GenericType.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class com.fasterxml.classmate.GenericType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.GenericType

+
+
No usage of com.fasterxml.classmate.GenericType
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/MemberResolver.html b/javadoc/1.3/com/fasterxml/classmate/class-use/MemberResolver.html new file mode 100644 index 0000000..794d097 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/MemberResolver.html @@ -0,0 +1,176 @@ + + + + + + +Uses of Class com.fasterxml.classmate.MemberResolver (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.MemberResolver

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedType.html b/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedType.html new file mode 100644 index 0000000..5c0b104 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedType.html @@ -0,0 +1,921 @@ + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.ResolvedType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html b/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html new file mode 100644 index 0000000..089525c --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/ResolvedTypeWithMembers.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.fasterxml.classmate.ResolvedTypeWithMembers (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.ResolvedTypeWithMembers

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/TypeBindings.html b/javadoc/1.3/com/fasterxml/classmate/class-use/TypeBindings.html new file mode 100644 index 0000000..edc4eb3 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/TypeBindings.html @@ -0,0 +1,311 @@ + + + + + + +Uses of Class com.fasterxml.classmate.TypeBindings (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.TypeBindings

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/class-use/TypeResolver.html b/javadoc/1.3/com/fasterxml/classmate/class-use/TypeResolver.html new file mode 100644 index 0000000..ab77bfa --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/class-use/TypeResolver.html @@ -0,0 +1,192 @@ + + + + + + +Uses of Class com.fasterxml.classmate.TypeResolver (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.TypeResolver

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/HierarchicType.html b/javadoc/1.3/com/fasterxml/classmate/members/HierarchicType.html new file mode 100644 index 0000000..3bd9e20 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/HierarchicType.html @@ -0,0 +1,427 @@ + + + + + + +HierarchicType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class HierarchicType

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _isMixin

        +
        protected final boolean _isMixin
        +
        Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
        +
      • +
      + + + + + + + +
        +
      • +

        _priority

        +
        protected final int _priority
        +
        Relative priority of this type in hierarchy; higher priority members can override + lower priority members. Priority values are unique and are based on type index + (starting from 0), although they are not to be used for indexing.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HierarchicType

        +
        public HierarchicType(ResolvedType type,
        +              boolean mixin,
        +              int priority)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getErasedType

        +
        public Class<?> getErasedType()
        +
      • +
      + + + +
        +
      • +

        isMixin

        +
        public boolean isMixin()
        +
      • +
      + + + +
        +
      • +

        getPriority

        +
        public int getPriority()
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/RawConstructor.html b/javadoc/1.3/com/fasterxml/classmate/members/RawConstructor.html new file mode 100644 index 0000000..706a179 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/RawConstructor.html @@ -0,0 +1,384 @@ + + + + + + +RawConstructor (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class RawConstructor

+
+
+ +
+
    +
  • +
    +
    +
    public final class RawConstructor
    +extends RawMember
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/RawField.html b/javadoc/1.3/com/fasterxml/classmate/members/RawField.html new file mode 100644 index 0000000..a17b42e --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/RawField.html @@ -0,0 +1,379 @@ + + + + + + +RawField (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class RawField

+
+
+ +
+
    +
  • +
    +
    +
    public final class RawField
    +extends RawMember
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _field

        +
        protected final Field _field
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        isTransient

        +
        public boolean isTransient()
        +
      • +
      + + + +
        +
      • +

        isVolatile

        +
        public boolean isVolatile()
        +
      • +
      + + + + + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Specified by:
        +
        hashCode in class RawMember
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/RawMember.html b/javadoc/1.3/com/fasterxml/classmate/members/RawMember.html new file mode 100644 index 0000000..5fccd22 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/RawMember.html @@ -0,0 +1,478 @@ + + + + + + +RawMember (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class RawMember

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    RawConstructor, RawField, RawMethod
    +
    +
    +
    +
    public abstract class RawMember
    +extends Object
    +
    Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution. + Instances are typically created by ResolvedType + when requested, and form the input to eventual full flattening of type members.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _declaringType

        +
        protected final ResolvedType _declaringType
        +
        ResolvedType (class with generic type parameters) that declared + this member
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RawMember

        +
        protected RawMember(ResolvedType context)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDeclaringType

        +
        public final ResolvedType getDeclaringType()
        +
      • +
      + + + +
        +
      • +

        getRawMember

        +
        public abstract Member getRawMember()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public String getName()
        +
      • +
      + + + +
        +
      • +

        isStatic

        +
        public boolean isStatic()
        +
      • +
      + + + +
        +
      • +

        isFinal

        +
        public boolean isFinal()
        +
      • +
      + + + +
        +
      • +

        isPrivate

        +
        public boolean isPrivate()
        +
      • +
      + + + +
        +
      • +

        isProtected

        +
        public boolean isProtected()
        +
      • +
      + + + +
        +
      • +

        isPublic

        +
        public boolean isPublic()
        +
      • +
      + + + +
        +
      • +

        getAnnotations

        +
        public Annotation[] getAnnotations()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public abstract boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public abstract int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getModifiers

        +
        protected final int getModifiers()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/RawMethod.html b/javadoc/1.3/com/fasterxml/classmate/members/RawMethod.html new file mode 100644 index 0000000..ea6f044 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/RawMethod.html @@ -0,0 +1,431 @@ + + + + + + +RawMethod (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class RawMethod

+
+
+ +
+
    +
  • +
    +
    +
    public final class RawMethod
    +extends RawMember
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _method

        +
        protected final Method _method
        +
      • +
      + + + +
        +
      • +

        _hashCode

        +
        protected final int _hashCode
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        isAbstract

        +
        public boolean isAbstract()
        +
      • +
      + + + +
        +
      • +

        isStrict

        +
        public boolean isStrict()
        +
      • +
      + + + +
        +
      • +

        isNative

        +
        public boolean isNative()
        +
      • +
      + + + +
        +
      • +

        isSynchronized

        +
        public boolean isSynchronized()
        +
      • +
      + + + +
        +
      • +

        createKey

        +
        public MethodKey createKey()
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Specified by:
        +
        hashCode in class RawMember
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/ResolvedConstructor.html b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedConstructor.html new file mode 100644 index 0000000..b9710ad --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedConstructor.html @@ -0,0 +1,284 @@ + + + + + + +ResolvedConstructor (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class ResolvedConstructor

+
+
+ +
+
    +
  • +
    +
    +
    public final class ResolvedConstructor
    +extends ResolvedParameterizedMember<Constructor<?>>
    +
    Class that represents a constructor that has fully resolved generic + type information and annotation information.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/ResolvedField.html b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedField.html new file mode 100644 index 0000000..8cc275c --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedField.html @@ -0,0 +1,326 @@ + + + + + + +ResolvedField (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class ResolvedField

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMember.html b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMember.html new file mode 100644 index 0000000..0ac9b00 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMember.html @@ -0,0 +1,609 @@ + + + + + + +ResolvedMember (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class ResolvedMember<T extends Member>

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    ResolvedField, ResolvedParameterizedMember
    +
    +
    +
    +
    public abstract class ResolvedMember<T extends Member>
    +extends Object
    +
    Fully type-resolved equivalent of RawMember. Only members "that matter" (ones not + overridden, or filtered out) are resolved, since resolution process can add non-trivial + overhead.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _declaringType

        +
        protected final ResolvedType _declaringType
        +
        ResolvedType (class with generic type parameters) that declared + this member
        +
      • +
      + + + +
        +
      • +

        _annotations

        +
        protected final Annotations _annotations
        +
      • +
      + + + +
        +
      • +

        _member

        +
        protected final T extends Member _member
        +
      • +
      + + + + + + + +
        +
      • +

        _hashCode

        +
        protected final int _hashCode
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        applyOverride

        +
        public void applyOverride(Annotation override)
        +
      • +
      + + + +
        +
      • +

        applyOverrides

        +
        public void applyOverrides(Annotations overrides)
        +
      • +
      + + + +
        +
      • +

        applyDefault

        +
        public void applyDefault(Annotation override)
        +
      • +
      + + + + + + + +
        +
      • +

        getAnnotations

        +
        public Annotations getAnnotations()
        +
      • +
      + + + +
        +
      • +

        getDeclaringType

        +
        public final ResolvedType getDeclaringType()
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public ResolvedType getType()
        +
        Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
        +
      • +
      + + + +
        +
      • +

        getRawMember

        +
        public T getRawMember()
        +
        Returns JDK object that represents member.
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public String getName()
        +
      • +
      + + + +
        +
      • +

        isStatic

        +
        public boolean isStatic()
        +
      • +
      + + + +
        +
      • +

        isFinal

        +
        public boolean isFinal()
        +
      • +
      + + + +
        +
      • +

        isPrivate

        +
        public boolean isPrivate()
        +
      • +
      + + + +
        +
      • +

        isProtected

        +
        public boolean isProtected()
        +
      • +
      + + + +
        +
      • +

        isPublic

        +
        public boolean isPublic()
        +
      • +
      + + + + + + + +
        +
      • +

        getModifiers

        +
        protected final int getModifiers()
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMethod.html b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMethod.html new file mode 100644 index 0000000..7ac213d --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedMethod.html @@ -0,0 +1,386 @@ + + + + + + +ResolvedMethod (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class ResolvedMethod

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/ResolvedParameterizedMember.html b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedParameterizedMember.html new file mode 100644 index 0000000..c2868ff --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/ResolvedParameterizedMember.html @@ -0,0 +1,432 @@ + + + + + + +ResolvedParameterizedMember (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.members
+

Class ResolvedParameterizedMember<T extends Member>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _paramTypes

        +
        protected final ResolvedType[] _paramTypes
        +
      • +
      + + + +
        +
      • +

        _paramAnnotations

        +
        protected final Annotations[] _paramAnnotations
        +
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getParameterAnnotations

        +
        public Annotations getParameterAnnotations(int index)
        +
      • +
      + + + +
        +
      • +

        applyParamOverride

        +
        public void applyParamOverride(int index,
        +                      Annotation override)
        +
      • +
      + + + +
        +
      • +

        applyParamOverrides

        +
        public void applyParamOverrides(int index,
        +                       Annotations overrides)
        +
      • +
      + + + +
        +
      • +

        applyParamDefault

        +
        public void applyParamDefault(int index,
        +                     Annotation defaultValue)
        +
      • +
      + + + +
        +
      • +

        getParam

        +
        public <A extends Annotation> A getParam(int index,
        +                                Class<A> cls)
        +
      • +
      + + + +
        +
      • +

        getArgumentCount

        +
        public int getArgumentCount()
        +
        Returns number of arguments method takes.
        +
      • +
      + + + +
        +
      • +

        getArgumentType

        +
        public ResolvedType getArgumentType(int index)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/HierarchicType.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/HierarchicType.html new file mode 100644 index 0000000..cdc773a --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/HierarchicType.html @@ -0,0 +1,224 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.HierarchicType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.HierarchicType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawConstructor.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawConstructor.html new file mode 100644 index 0000000..c658140 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawConstructor.html @@ -0,0 +1,299 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.RawConstructor (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.RawConstructor

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawField.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawField.html new file mode 100644 index 0000000..6553de1 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawField.html @@ -0,0 +1,323 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.RawField (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.RawField

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMember.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMember.html new file mode 100644 index 0000000..c52bf8c --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMember.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMember (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.RawMember

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMethod.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMethod.html new file mode 100644 index 0000000..3b2a60e --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/RawMethod.html @@ -0,0 +1,323 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.RawMethod (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.RawMethod

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html new file mode 100644 index 0000000..e524d81 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedConstructor.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedConstructor (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.ResolvedConstructor

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedField.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedField.html new file mode 100644 index 0000000..bdde6a6 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedField.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedField (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.ResolvedField

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html new file mode 100644 index 0000000..bb120fe --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMember.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMember (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.ResolvedMember

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html new file mode 100644 index 0000000..ca75740 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedMethod.html @@ -0,0 +1,227 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedMethod (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.ResolvedMethod

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedParameterizedMember.html b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedParameterizedMember.html new file mode 100644 index 0000000..edd18dd --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/class-use/ResolvedParameterizedMember.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Class com.fasterxml.classmate.members.ResolvedParameterizedMember (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.members.ResolvedParameterizedMember

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/package-frame.html b/javadoc/1.3/com/fasterxml/classmate/members/package-frame.html new file mode 100644 index 0000000..d2d28df --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/package-frame.html @@ -0,0 +1,29 @@ + + + + + + +com.fasterxml.classmate.members (ClassMate 1.3.0 API) + + + + +

com.fasterxml.classmate.members

+ + + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/package-summary.html b/javadoc/1.3/com/fasterxml/classmate/members/package-summary.html new file mode 100644 index 0000000..103e1b6 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/package-summary.html @@ -0,0 +1,196 @@ + + + + + + +com.fasterxml.classmate.members (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package com.fasterxml.classmate.members

+
+
Package that contains implementations of various member types + (methods, fields, constructors)
+
+

See: Description

+
+
+ + + + +

Package com.fasterxml.classmate.members Description

+
Package that contains implementations of various member types + (methods, fields, constructors)
+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/package-tree.html b/javadoc/1.3/com/fasterxml/classmate/members/package-tree.html new file mode 100644 index 0000000..1486c52 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/package-tree.html @@ -0,0 +1,148 @@ + + + + + + +com.fasterxml.classmate.members Class Hierarchy (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.fasterxml.classmate.members

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/members/package-use.html b/javadoc/1.3/com/fasterxml/classmate/members/package-use.html new file mode 100644 index 0000000..8ab178b --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/members/package-use.html @@ -0,0 +1,247 @@ + + + + + + +Uses of Package com.fasterxml.classmate.members (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Package
com.fasterxml.classmate.members

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/package-frame.html b/javadoc/1.3/com/fasterxml/classmate/package-frame.html new file mode 100644 index 0000000..1764071 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/package-frame.html @@ -0,0 +1,39 @@ + + + + + + +com.fasterxml.classmate (ClassMate 1.3.0 API) + + + + +

com.fasterxml.classmate

+ + + diff --git a/javadoc/1.3/com/fasterxml/classmate/package-summary.html b/javadoc/1.3/com/fasterxml/classmate/package-summary.html new file mode 100644 index 0000000..734c9c0 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/package-summary.html @@ -0,0 +1,272 @@ + + + + + + +com.fasterxml.classmate (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package com.fasterxml.classmate

+
+
Package that contains main public interface of ClassMate + package.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    Filter<T> +
    Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    AnnotationConfiguration +
    Interface for object that determines handling of annotations in regards + to inheritance, overrides.
    +
    AnnotationConfiguration.StdConfiguration +
    Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
    +
    AnnotationOverrides +
    Interface for object that can provide mix-ins to override annotations.
    +
    AnnotationOverrides.StdBuilder +
    To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
    +
    AnnotationOverrides.StdImpl +
    Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
    +
    Annotations +
    Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
    +
    GenericType<T> +
    This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
    +
    MemberResolver +
    Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
    +
    ResolvedType 
    ResolvedTypeWithMembers +
    Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
    +
    TypeBindings +
    Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
    +
    TypeResolver +
    Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    AnnotationInclusion +
    Enumeration that defines different settings for handling behavior + of individual annotations
    +
    +
  • +
+ + + +

Package com.fasterxml.classmate Description

+
Package that contains main public interface of ClassMate + package. +

+ Most commonly resolution starts with TypeResolver, + using its resolve() method, which returns a + ResolvedType instance. + These type objects contain all necessary information about type itself; + but if type information on members (fields, methods, constructors, static + members) is needed, MemberResolver can + resolve types for members: it takes ResolvedTypes.

+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/package-tree.html b/javadoc/1.3/com/fasterxml/classmate/package-tree.html new file mode 100644 index 0000000..e1bd458 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/package-tree.html @@ -0,0 +1,163 @@ + + + + + + +com.fasterxml.classmate Class Hierarchy (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.fasterxml.classmate

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+
    +
  • com.fasterxml.classmate.Filter<T>
  • +
+

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/package-use.html b/javadoc/1.3/com/fasterxml/classmate/package-use.html new file mode 100644 index 0000000..9a5ea19 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/package-use.html @@ -0,0 +1,292 @@ + + + + + + +Uses of Package com.fasterxml.classmate (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Package
com.fasterxml.classmate

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/ResolvedArrayType.html b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedArrayType.html new file mode 100644 index 0000000..f4c47db --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedArrayType.html @@ -0,0 +1,579 @@ + + + + + + +ResolvedArrayType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class ResolvedArrayType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public final class ResolvedArrayType
    +extends ResolvedType
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html new file mode 100644 index 0000000..ec790a0 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedInterfaceType.html @@ -0,0 +1,648 @@ + + + + + + +ResolvedInterfaceType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class ResolvedInterfaceType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public class ResolvedInterfaceType
    +extends ResolvedType
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/ResolvedObjectType.html b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedObjectType.html new file mode 100644 index 0000000..63be0e1 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedObjectType.html @@ -0,0 +1,856 @@ + + + + + + +ResolvedObjectType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class ResolvedObjectType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public class ResolvedObjectType
    +extends ResolvedType
    +
    Type implementation for classes that do not represent interfaces, + primitive or array types.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html new file mode 100644 index 0000000..fa25261 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedPrimitiveType.html @@ -0,0 +1,702 @@ + + + + + + +ResolvedPrimitiveType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class ResolvedPrimitiveType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public final class ResolvedPrimitiveType
    +extends ResolvedType
    +
    Type used for Java primitive types (which does not include arrays here). +

    + Since set of primitive types is bounded, constructor is defined as protected, + and class final; that is, new primitive types are not to be constructed + by calling applications.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _signature

        +
        protected final String _signature
        +
        Primitive types have single-character Signature, easy and efficient + to just store here
        +
      • +
      + + + +
        +
      • +

        _description

        +
        protected final String _description
        +
        Human-readable description should be simple as well
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ResolvedPrimitiveType

        +
        protected ResolvedPrimitiveType(Class<?> erased,
        +                     char sig,
        +                     String desc)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html new file mode 100644 index 0000000..f13f939 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/ResolvedRecursiveType.html @@ -0,0 +1,671 @@ + + + + + + +ResolvedRecursiveType (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class ResolvedRecursiveType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public class ResolvedRecursiveType
    +extends ResolvedType
    +
    Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class. + Underlying information is achievable (for full resolution), but + not exposed using super type (parent) accessors; and has special + handling when used for constructing descriptions.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/TypePlaceHolder.html b/javadoc/1.3/com/fasterxml/classmate/types/TypePlaceHolder.html new file mode 100644 index 0000000..3eaae9d --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/TypePlaceHolder.html @@ -0,0 +1,619 @@ + + + + + + +TypePlaceHolder (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.types
+

Class TypePlaceHolder

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Type
    +
    +
    +
    +
    public class TypePlaceHolder
    +extends ResolvedType
    +
    Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html new file mode 100644 index 0000000..5e59bd7 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedArrayType.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedArrayType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.ResolvedArrayType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html new file mode 100644 index 0000000..1401fe0 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedInterfaceType.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedInterfaceType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.ResolvedInterfaceType

+
+
No usage of com.fasterxml.classmate.types.ResolvedInterfaceType
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html new file mode 100644 index 0000000..e12a525 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedObjectType.html @@ -0,0 +1,191 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedObjectType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.ResolvedObjectType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html new file mode 100644 index 0000000..48a8661 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedPrimitiveType.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedPrimitiveType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.ResolvedPrimitiveType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html new file mode 100644 index 0000000..d3fabcd --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/ResolvedRecursiveType.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.ResolvedRecursiveType (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.ResolvedRecursiveType

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html b/javadoc/1.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html new file mode 100644 index 0000000..0abacf2 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/class-use/TypePlaceHolder.html @@ -0,0 +1,117 @@ + + + + + + +Uses of Class com.fasterxml.classmate.types.TypePlaceHolder (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.types.TypePlaceHolder

+
+
No usage of com.fasterxml.classmate.types.TypePlaceHolder
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/package-frame.html b/javadoc/1.3/com/fasterxml/classmate/types/package-frame.html new file mode 100644 index 0000000..a8bf0f1 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +com.fasterxml.classmate.types (ClassMate 1.3.0 API) + + + + +

com.fasterxml.classmate.types

+ + + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/package-summary.html b/javadoc/1.3/com/fasterxml/classmate/types/package-summary.html new file mode 100644 index 0000000..b4ca45e --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/package-summary.html @@ -0,0 +1,178 @@ + + + + + + +com.fasterxml.classmate.types (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package com.fasterxml.classmate.types

+
+
Package that contains ResolvedType + implementation classes.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ResolvedArrayType 
    ResolvedInterfaceType 
    ResolvedObjectType +
    Type implementation for classes that do not represent interfaces, + primitive or array types.
    +
    ResolvedPrimitiveType +
    Type used for Java primitive types (which does not include arrays here).
    +
    ResolvedRecursiveType +
    Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
    +
    TypePlaceHolder +
    Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
    +
    +
  • +
+ + + +

Package com.fasterxml.classmate.types Description

+
Package that contains ResolvedType + implementation classes.
+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/package-tree.html b/javadoc/1.3/com/fasterxml/classmate/types/package-tree.html new file mode 100644 index 0000000..84a07cb --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/package-tree.html @@ -0,0 +1,139 @@ + + + + + + +com.fasterxml.classmate.types Class Hierarchy (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.fasterxml.classmate.types

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/types/package-use.html b/javadoc/1.3/com/fasterxml/classmate/types/package-use.html new file mode 100644 index 0000000..9b44ad5 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/types/package-use.html @@ -0,0 +1,208 @@ + + + + + + +Uses of Package com.fasterxml.classmate.types (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Package
com.fasterxml.classmate.types

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/ClassKey.html b/javadoc/1.3/com/fasterxml/classmate/util/ClassKey.html new file mode 100644 index 0000000..aa6d70e --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/ClassKey.html @@ -0,0 +1,320 @@ + + + + + + +ClassKey (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.util
+

Class ClassKey

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/ClassStack.html b/javadoc/1.3/com/fasterxml/classmate/util/ClassStack.html new file mode 100644 index 0000000..c342a94 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/ClassStack.html @@ -0,0 +1,361 @@ + + + + + + +ClassStack (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.util
+

Class ClassStack

+
+
+ +
+
    +
  • +
    +
    +
    public final class ClassStack
    +extends Object
    +
    Simple helper class used to keep track of 'call stack' for classes being referenced + (as well as unbound variables)
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        _parent

        +
        protected final ClassStack _parent
        +
      • +
      + + + +
        +
      • +

        _current

        +
        protected final Class<?> _current
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClassStack

        +
        public ClassStack(Class<?> rootType)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        child

        +
        public ClassStack child(Class<?> cls)
        +
        Returns:
        New stack frame, if addition is ok; null if not
        +
      • +
      + + + +
        +
      • +

        addSelfReference

        +
        public void addSelfReference(ResolvedRecursiveType ref)
        +
        Method called to indicate that there is a self-reference from + deeper down in stack pointing into type this stack frame represents.
        +
      • +
      + + + +
        +
      • +

        resolveSelfReferences

        +
        public void resolveSelfReferences(ResolvedType resolved)
        +
        Method called when type that this stack frame represents is + fully resolved, allowing self-references to be completed + (if there are any)
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/MethodKey.html b/javadoc/1.3/com/fasterxml/classmate/util/MethodKey.html new file mode 100644 index 0000000..d2892d7 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/MethodKey.html @@ -0,0 +1,321 @@ + + + + + + +MethodKey (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.util
+

Class MethodKey

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MethodKey

        +
        public MethodKey(String name)
        +
      • +
      + + + +
        +
      • +

        MethodKey

        +
        public MethodKey(String name,
        +         Class<?>[] argTypes)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        equals

        +
        public boolean equals(Object o)
        +
        Equality means name is the same and argument type erasures as well.
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html b/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..f9624bd --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.Key.html @@ -0,0 +1,298 @@ + + + + + + +ResolvedTypeCache.Key (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.util
+

Class ResolvedTypeCache.Key

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.fasterxml.classmate.util.ResolvedTypeCache.Key
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    ResolvedTypeCache
    +
    +
    +
    +
    public static class ResolvedTypeCache.Key
    +extends Object
    +
    Key used for type entries.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ResolvedTypeCache.Key

        +
        public ResolvedTypeCache.Key(Class<?> simpleType)
        +
      • +
      + + + +
        +
      • +

        ResolvedTypeCache.Key

        +
        public ResolvedTypeCache.Key(Class<?> erasedType,
        +                     ResolvedType[] tp)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.html b/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.html new file mode 100644 index 0000000..710ba04 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/ResolvedTypeCache.html @@ -0,0 +1,400 @@ + + + + + + +ResolvedTypeCache (ClassMate 1.3.0 API) + + + + + + + + + + + +
+
com.fasterxml.classmate.util
+

Class ResolvedTypeCache

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    +
    public class ResolvedTypeCache
    +extends Object
    +implements Serializable
    +
    Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances. + Since usage pattern is such that caller needs synchronization, cache access methods + are fully synchronized so that caller need not do explicit synchronization.
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassKey.html b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassKey.html new file mode 100644 index 0000000..a8a2bdf --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassKey.html @@ -0,0 +1,247 @@ + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassKey (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.util.ClassKey

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassStack.html b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassStack.html new file mode 100644 index 0000000..4042a48 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ClassStack.html @@ -0,0 +1,176 @@ + + + + + + +Uses of Class com.fasterxml.classmate.util.ClassStack (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.util.ClassStack

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/class-use/MethodKey.html b/javadoc/1.3/com/fasterxml/classmate/util/class-use/MethodKey.html new file mode 100644 index 0000000..b532aa3 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/class-use/MethodKey.html @@ -0,0 +1,167 @@ + + + + + + +Uses of Class com.fasterxml.classmate.util.MethodKey (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.util.MethodKey

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html new file mode 100644 index 0000000..8bb0ad7 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.Key.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache.Key (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache.Key

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html new file mode 100644 index 0000000..3d4955e --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/class-use/ResolvedTypeCache.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Class com.fasterxml.classmate.util.ResolvedTypeCache (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Class
com.fasterxml.classmate.util.ResolvedTypeCache

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/package-frame.html b/javadoc/1.3/com/fasterxml/classmate/util/package-frame.html new file mode 100644 index 0000000..553ee41 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +com.fasterxml.classmate.util (ClassMate 1.3.0 API) + + + + +

com.fasterxml.classmate.util

+ + + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/package-summary.html b/javadoc/1.3/com/fasterxml/classmate/util/package-summary.html new file mode 100644 index 0000000..bcca942 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/package-summary.html @@ -0,0 +1,172 @@ + + + + + + +com.fasterxml.classmate.util (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Package com.fasterxml.classmate.util

+
+
Various utility classes used by ClassMate.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ClassKey +
    Helper class used as key when we need efficient Class-to-value lookups.
    +
    ClassStack +
    Simple helper class used to keep track of 'call stack' for classes being referenced + (as well as unbound variables)
    +
    MethodKey +
    Helper class needed when storing methods in maps.
    +
    ResolvedTypeCache +
    Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
    +
    ResolvedTypeCache.Key +
    Key used for type entries.
    +
    +
  • +
+ + + +

Package com.fasterxml.classmate.util Description

+
Various utility classes used by ClassMate.
+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/package-tree.html b/javadoc/1.3/com/fasterxml/classmate/util/package-tree.html new file mode 100644 index 0000000..f300251 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/package-tree.html @@ -0,0 +1,134 @@ + + + + + + +com.fasterxml.classmate.util Class Hierarchy (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.fasterxml.classmate.util

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/com/fasterxml/classmate/util/package-use.html b/javadoc/1.3/com/fasterxml/classmate/util/package-use.html new file mode 100644 index 0000000..f2d5ba4 --- /dev/null +++ b/javadoc/1.3/com/fasterxml/classmate/util/package-use.html @@ -0,0 +1,219 @@ + + + + + + +Uses of Package com.fasterxml.classmate.util (ClassMate 1.3.0 API) + + + + + + + + + + +
+

Uses of Package
com.fasterxml.classmate.util

+
+
+ +
+ + + + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/constant-values.html b/javadoc/1.3/constant-values.html new file mode 100644 index 0000000..372d4ef --- /dev/null +++ b/javadoc/1.3/constant-values.html @@ -0,0 +1,117 @@ + + + + + + +Constant Field Values (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/deprecated-list.html b/javadoc/1.3/deprecated-list.html new file mode 100644 index 0000000..6e94216 --- /dev/null +++ b/javadoc/1.3/deprecated-list.html @@ -0,0 +1,142 @@ + + + + + + +Deprecated List (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Deprecated API

+

Contents

+ +
+ + +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/help-doc.html b/javadoc/1.3/help-doc.html new file mode 100644 index 0000000..05ddfdb --- /dev/null +++ b/javadoc/1.3/help-doc.html @@ -0,0 +1,222 @@ + + + + + + +API Help (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/index-all.html b/javadoc/1.3/index-all.html new file mode 100644 index 0000000..9b35a03 --- /dev/null +++ b/javadoc/1.3/index-all.html @@ -0,0 +1,1504 @@ + + + + + + +Index (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K M N O P R S T V W _  + + +

A

+
+
actualType() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
actualType(ResolvedType) - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
add(Class<?>, Class<?>) - Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
 
+
add(ClassKey, Class<?>) - Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
 
+
add(Annotation) - Method in class com.fasterxml.classmate.Annotations
+
+
Method for adding specified annotation, overriding existing value + for the annotation type.
+
+
add(ResolvedType) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
addAll(Annotations) - Method in class com.fasterxml.classmate.Annotations
+
+
Method for adding all annotations from specified set, as overrides + to annotations this set has
+
+
addAsDefault(Annotation) - Method in class com.fasterxml.classmate.Annotations
+
+
Method for adding specified annotation if and only if no value + exists for the annotation type.
+
+
addSelfReference(ResolvedRecursiveType) - Method in class com.fasterxml.classmate.util.ClassStack
+
+
Method called to indicate that there is a self-reference from + deeper down in stack pointing into type this stack frame represents.
+
+
all() - Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
allTypesAndOverrides() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Accessor for getting full type hierarchy as priority-ordered list, from + the lowest precedence to highest precedence (main type, its mix-in overrides)
+
+
AnnotationConfiguration - Class in com.fasterxml.classmate
+
+
Interface for object that determines handling of annotations in regards + to inheritance, overrides.
+
+
AnnotationConfiguration() - Constructor for class com.fasterxml.classmate.AnnotationConfiguration
+
 
+
AnnotationConfiguration.StdConfiguration - Class in com.fasterxml.classmate
+
+
Simple implementation that can be configured with default behavior + for unknown annotations, as well as explicit behaviors for + enumerated annotation types.
+
+
AnnotationConfiguration.StdConfiguration(AnnotationInclusion) - Constructor for class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
AnnotationInclusion - Enum in com.fasterxml.classmate
+
+
Enumeration that defines different settings for handling behavior + of individual annotations
+
+
AnnotationOverrides - Class in com.fasterxml.classmate
+
+
Interface for object that can provide mix-ins to override annotations.
+
+
AnnotationOverrides() - Constructor for class com.fasterxml.classmate.AnnotationOverrides
+
 
+
AnnotationOverrides.StdBuilder - Class in com.fasterxml.classmate
+
+
To make it easy to use simple override implementation (where overrides + are direct and explicit), here is a build that allow constructing + such override instance.
+
+
AnnotationOverrides.StdBuilder() - Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
 
+
AnnotationOverrides.StdImpl - Class in com.fasterxml.classmate
+
+
Simple implementation configured with explicit associations with + target class as key, and overrides as ordered list of classes + (with first entry having precedence over later ones).
+
+
AnnotationOverrides.StdImpl(HashMap<ClassKey, List<Class<?>>>) - Constructor for class com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
 
+
Annotations - Class in com.fasterxml.classmate
+
+
Container class used for storing set of annotations resolved for types (classes) + as members (methods, fields, constructors).
+
+
Annotations() - Constructor for class com.fasterxml.classmate.Annotations
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
appendBriefDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
appendErasedSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
appendFullDescription(StringBuilder) - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
appendSignature(StringBuilder) - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
applyDefault(Annotation) - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
applyOverride(Annotation) - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
applyOverrides(Annotations) - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
applyParamDefault(int, Annotation) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
applyParamOverride(int, Annotation) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
applyParamOverrides(int, Annotations) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
arrayType(Type) - Method in class com.fasterxml.classmate.TypeResolver
+
+
Factory method for constructing array type of given element type.
+
+
asArray() - Method in class com.fasterxml.classmate.Annotations
+
 
+
asList() - Method in class com.fasterxml.classmate.Annotations
+
 
+
+ + + +

B

+
+
build() - Method in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
+
Method that will construct a AnnotationOverrides instance using + mappings that have been added using this builder
+
+
builder() - Static method in class com.fasterxml.classmate.AnnotationOverrides
+
+
Method for constructing builder for creating simple overrides provider + that just uses direct assignments (target-to-override classes)
+
+
+ + + +

C

+
+
canCreateSubtype(Class<?>) - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + will succeed for specific type; if false, it will fail with an exception; if tru it + will succeed.
+
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that can be used to check if call to TypeResolver.resolveSubtype(ResolvedType, Class) + may ever succeed; if false, it will fail with an exception, if true, it may succeed.
+
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
canCreateSubtypes() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
child(Class<?>) - Method in class com.fasterxml.classmate.util.ClassStack
+
 
+
ClassKey - Class in com.fasterxml.classmate.util
+
+
Helper class used as key when we need efficient Class-to-value lookups.
+
+
ClassKey(Class<?>) - Constructor for class com.fasterxml.classmate.util.ClassKey
+
 
+
ClassStack - Class in com.fasterxml.classmate.util
+
+
Simple helper class used to keep track of 'call stack' for classes being referenced + (as well as unbound variables)
+
+
ClassStack(Class<?>) - Constructor for class com.fasterxml.classmate.util.ClassStack
+
 
+
com.fasterxml.classmate - package com.fasterxml.classmate
+
+
Package that contains main public interface of ClassMate + package.
+
+
com.fasterxml.classmate.members - package com.fasterxml.classmate.members
+
+
Package that contains implementations of various member types + (methods, fields, constructors)
+
+
com.fasterxml.classmate.types - package com.fasterxml.classmate.types
+
+
Package that contains ResolvedType + implementation classes.
+
+
com.fasterxml.classmate.util - package com.fasterxml.classmate.util
+
+
Various utility classes used by ClassMate.
+
+
compareTo(ResolvedField) - Method in class com.fasterxml.classmate.members.ResolvedField
+
 
+
compareTo(ResolvedMethod) - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
compareTo(ClassKey) - Method in class com.fasterxml.classmate.util.ClassKey
+
 
+
create(Class<?>, List<ResolvedType>) - Static method in class com.fasterxml.classmate.TypeBindings
+
+
Factory method for constructing bindings for given class using specified type + parameters.
+
+
create(Class<?>, ResolvedType[]) - Static method in class com.fasterxml.classmate.TypeBindings
+
 
+
create(Class<?>, TypeBindings, ResolvedType, List<ResolvedType>) - Static method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
createKey() - Method in class com.fasterxml.classmate.members.RawConstructor
+
+
Although constructors are different from other methods, we can use + MethodKey easily.
+
+
createKey() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
+ + + +

D

+
+
DEFAULT_ANNOTATION_CONFIG - Static variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Default annotation configuration is to ignore all annotations types.
+
+
+ + + +

E

+
+
emptyBindings() - Static method in class com.fasterxml.classmate.TypeBindings
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.RawConstructor
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.RawField
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.util.ClassKey
+
 
+
equals(Object) - Method in class com.fasterxml.classmate.util.MethodKey
+
+
Equality means name is the same and argument type erasures as well.
+
+
equals(Object) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
 
+
+ + + +

F

+
+
Filter<T> - Interface in com.fasterxml.classmate
+
+
Interface that defines API for basic filtering objects, used to prune set + of things to include in result sets like flattened member lists.
+
+
find(Class<?>) - Method in class com.fasterxml.classmate.util.ClassStack
+
 
+
find(ResolvedTypeCache.Key) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
findBoundType(String) - Method in class com.fasterxml.classmate.TypeBindings
+
+
Find type bound to specified name, if there is one; returns bound type if so, null if not.
+
+
findSupertype(Class<?>) - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method for finding super type of this type that has specified type + erased signature.
+
+
+ + + +

G

+
+
GenericType<T> - Class in com.fasterxml.classmate
+
+
This class is used to pass full generics type information, and + avoid problems with type erasure (that basically removes most + usable type references from runtime Class objects).
+
+
GenericType() - Constructor for class com.fasterxml.classmate.GenericType
+
 
+
get(Class<A>) - Method in class com.fasterxml.classmate.Annotations
+
 
+
get(Class<A>) - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
getAnnotations() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
getAnnotations() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
getArgumentCount() - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
+
Returns number of arguments method takes.
+
+
getArgumentType(int) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
getArrayElementType() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that can be used to access element type of array types; will return + null for non-array types, and non-null type for array types.
+
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
To avoid infinite loops, will return null type
+
+
getArrayElementType() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
getBoundName(int) - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
getBoundType(int) - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
getBriefDescription() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Human-readable brief description of type, which does not include + information about super types.
+
+
getConstructors() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
getConstructors() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
getConstructors() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getConstructors() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getDeclaringType() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
getDeclaringType() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
getErasedSignature() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that returns type erased signature of the type; suitable + as non-generic signature some packages need
+
+
getErasedSignature() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getErasedType() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
getErasedType() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Returns type-erased Class that this resolved type has.
+
+
getFullDescription() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Human-readable full description of type, which includes specification + of super types (in brief format)
+
+
getFullDescription() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Returns ordered list of interfaces (in declaration order) that this type + implements.
+
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
To avoid infinite loops, will return empty list
+
+
getImplementedInterfaces() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
getInclusionForClass(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration
+
+
Method called to figure out how to handle instances of specified annotation + type when used as class annotation.
+
+
getInclusionForClass(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
getInclusionForConstructor(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration
+
+
Method called to figure out how to handle instances of specified annotation + type when used as constructor annotation.
+
+
getInclusionForConstructor(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
getInclusionForField(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration
+
+
Method called to figure out how to handle instances of specified annotation + type when used as field annotation.
+
+
getInclusionForField(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
getInclusionForMethod(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration
+
+
Method called to figure out how to handle instances of specified annotation + type when used as method annotation.
+
+
getInclusionForMethod(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
getInclusionForParameter(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration
+
+
Method called to figure out how to handle instances of specified annotation + type when used as parameter annotation.
+
+
getInclusionForParameter(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
getMemberFields() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
getMemberFields() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
getMemberFields() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getMemberFields() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getMemberMethods() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
getMemberMethods() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
getMemberMethods() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getMemberMethods() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getMemberMethods() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getModifiers() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
getModifiers() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
getName() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
getName() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
getParam(int, Class<A>) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
getParameterAnnotations(int) - Method in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
getParentClass() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Returns parent class of this type, if it has one; primitive types + and interfaces have no parent class, nor does Object type + Object.
+
+
getParentClass() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
getParentClass() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getParentClass() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getParentClass() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getParentClass() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
To avoid infinite loops, will return null;
+
+
getParentClass() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
getPriority() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
getRawMember() - Method in class com.fasterxml.classmate.members.RawConstructor
+
 
+
getRawMember() - Method in class com.fasterxml.classmate.members.RawField
+
 
+
getRawMember() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
getRawMember() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
getRawMember() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
+
Returns JDK object that represents member.
+
+
getReturnType() - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Accessor that must be used to find out actual type in + case of "self-reference"; case where type refers + recursive to itself (like, T implements Comparable<T>).
+
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getSelfReferencedType() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
getSignature() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that returns full generic signature of the type; suitable + as signature for things like ASM package.
+
+
getSignature() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
getStaticFields() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
getStaticFields() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for finding all static fields of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+
+
getStaticFields() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
getStaticFields() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getStaticFields() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getStaticMethods() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
getStaticMethods() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for finding all static methods of the main type (except for ones + possibly filtered out by filter) and applying annotation overrides, if any, + to annotations.
+
+
getStaticMethods() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
getStaticMethods() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
getType() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
getType() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
+
Returns type of this member; if it has one, for methods this is the + return type, for fields field type, and for constructors null.
+
+
getTypeBindings() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method for accessing bindings of type variables to resolved types in context + of this type.
+
+
getTypeParameters() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Returns list of generic type declarations for this type, in order they + are declared in class description.
+
+
getTypeParameters() - Method in class com.fasterxml.classmate.TypeBindings
+
+
Accessor for getting bound types in declaration order
+
+
+ + + +

H

+
+
hashCode() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
hashCode() - Method in class com.fasterxml.classmate.members.RawConstructor
+
 
+
hashCode() - Method in class com.fasterxml.classmate.members.RawField
+
 
+
hashCode() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
hashCode() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
hashCode() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
hashCode() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
hashCode() - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
hashCode() - Method in class com.fasterxml.classmate.util.ClassKey
+
 
+
hashCode() - Method in class com.fasterxml.classmate.util.MethodKey
+
 
+
hashCode() - Method in class com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
 
+
hasUnbound(String) - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
HierarchicType - Class in com.fasterxml.classmate.members
+
+
Container class used to enclose information about a single ResolvedType + that is part of ResolvedTypeWithMembers.
+
+
HierarchicType(ResolvedType, boolean, int) - Constructor for class com.fasterxml.classmate.members.HierarchicType
+
 
+
+ + + +

I

+
+
include(T) - Method in interface com.fasterxml.classmate.Filter
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
isAbstract() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
isArray() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that indicates whether this type is an array type.
+
+
isArray() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
isArray() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
isArray() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
isArray() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
isArray() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
isArray() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
isConcrete() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
isEmpty() - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
isFinal() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
isFinal() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
isInstanceOf(Class<?>) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
isInterface() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
isMixin() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
isNative() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
isNative() - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that indicates whether this type is one of small number of primitive + Java types; not including array types of primitive types but just basic + primitive types.
+
+
isPrimitive() - Method in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
isPrimitive() - Method in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
isPrivate() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
isPrivate() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
isProtected() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
isProtected() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
isPublic() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
isPublic() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
isSelfReference(ResolvedType) - Static method in class com.fasterxml.classmate.TypeResolver
+
+
Helper method that can be used to checked whether given resolved type + (with erased type of java.lang.Object) is a placeholder + for "self-reference"; these are nasty recursive ("self") types + needed with some interfaces
+
+
isStatic() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
isStatic() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
isStrict() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
isStrict() - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
isSynchronized() - Method in class com.fasterxml.classmate.members.RawMethod
+
 
+
isSynchronized() - Method in class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
isTransient() - Method in class com.fasterxml.classmate.members.RawField
+
 
+
isTransient() - Method in class com.fasterxml.classmate.members.ResolvedField
+
 
+
isVolatile() - Method in class com.fasterxml.classmate.members.RawField
+
 
+
isVolatile() - Method in class com.fasterxml.classmate.members.ResolvedField
+
 
+
iterator() - Method in class com.fasterxml.classmate.Annotations
+
 
+
+ + + +

K

+
+
key(Class<?>) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
+
Helper method for constructing reusable cache keys
+
+
key(Class<?>, ResolvedType[]) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
+
Helper method for constructing reusable cache keys
+
+
+ + + +

M

+
+
mainTypeAndOverrides() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Accessor for getting subset of type hierarchy which only contains main type + and possible overrides (mix-ins) it has, but not supertypes or their overrides.
+
+
MemberResolver - Class in com.fasterxml.classmate
+
+
Builder class used to completely resolve members (fields, methods, + constructors) of ResolvedTypes (generics-aware classes).
+
+
MemberResolver(TypeResolver) - Constructor for class com.fasterxml.classmate.MemberResolver
+
+
Constructor for resolver that does not include java.lang.Object + in type hierarchy
+
+
methodCanInherit(Annotation) - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
MethodKey - Class in com.fasterxml.classmate.util
+
+
Helper class needed when storing methods in maps.
+
+
MethodKey(String) - Constructor for class com.fasterxml.classmate.util.MethodKey
+
 
+
MethodKey(String, Class<?>[]) - Constructor for class com.fasterxml.classmate.util.MethodKey
+
 
+
mixInsFor(Class<?>) - Method in class com.fasterxml.classmate.AnnotationOverrides
+
+
Method called to find out which class(es) are to be used as source + for annotations to mix in for given type.
+
+
mixInsFor(ClassKey) - Method in class com.fasterxml.classmate.AnnotationOverrides
+
 
+
mixInsFor(ClassKey) - Method in class com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
 
+
+ + + +

N

+
+
NO_CONSTRUCTORS - Static variable in class com.fasterxml.classmate.ResolvedType
+
 
+
NO_FIELDS - Static variable in class com.fasterxml.classmate.ResolvedType
+
 
+
NO_METHODS - Static variable in class com.fasterxml.classmate.ResolvedType
+
 
+
NO_TYPES - Static variable in class com.fasterxml.classmate.ResolvedType
+
 
+
+ + + +

O

+
+
overridesOnly() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Accessor for finding just overrides for the main type (if any).
+
+
+ + + +

P

+
+
parameterCanInherit(Annotation) - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
put(ResolvedTypeCache.Key, ResolvedType) - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
+ + + +

R

+
+
RawConstructor - Class in com.fasterxml.classmate.members
+
 
+
RawConstructor(ResolvedType, Constructor<?>) - Constructor for class com.fasterxml.classmate.members.RawConstructor
+
 
+
RawField - Class in com.fasterxml.classmate.members
+
 
+
RawField(ResolvedType, Field) - Constructor for class com.fasterxml.classmate.members.RawField
+
 
+
RawMember - Class in com.fasterxml.classmate.members
+
+
Base class for all "raw" member (field, method, constructor) types; raw means that + actual types are not yet resolved, but relationship to declaring type is + retained for eventual resolution.
+
+
RawMember(ResolvedType) - Constructor for class com.fasterxml.classmate.members.RawMember
+
 
+
RawMethod - Class in com.fasterxml.classmate.members
+
 
+
RawMethod(ResolvedType, Method) - Constructor for class com.fasterxml.classmate.members.RawMethod
+
 
+
resolve(ResolvedType, AnnotationConfiguration, AnnotationOverrides) - Method in class com.fasterxml.classmate.MemberResolver
+
+
Method for constructing hierarchy object needed to fully resolve + member information, including basic type flattening as well as + addition of mix-in types in appropriate positions.
+
+
resolve(Type, Type...) - Method in class com.fasterxml.classmate.TypeResolver
+
+
Factory method for resolving given base type + using specified types as type parameters.
+
+
resolve(TypeBindings, Type) - Method in class com.fasterxml.classmate.TypeResolver
+
+
Factory method for resolving specified Java Type, given + TypeBindings needed to resolve any type variables.
+
+
resolveConstructor(RawConstructor) - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for resolving individual constructor completely
+
+
resolveConstructors() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method that will actually resolve full information (types, annotations) + for constructors of the main type.
+
+
ResolvedArrayType - Class in com.fasterxml.classmate.types
+
 
+
ResolvedArrayType(Class<?>, TypeBindings, ResolvedType) - Constructor for class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
ResolvedConstructor - Class in com.fasterxml.classmate.members
+
+
Class that represents a constructor that has fully resolved generic + type information and annotation information.
+
+
ResolvedConstructor(ResolvedType, Annotations, Constructor<?>, ResolvedType[]) - Constructor for class com.fasterxml.classmate.members.ResolvedConstructor
+
 
+
ResolvedField - Class in com.fasterxml.classmate.members
+
 
+
ResolvedField(ResolvedType, Annotations, Field, ResolvedType) - Constructor for class com.fasterxml.classmate.members.ResolvedField
+
 
+
ResolvedInterfaceType - Class in com.fasterxml.classmate.types
+
 
+
ResolvedInterfaceType(Class<?>, TypeBindings, ResolvedType[]) - Constructor for class com.fasterxml.classmate.types.ResolvedInterfaceType
+
 
+
ResolvedMember<T extends Member> - Class in com.fasterxml.classmate.members
+
+
Fully type-resolved equivalent of RawMember.
+
+
ResolvedMember(ResolvedType, Annotations, T, ResolvedType) - Constructor for class com.fasterxml.classmate.members.ResolvedMember
+
 
+
ResolvedMethod - Class in com.fasterxml.classmate.members
+
 
+
ResolvedMethod(ResolvedType, Annotations, Method, ResolvedType, ResolvedType[]) - Constructor for class com.fasterxml.classmate.members.ResolvedMethod
+
 
+
ResolvedObjectType - Class in com.fasterxml.classmate.types
+
+
Type implementation for classes that do not represent interfaces, + primitive or array types.
+
+
ResolvedObjectType(Class<?>, TypeBindings, ResolvedType, List<ResolvedType>) - Constructor for class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
ResolvedObjectType(Class<?>, TypeBindings, ResolvedType, ResolvedType[]) - Constructor for class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, List<ResolvedType>) - Constructor for class com.fasterxml.classmate.types.ResolvedObjectType
+
+
Deprecated.
+
+
ResolvedObjectType(Class<?>, TypeBindings, ResolvedObjectType, ResolvedType[]) - Constructor for class com.fasterxml.classmate.types.ResolvedObjectType
+
+
Deprecated.
+
+
ResolvedParameterizedMember<T extends Member> - Class in com.fasterxml.classmate.members
+
+
Base type for resolved members that take some parameters (e.g.
+
+
ResolvedParameterizedMember(ResolvedType, Annotations, T, ResolvedType, ResolvedType[]) - Constructor for class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
ResolvedPrimitiveType - Class in com.fasterxml.classmate.types
+
+
Type used for Java primitive types (which does not include arrays here).
+
+
ResolvedPrimitiveType(Class<?>, char, String) - Constructor for class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
ResolvedRecursiveType - Class in com.fasterxml.classmate.types
+
+
Specialized type placeholder used in cases where type definition is + recursive; to avoid infinite loop, reference that would be "back" in + hierarchy is represented by an instance of this class.
+
+
ResolvedRecursiveType(Class<?>, TypeBindings) - Constructor for class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
ResolvedType - Class in com.fasterxml.classmate
+
 
+
ResolvedType(Class<?>, TypeBindings) - Constructor for class com.fasterxml.classmate.ResolvedType
+
 
+
ResolvedTypeCache - Class in com.fasterxml.classmate.util
+
+
Simple LRU cache used for storing up to specified number of most recently accessed + ResolvedType instances.
+
+
ResolvedTypeCache(int) - Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
ResolvedTypeCache.Key - Class in com.fasterxml.classmate.util
+
+
Key used for type entries.
+
+
ResolvedTypeCache.Key(Class<?>) - Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
 
+
ResolvedTypeCache.Key(Class<?>, ResolvedType[]) - Constructor for class com.fasterxml.classmate.util.ResolvedTypeCache.Key
+
 
+
ResolvedTypeWithMembers - Class in com.fasterxml.classmate
+
+
Class that contains information about fully resolved members of a + type; resolution meaning that masking is handled for methods, and + all inheritable annotations are flattened using optional overrides + as well ("mix-in annotations").
+
+
ResolvedTypeWithMembers(TypeResolver, AnnotationConfiguration, HierarchicType, HierarchicType[], Filter<RawConstructor>, Filter<RawField>, Filter<RawMethod>) - Constructor for class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
resolveField(RawField) - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for resolving individual field completely
+
+
resolveMemberFields() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for fully resolving field definitions and associated annotations.
+
+
resolveMemberMethods() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
resolveMethod(RawMethod) - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for resolving individual method completely
+
+
resolveSelfReferences(ResolvedType) - Method in class com.fasterxml.classmate.util.ClassStack
+
+
Method called when type that this stack frame represents is + fully resolved, allowing self-references to be completed + (if there are any)
+
+
resolveStaticFields() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method for fully resolving static field definitions and associated annotations.
+
+
resolveStaticMethods() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Method that will actually resolve full information (types, annotations) + for static methods, using configured filter.
+
+
resolveSubtype(ResolvedType, Class<?>) - Method in class com.fasterxml.classmate.TypeResolver
+
+
Factory method for constructing sub-classing specified type; class specified + as sub-class must be compatible according to basic Java inheritance rules + (subtype must properly extend or implement specified supertype).
+
+
+ + + +

S

+
+
setConstructorFilter(Filter<RawConstructor>) - Method in class com.fasterxml.classmate.MemberResolver
+
 
+
setFieldFilter(Filter<RawField>) - Method in class com.fasterxml.classmate.MemberResolver
+
 
+
setIncludeLangObject(boolean) - Method in class com.fasterxml.classmate.MemberResolver
+
+
Configuration method for specifying whether members of java.lang.Object + are to be included in resolution; if false, no members from Object + are to be included; if true, will be included.
+
+
setInclusion(Class<? extends Annotation>, AnnotationInclusion) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
setMethodFilter(Filter<RawMethod>) - Method in class com.fasterxml.classmate.MemberResolver
+
 
+
setReference(ResolvedType) - Method in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
 
+
size() - Method in class com.fasterxml.classmate.Annotations
+
 
+
size() - Method in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
size() - Method in class com.fasterxml.classmate.TypeBindings
+
+
Returns number of bindings contained
+
+
size() - Method in class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
+ + + +

T

+
+
toString() - Method in class com.fasterxml.classmate.Annotations
+
 
+
toString() - Method in class com.fasterxml.classmate.members.HierarchicType
+
 
+
toString() - Method in class com.fasterxml.classmate.members.RawMember
+
 
+
toString() - Method in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
toString() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
toString() - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
toString() - Method in class com.fasterxml.classmate.util.ClassKey
+
 
+
toString() - Method in class com.fasterxml.classmate.util.MethodKey
+
 
+
TypeBindings - Class in com.fasterxml.classmate
+
+
Helper class used for storing binding of local type variables to + matching resolved types, in context of a single class.
+
+
typeParameterArray() - Method in class com.fasterxml.classmate.TypeBindings
+
 
+
typeParametersFor(Class<?>) - Method in class com.fasterxml.classmate.ResolvedType
+
+
Method that will try to find type parameterization this type + has for specified super type
+
+
TypePlaceHolder - Class in com.fasterxml.classmate.types
+
+
Placeholder used for resolving type assignments to figure out + type parameters for subtypes.
+
+
TypePlaceHolder(int) - Constructor for class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
TypeResolver - Class in com.fasterxml.classmate
+
+
Object that is used for resolving generic type information of a class + so that it is accessible using simple API.
+
+
TypeResolver() - Constructor for class com.fasterxml.classmate.TypeResolver
+
 
+
+ + + +

V

+
+
valueOf(String) - Static method in enum com.fasterxml.classmate.AnnotationInclusion
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum com.fasterxml.classmate.AnnotationInclusion
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
voidType() - Static method in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
 
+
+ + + +

W

+
+
withUnboundVariable(String) - Method in class com.fasterxml.classmate.TypeBindings
+
+
Method for creating an instance that has same bindings as this object, + plus an indicator for additional type variable that may be unbound within + this context; this is needed to resolve recursive self-references.
+
+
+ + + +

_

+
+
_actualType - Variable in class com.fasterxml.classmate.types.TypePlaceHolder
+
+
Type assigned during wildcard resolution
+
+
_annotationHandler - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Handler for resolving annotation information
+
+
_annotations - Variable in class com.fasterxml.classmate.Annotations
+
 
+
_annotations - Variable in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
_appendClassDescription(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_appendClassName(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_appendClassSignature(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_appendErasedClassSignature(StringBuilder) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_cfgIncludeLangObject - Variable in class com.fasterxml.classmate.MemberResolver
+
+
Configuration setting that determines whether members from + Object are included or not; by default + false meaning that they are not.
+
+
_constantFields - Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
Interfaces can have static final (constant) fields.
+
+
_constructor - Variable in class com.fasterxml.classmate.members.RawConstructor
+
 
+
_constructorFilter - Variable in class com.fasterxml.classmate.MemberResolver
+
+
Filter used for determining whether given + constructor + is to be included in aggregation of all + constructors.
+
+
_constructorFilter - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Filter to use for selecting constructors to include
+
+
_constructors - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
_constructors - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
+
Constructors declared by the resolved Object class.
+
+
_current - Variable in class com.fasterxml.classmate.util.ClassStack
+
 
+
_declaringType - Variable in class com.fasterxml.classmate.members.RawMember
+
+
ResolvedType (class with generic type parameters) that declared + this member
+
+
_declaringType - Variable in class com.fasterxml.classmate.members.ResolvedMember
+
+
ResolvedType (class with generic type parameters) that declared + this member
+
+
_defaultInclusion - Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
_description - Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
Human-readable description should be simple as well
+
+
_elementType - Variable in class com.fasterxml.classmate.types.ResolvedArrayType
+
 
+
_erasedType - Variable in class com.fasterxml.classmate.ResolvedType
+
 
+
_field - Variable in class com.fasterxml.classmate.members.RawField
+
 
+
_fieldFilter - Variable in class com.fasterxml.classmate.MemberResolver
+
+
Filter used for determining whether given + field (static or member) + is to be included in aggregation of all + fields.
+
+
_fieldFilter - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Filter to use for selecting fields to include
+
+
_gatherTypes(ResolvedType, Set<ClassKey>, List<ResolvedType>) - Method in class com.fasterxml.classmate.MemberResolver
+
 
+
_getConstructors() - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_getFields(boolean) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_getMethods(boolean) - Method in class com.fasterxml.classmate.ResolvedType
+
 
+
_hashCode - Variable in class com.fasterxml.classmate.members.RawConstructor
+
 
+
_hashCode - Variable in class com.fasterxml.classmate.members.RawMethod
+
 
+
_hashCode - Variable in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
_inclusionFor(Class<? extends Annotation>) - Method in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
_inclusions - Variable in class com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
+
 
+
_isMixin - Variable in class com.fasterxml.classmate.members.HierarchicType
+
+
Whether this type instance represents a mix-in; if so, it can only result in + addition of annotations but not in addition of actual members.
+
+
_mainType - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Leaf of the type hierarchy, i.e.
+
+
_map - Variable in class com.fasterxml.classmate.util.ResolvedTypeCache
+
 
+
_member - Variable in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
_memberFields - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
_memberFields - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
_memberMethods - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
_memberMethods - Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
Interface methods are all public and abstract.
+
+
_memberMethods - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
_method - Variable in class com.fasterxml.classmate.members.RawMethod
+
 
+
_methodFilter - Variable in class com.fasterxml.classmate.MemberResolver
+
+
Filter used for determining whether given + method (static or member) + is to be included in aggregation of all + methods.
+
+
_methodFilter - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Filter to use for selecting methods to include
+
+
_modifiers - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
+
Modifiers of the underlying class.
+
+
_ordinal - Variable in class com.fasterxml.classmate.types.TypePlaceHolder
+
 
+
_paramAnnotations - Variable in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
_paramTypes - Variable in class com.fasterxml.classmate.members.ResolvedParameterizedMember
+
 
+
_parent - Variable in class com.fasterxml.classmate.util.ClassStack
+
 
+
_primitiveTypes - Static variable in class com.fasterxml.classmate.TypeResolver
+
+
Since number of primitive types is small, and they are frequently needed, + let's actually pre-create them for efficient reuse.
+
+
_priority - Variable in class com.fasterxml.classmate.members.HierarchicType
+
+
Relative priority of this type in hierarchy; higher priority members can override + lower priority members.
+
+
_referencedType - Variable in class com.fasterxml.classmate.types.ResolvedRecursiveType
+
+
Actual fully resolved type; assigned once resolution is complete
+
+
_resolvedTypes - Variable in class com.fasterxml.classmate.TypeResolver
+
+
Simple cache of types resolved by this resolved; capped to last 200 resolved types.
+
+
_signature - Variable in class com.fasterxml.classmate.types.ResolvedPrimitiveType
+
+
Primitive types have single-character Signature, easy and efficient + to just store here
+
+
_staticFields - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
_staticFields - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
_staticMethods - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
 
+
_staticMethods - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
 
+
_superClass - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
+
While fundamentally super class has to be ResolvedObjectType + (or null for Object), we may need to hold on to + a ResolvedRecursiveType occasionally.
+
+
_superInterfaces - Variable in class com.fasterxml.classmate.types.ResolvedInterfaceType
+
+
List of interfaces this type implements; may be empty but never null
+
+
_superInterfaces - Variable in class com.fasterxml.classmate.types.ResolvedObjectType
+
+
List of interfaces this type implements; may be empty but never null
+
+
_targetsToOverrides - Variable in class com.fasterxml.classmate.AnnotationOverrides.StdBuilder
+
 
+
_targetsToOverrides - Variable in class com.fasterxml.classmate.AnnotationOverrides.StdImpl
+
 
+
_type - Variable in class com.fasterxml.classmate.members.HierarchicType
+
 
+
_type - Variable in class com.fasterxml.classmate.members.ResolvedMember
+
 
+
_typeBindings - Variable in class com.fasterxml.classmate.ResolvedType
+
+
Type bindings active when resolving members (methods, fields, + constructors) of this type
+
+
_typeResolver - Variable in class com.fasterxml.classmate.MemberResolver
+
+
Type resolved needed for resolving types of member objects + (method argument and return; field types; constructor argument types)
+
+
_typeResolver - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
Need to be able to resolve member types still
+
+
_types - Variable in class com.fasterxml.classmate.ResolvedTypeWithMembers
+
+
All types that hierarchy contains, in order of increasing precedence + (that is, later entries override members of earlier members)
+
+
+A B C D E F G H I K M N O P R S T V W _ 
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/index.html b/javadoc/1.3/index.html new file mode 100644 index 0000000..39e3778 --- /dev/null +++ b/javadoc/1.3/index.html @@ -0,0 +1,75 @@ + + + + + + +ClassMate 1.3.0 API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/javadoc/1.3/overview-frame.html b/javadoc/1.3/overview-frame.html new file mode 100644 index 0000000..ca7723e --- /dev/null +++ b/javadoc/1.3/overview-frame.html @@ -0,0 +1,24 @@ + + + + + + +Overview List (ClassMate 1.3.0 API) + + + + + + +

 

+ + diff --git a/javadoc/1.3/overview-summary.html b/javadoc/1.3/overview-summary.html new file mode 100644 index 0000000..21c1515 --- /dev/null +++ b/javadoc/1.3/overview-summary.html @@ -0,0 +1,154 @@ + + + + + + +Overview (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

ClassMate 1.3.0 API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.fasterxml.classmate +
Package that contains main public interface of ClassMate + package.
+
com.fasterxml.classmate.members +
Package that contains implementations of various member types + (methods, fields, constructors)
+
com.fasterxml.classmate.types +
Package that contains ResolvedType + implementation classes.
+
com.fasterxml.classmate.util +
Various utility classes used by ClassMate.
+
+
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/overview-tree.html b/javadoc/1.3/overview-tree.html new file mode 100644 index 0000000..7ec836c --- /dev/null +++ b/javadoc/1.3/overview-tree.html @@ -0,0 +1,199 @@ + + + + + + +Class Hierarchy (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + + +
+

Class Hierarchy

+ +

Interface Hierarchy

+
    +
  • com.fasterxml.classmate.Filter<T>
  • +
+

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/package-list b/javadoc/1.3/package-list new file mode 100644 index 0000000..1532090 --- /dev/null +++ b/javadoc/1.3/package-list @@ -0,0 +1,4 @@ +com.fasterxml.classmate +com.fasterxml.classmate.members +com.fasterxml.classmate.types +com.fasterxml.classmate.util diff --git a/javadoc/1.3/resources/background.gif b/javadoc/1.3/resources/background.gif new file mode 100644 index 0000000..f471940 Binary files /dev/null and b/javadoc/1.3/resources/background.gif differ diff --git a/javadoc/1.3/resources/tab.gif b/javadoc/1.3/resources/tab.gif new file mode 100644 index 0000000..1a73a83 Binary files /dev/null and b/javadoc/1.3/resources/tab.gif differ diff --git a/javadoc/1.3/resources/titlebar.gif b/javadoc/1.3/resources/titlebar.gif new file mode 100644 index 0000000..17443b3 Binary files /dev/null and b/javadoc/1.3/resources/titlebar.gif differ diff --git a/javadoc/1.3/resources/titlebar_end.gif b/javadoc/1.3/resources/titlebar_end.gif new file mode 100644 index 0000000..3ad78d4 Binary files /dev/null and b/javadoc/1.3/resources/titlebar_end.gif differ diff --git a/javadoc/1.3/serialized-form.html b/javadoc/1.3/serialized-form.html new file mode 100644 index 0000000..61f3a10 --- /dev/null +++ b/javadoc/1.3/serialized-form.html @@ -0,0 +1,351 @@ + + + + + + +Serialized Form (ClassMate 1.3.0 API) + + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + +
+ + +

Copyright © 2012–2015 fasterxml.com. All rights reserved.

+ + diff --git a/javadoc/1.3/stylesheet.css b/javadoc/1.3/stylesheet.css new file mode 100644 index 0000000..0aeaa97 --- /dev/null +++ b/javadoc/1.3/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} diff --git a/mvnw b/mvnw deleted file mode 100755 index 5643201..0000000 --- a/mvnw +++ /dev/null @@ -1,316 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/mvnw.cmd b/mvnw.cmd deleted file mode 100644 index 23b7079..0000000 --- a/mvnw.cmd +++ /dev/null @@ -1,188 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 361206c..0000000 --- a/pom.xml +++ /dev/null @@ -1,202 +0,0 @@ - - 4.0.0 - - com.fasterxml - oss-parent - 56 - - classmate - ClassMate - 1.7.1-SNAPSHOT - bundle - Library for introspecting types with full generic information - including resolving of field and method types. - - https://github.com/FasterXML/java-classmate - - scm:git:git@github.com:FasterXML/java-classmate.git - scm:git:git@github.com:FasterXML/java-classmate.git - https://github.com/FasterXML/java-classmate - HEAD - - - - tatu - Tatu Saloranta - tatu@fasterxml.com - - - blangel - Brian Langel - blangel@ocheyedan.net - - - - - UTF-8 - 1.8 - - com.fasterxml.classmate;version=${project.version}, -com.fasterxml.classmate.*;version=${project.version} - - com.fasterxml.classmate.util.* - - - - - - Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - fasterxml.com - https://fasterxml.com - - - - - - junit - junit - ${version.junit} - test - - - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus-staging - https://oss.sonatype.org/ - - b34f19b9cc6224 - - - - - maven-compiler-plugin - - ${version.jdk} - ${version.jdk} - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - ${version.jdk} - UTF-8 - - https://docs.oracle.com/javase/8/docs/api/ - - - - - attach-javadocs - verify - - jar - - - - - - - org.moditect - moditect-maven-plugin - - - add-module-infos - package - - add-module-info - - - true - - src/moditect/module-info.java - - - - - - - - - org.jacoco - jacoco-maven-plugin - - - - prepare-agent - - - - - report - test - - report - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/failing/*.java - - - - - - - - release-sign-artifacts - - - performRelease - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - - - - - diff --git a/src/main/java/com/fasterxml/classmate/AnnotationConfiguration.java b/src/main/java/com/fasterxml/classmate/AnnotationConfiguration.java deleted file mode 100644 index 2d1c519..0000000 --- a/src/main/java/com/fasterxml/classmate/AnnotationConfiguration.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.lang.annotation.Annotation; -import java.util.*; - -import com.fasterxml.classmate.util.ClassKey; - -/** - * Interface for object that determines handling of annotations in regards - * to inheritance, overrides. - */ -@SuppressWarnings("serial") -public abstract class AnnotationConfiguration implements Serializable -{ - /** - * Method called to figure out how to handle instances of specified annotation - * type when used as class annotation. - */ - public abstract AnnotationInclusion getInclusionForClass(Class annotationType); - - /** - * Method called to figure out how to handle instances of specified annotation - * type when used as constructor annotation. - *

- * Note that constructor annotations can never be inherited so this just determines - * between inclusion or non-inclusion. - */ - public abstract AnnotationInclusion getInclusionForConstructor(Class annotationType); - - /** - * Method called to figure out how to handle instances of specified annotation - * type when used as field annotation. - *

- * Note that field annotations can never be inherited so this just determines - * between inclusion or non-inclusion. - */ - public abstract AnnotationInclusion getInclusionForField(Class annotationType); - - /** - * Method called to figure out how to handle instances of specified annotation - * type when used as method annotation. - *

- * Note that method annotations can be inherited for member methods, but not for static - * methods; for static methods thereby this just determines between inclusion and - * non-inclusion. - */ - public abstract AnnotationInclusion getInclusionForMethod(Class annotationType); - - /** - * Method called to figure out how to handle instances of specified annotation - * type when used as parameter annotation. - *

- * Note that parameter annotations can be inherited for member methods, but not for static - * methods; for static methods thereby this just determines between inclusion and - * non-inclusion. - */ - public abstract AnnotationInclusion getInclusionForParameter(Class annotationType); - - /** - * Simple implementation that can be configured with default behavior - * for unknown annotations, as well as explicit behaviors for - * enumerated annotation types. Same default is used for both class and - * member method annotations (constructor, field and static method - * annotations are never inherited) - */ - public static class StdConfiguration extends AnnotationConfiguration implements Serializable - { - protected final AnnotationInclusion _defaultInclusion; - - protected final HashMap _inclusions = new HashMap(); - - public StdConfiguration(AnnotationInclusion defaultBehavior) - { - _defaultInclusion = defaultBehavior; - } - - @Override - public AnnotationInclusion getInclusionForClass(Class annotationType) { - return _inclusionFor(annotationType); - } - - @Override - public AnnotationInclusion getInclusionForConstructor(Class annotationType) { - return _inclusionFor(annotationType); - } - - @Override - public AnnotationInclusion getInclusionForField(Class annotationType) { - return getInclusionForClass(annotationType); - } - - @Override - public AnnotationInclusion getInclusionForMethod(Class annotationType) { - return getInclusionForClass(annotationType); - } - - @Override - public AnnotationInclusion getInclusionForParameter(Class annotationType) { - return getInclusionForClass(annotationType); - } - - public void setInclusion(Class annotationType, AnnotationInclusion incl) - { - _inclusions.put(new ClassKey(annotationType), incl); - } - - protected AnnotationInclusion _inclusionFor(Class annotationType) - { - ClassKey key = new ClassKey(annotationType); - AnnotationInclusion beh = _inclusions.get(key); - return (beh == null) ? _defaultInclusion : beh; - } - } -} diff --git a/src/main/java/com/fasterxml/classmate/AnnotationInclusion.java b/src/main/java/com/fasterxml/classmate/AnnotationInclusion.java deleted file mode 100644 index 3587c23..0000000 --- a/src/main/java/com/fasterxml/classmate/AnnotationInclusion.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.fasterxml.classmate; - -/** - * Enumeration that defines different settings for handling behavior - * of individual annotations - */ -public enum AnnotationInclusion -{ - /** - * Value that indicates that annotation is to be ignored, not included - * in resolved bean information. - * Applicable to all member types. - */ - DONT_INCLUDE, - - /** - * Value that indicates that annotation is to be included in results, but - * only if directly associated with included member (or attached mix-in); - * will not inherit from supertypes. - * Applicable only to member methods; if used with other members will - * mean basic inclusion. - */ - INCLUDE_BUT_DONT_INHERIT, - - /** - * Value that indicates that annotation is to be included in results, and - * values from overridden members are inherited only if the annotation is - * marked with the {@link java.lang.annotation.Inherited} annotation. - * Applicable only to member methods; if used with other members will - * mean basic inclusion. - */ - INCLUDE_AND_INHERIT_IF_INHERITED, - - /** - * Value that indicates that annotation is to be included in results; and - * values from overridden members are also inherited if not overridden - * by members of subtypes. - * Note that inheritance only matters with member methods; for other types - * it just means "include". - */ - INCLUDE_AND_INHERIT - ; - -} diff --git a/src/main/java/com/fasterxml/classmate/AnnotationOverrides.java b/src/main/java/com/fasterxml/classmate/AnnotationOverrides.java deleted file mode 100644 index 28abd4b..0000000 --- a/src/main/java/com/fasterxml/classmate/AnnotationOverrides.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.util.*; - -import com.fasterxml.classmate.util.ClassKey; - -/** - * Interface for object that can provide mix-ins to override annotations. - */ -@SuppressWarnings("serial") -public abstract class AnnotationOverrides implements Serializable -{ - /* - /********************************************************************** - /* Public API - /********************************************************************** - */ - - /** - * Method called to find out which class(es) are to be used as source - * for annotations to mix in for given type. - * - * @return List of mix-in sources (starting with highest priority); - * can be null or empty list if no mix-ins are to be used. - */ - public List> mixInsFor(Class beanClass) { - return mixInsFor(new ClassKey(beanClass)); - } - - public abstract List> mixInsFor(ClassKey beanClass); - - /** - * Method for constructing builder for creating simple overrides provider - * that just uses direct assignments (target-to-override classes) - */ - public static StdBuilder builder() { - return new StdBuilder(); - } - - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - /** - * To make it easy to use simple override implementation (where overrides - * are direct and explicit), here is a build that allow constructing - * such override instance. - */ - public static class StdBuilder - { - protected final HashMap>> _targetsToOverrides = new HashMap>>(); - - public StdBuilder() { } - - public StdBuilder add(Class target, Class mixin) { - return add(new ClassKey(target), mixin); - } - - public StdBuilder add(ClassKey target, Class mixin) - { - List> mixins = _targetsToOverrides.get(target); - if (mixins == null) { - mixins = new ArrayList>(); - _targetsToOverrides.put(target, mixins); - } - mixins.add(mixin); - return this; - } - - /** - * Method that will construct a {@link AnnotationOverrides} instance using - * mappings that have been added using this builder - */ - public AnnotationOverrides build() { - return new StdImpl(_targetsToOverrides); - } - } - - /** - * Simple implementation configured with explicit associations with - * target class as key, and overrides as ordered list of classes - * (with first entry having precedence over later ones). - */ - public static class StdImpl extends AnnotationOverrides - { - protected final HashMap>> _targetsToOverrides; - - public StdImpl(HashMap>> overrides) { - _targetsToOverrides = new HashMap>>(overrides); - } - - @Override - public List> mixInsFor(ClassKey target) { - return _targetsToOverrides.get(target); - } - } -} diff --git a/src/main/java/com/fasterxml/classmate/Annotations.java b/src/main/java/com/fasterxml/classmate/Annotations.java deleted file mode 100644 index 385c853..0000000 --- a/src/main/java/com/fasterxml/classmate/Annotations.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.lang.annotation.Annotation; -import java.util.*; - -/** - * Container class used for storing set of annotations resolved for types (classes) - * as members (methods, fields, constructors). - * - * @author tatu - */ -@SuppressWarnings("serial") -public class Annotations implements Serializable, Iterable -{ - private final Annotation[] NO_ANNOTATIONS = new Annotation[0]; - - protected LinkedHashMap,Annotation> _annotations; - - /* - /********************************************************************** - /* Life-cycle - /********************************************************************** - */ - - public Annotations() { } - - /** - * Method for adding specified annotation, overriding existing value - * for the annotation type. - */ - public void add(Annotation override) - { - if (_annotations == null) { - _annotations = new LinkedHashMap,Annotation>(); - } - _annotations.put(override.annotationType(), override); - } - - /** - * Method for adding all annotations from specified set, as overrides - * to annotations this set has - */ - public void addAll(Annotations overrides) - { - if (_annotations == null) { - _annotations = new LinkedHashMap,Annotation>(); - } - for (Annotation override : overrides._annotations.values()) { - _annotations.put(override.annotationType(), override); - } - } - - /** - * Method for adding specified annotation if and only if no value - * exists for the annotation type. - */ - public void addAsDefault(Annotation defValue) - { - Class type = defValue.annotationType(); - if (_annotations == null) { - _annotations = new LinkedHashMap,Annotation>(); - _annotations.put(type, defValue); - } else if (!_annotations.containsKey(type)) { - _annotations.put(type, defValue); - } - } - - /* - /********************************************************************** - /* Accessors - /********************************************************************** - */ - - @Override - public Iterator iterator() - { - if (_annotations == null) { - _annotations = new LinkedHashMap,Annotation>(); - } - return _annotations.values().iterator(); - } - - public int size() { - return (_annotations == null) ? 0 : _annotations.size(); - } - - @SuppressWarnings("unchecked") - public A get(Class cls) - { - if (_annotations == null) { - return null; - } - return (A) _annotations.get(cls); - } - - /** - * @since 1.1.1 - */ - public Annotation[] asArray() { - if (_annotations == null || _annotations.isEmpty()) { - return NO_ANNOTATIONS; - } - return _annotations.values().toArray(new Annotation[0]); - } - - /** - * @since 1.1.1 - */ - public List asList() { - if (_annotations == null || _annotations.isEmpty()) { - return Collections.emptyList(); - } - List l = new ArrayList(_annotations.size()); - l.addAll(_annotations.values()); - return l; - } - - /* - /********************************************************************** - /* Standard method overrides - /********************************************************************** - */ - - @Override public String toString() - { - if (_annotations == null) { - return "[null]"; - } - return _annotations.toString(); - } -} diff --git a/src/main/java/com/fasterxml/classmate/Filter.java b/src/main/java/com/fasterxml/classmate/Filter.java deleted file mode 100644 index 3617ba8..0000000 --- a/src/main/java/com/fasterxml/classmate/Filter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.fasterxml.classmate; - -/** - * Interface that defines API for basic filtering objects, used to prune set - * of things to include in result sets like flattened member lists. - */ -public interface Filter -{ - public boolean include(T element); -} diff --git a/src/main/java/com/fasterxml/classmate/GenericType.java b/src/main/java/com/fasterxml/classmate/GenericType.java deleted file mode 100644 index 2b9723e..0000000 --- a/src/main/java/com/fasterxml/classmate/GenericType.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.fasterxml.classmate; - -/** - * This class is used to pass full generics type information, and - * avoid problems with type erasure (that basically removes most - * usable type references from runtime Class objects). - * It is based on ideas from - * http://gafter.blogspot.com/2006/12/super-type-tokens.html, - *

- * Usage is by sub-classing: here is one way to instantiate reference - * to generic type List<Integer>: - *

- *  GenericType type = new GenericType<List<Integer>>() { };
- *
- * which can be passed to methods that accept GenericReference. - *

- * NOTE: before version 1.6 implemented {@link java.io.Serializable}. - * Removed due to - * issue #73. - */ -public abstract class GenericType - implements java.lang.reflect.Type -{ - protected GenericType() { } -} diff --git a/src/main/java/com/fasterxml/classmate/MemberResolver.java b/src/main/java/com/fasterxml/classmate/MemberResolver.java deleted file mode 100644 index d9556f0..0000000 --- a/src/main/java/com/fasterxml/classmate/MemberResolver.java +++ /dev/null @@ -1,245 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.util.*; - -import com.fasterxml.classmate.members.*; -import com.fasterxml.classmate.util.ClassKey; - -/** - * Builder class used to completely resolve members (fields, methods, - * constructors) of {@link ResolvedType}s (generics-aware classes). - */ -@SuppressWarnings("serial") -public class MemberResolver implements Serializable -{ - - /** - * Type resolved needed for resolving types of member objects - * (method argument and return; field types; constructor argument types) - */ - protected final TypeResolver _typeResolver; - - /* - /********************************************************************** - /* Modifiable configuration - /********************************************************************** - */ - - /** - * Configuration setting that determines whether members from - * {@link java.lang.Object} are included or not; by default - * false meaning that they are not. - */ - protected boolean _cfgIncludeLangObject; - - /** - * Filter used for determining whether given - * field (static or member) - * is to be included in aggregation of all - * fields. - */ - protected Filter _fieldFilter; - - /** - * Filter used for determining whether given - * method (static or member) - * is to be included in aggregation of all - * methods. - */ - protected Filter _methodFilter; - - /** - * Filter used for determining whether given - * constructor - * is to be included in aggregation of all - * constructors. - */ - protected Filter _constructorFilter; - - /* - /********************************************************************** - /* Life cycle (construct and config) - /********************************************************************** - */ - - /** - * Constructor for resolver that does not include java.lang.Object - * in type hierarchy - */ - public MemberResolver(TypeResolver typeResolver) - { - _typeResolver = typeResolver; - } - - /** - * Configuration method for specifying whether members of java.lang.Object - * are to be included in resolution; if false, no members from {@link java.lang.Object} - * are to be included; if true, will be included. - */ - public MemberResolver setIncludeLangObject(boolean state) { - _cfgIncludeLangObject = state; - return this; - } - - public MemberResolver setFieldFilter(Filter f) { - _fieldFilter = f; - return this; - } - - public MemberResolver setMethodFilter(Filter f) { - _methodFilter = f; - return this; - } - - public MemberResolver setConstructorFilter(Filter f) { - _constructorFilter = f; - return this; - } - - /* - /********************************************************************** - /* Public API - /********************************************************************** - */ - - /** - * Method for constructing hierarchy object needed to fully resolve - * member information, including basic type flattening as well as - * addition of mix-in types in appropriate positions. - * - * @param mainType Resolved type that is the starting point (i.e. the leaf class) - * for member resolution. - * @param annotationConfig Configuration of annotation types; which ones to include, how to inherit - * @param annotationOverrides Definitions of annotation overrides to use, if any (may be null) - */ - public ResolvedTypeWithMembers resolve(final ResolvedType mainType, - AnnotationConfiguration annotationConfig, - AnnotationOverrides annotationOverrides) - { - List types; - HashSet seenTypes = new HashSet(); - - // First: flatten basic type hierarchy (highest to lowest precedence) - - // 09-May-2016, tatu: Special case, from [#30] is that of `Object.class`, which - // by default settings has no parentage. Not 100% sure this is proper fix, but - // it does take care of the immediate problem. - if (!_cfgIncludeLangObject && (mainType.getErasedType() == Object.class)) { - types = new ArrayList(1); - types.add(mainType); - seenTypes.add(new ClassKey(Object.class)); - } else { - types = new ArrayList(); - _gatherTypes(mainType, seenTypes, types); - } - - // Second step: inject mix-ins (keeping order from highest to lowest) - HierarchicType[] htypes; - HierarchicType mainHierarchicType = null; - - // Third step: add mix-ins (if any), reverse order (lowest to highest precedence) - if (annotationOverrides == null) { // just create hierarchic instances - int len = types.size(); - htypes = new HierarchicType[len]; - for (int i = 0; i < len; ++i) { - // false -> not a mix-in - htypes[i] = new HierarchicType(types.get(i), false, i); - } - mainHierarchicType = htypes[0]; - } else { // need to add mix-ins, reorder - ArrayList typesWithMixins = new ArrayList(); - for (ResolvedType type : types) { - // First add mix-ins (which override type itself) - List> m = annotationOverrides.mixInsFor(type.getErasedType()); - if (m != null) { - for (Class mixinClass : m) { - _addOverrides(typesWithMixins, seenTypes, mixinClass); - } - } - - // Then actual type: - HierarchicType ht = new HierarchicType(type, false, typesWithMixins.size()); - if (mainHierarchicType == null) { - mainHierarchicType = ht; - } - typesWithMixins.add(ht); - } - htypes = typesWithMixins.toArray(new HierarchicType[0]); - } - // And that's about all we need to do; rest computed lazily - return new ResolvedTypeWithMembers(_typeResolver, annotationConfig, mainHierarchicType, - htypes, _constructorFilter, _fieldFilter, _methodFilter); - } - - private void _addOverrides(List typesWithOverrides, Set seenTypes, Class override) - { - ClassKey key = new ClassKey(override); - if (seenTypes.add(key)) { - ResolvedType resolvedOverride = _typeResolver.resolve(override); - typesWithOverrides.add(new HierarchicType(resolvedOverride, true, typesWithOverrides.size())); - for (ResolvedType r : resolvedOverride.getImplementedInterfaces()) { // interfaces? - _addOverrides(typesWithOverrides, seenTypes, r); - } - ResolvedType superClass = resolvedOverride.getParentClass(); - _addOverrides(typesWithOverrides, seenTypes, superClass); - } - } - - private void _addOverrides(List typesWithOverrides, Set seenTypes, ResolvedType override) - { - if (override == null) return; - // first: may need to exclude Object.class: - Class raw = override.getErasedType(); - if (!_cfgIncludeLangObject && Object.class == raw) return; - ClassKey key = new ClassKey(raw); - if (seenTypes.add(key)) { - typesWithOverrides.add(new HierarchicType(override, true, typesWithOverrides.size())); - for (ResolvedType r : override.getImplementedInterfaces()) { // interfaces? - _addOverrides(typesWithOverrides, seenTypes, r); - } - ResolvedType superClass = override.getParentClass(); - if (superClass != null) { - _addOverrides(typesWithOverrides, seenTypes, superClass); - } - } - } - - /* - /********************************************************************** - /* Internal methods - /********************************************************************** - */ - - protected void _gatherTypes(ResolvedType currentType, Set seenTypes, - List types) - { - // may get called with null if no parent type - if (currentType == null) { - return; - } - Class raw = currentType.getErasedType(); - // Also, don't include Object.class unless that's ok - if (!_cfgIncludeLangObject && (raw == Object.class)) { - return; - } - // Finally, only include first instance of an interface, so: - ClassKey key = new ClassKey(currentType.getErasedType()); - if (!seenTypes.add(key)) { - return; - } - // If all good so far, append - types.add(currentType); - /* and check supertypes; starting with interfaces. Why interfaces? - * So that "highest" interfaces get priority; otherwise we'd recurse - * super-class stack and actually start with the bottom. Usually makes - * little difference, but in cases where it does this seems like the - * correct order. - */ - for (ResolvedType t : currentType.getImplementedInterfaces()) { - _gatherTypes(t, seenTypes, types); - } - // and then superclass - _gatherTypes(currentType.getParentClass(), seenTypes, types); - } -} diff --git a/src/main/java/com/fasterxml/classmate/ResolvedType.java b/src/main/java/com/fasterxml/classmate/ResolvedType.java deleted file mode 100644 index 6c2beac..0000000 --- a/src/main/java/com/fasterxml/classmate/ResolvedType.java +++ /dev/null @@ -1,402 +0,0 @@ -package com.fasterxml.classmate; - -import java.lang.reflect.Constructor; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.lang.reflect.Type; -import java.util.*; - -import com.fasterxml.classmate.members.*; - -public abstract class ResolvedType - implements Type -{ - public final static ResolvedType[] NO_TYPES = new ResolvedType[0]; - - protected final static RawConstructor[] NO_CONSTRUCTORS = new RawConstructor[0]; - protected final static RawField[] NO_FIELDS = new RawField[0]; - protected final static RawMethod[] NO_METHODS = new RawMethod[0]; - - protected final Class _erasedType; - - /** - * Type bindings active when resolving members (methods, fields, - * constructors) of this type - */ - protected final TypeBindings _typeBindings; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - protected ResolvedType(Class cls, TypeBindings bindings) - { - _erasedType = cls; - _typeBindings = (bindings == null) ? TypeBindings.emptyBindings() : bindings; - } - - /** - * Method that can be used to check if call to {@link TypeResolver#resolveSubtype(ResolvedType, Class)} - * may ever succeed; if false, it will fail with an exception, if true, it may succeed. - */ - public abstract boolean canCreateSubtypes(); - - /** - * Method that can be used to check if call to {@link TypeResolver#resolveSubtype(ResolvedType, Class)} - * will succeed for specific type; if false, it will fail with an exception; if tru it - * will succeed. - */ - public final boolean canCreateSubtype(Class subtype) { - return canCreateSubtypes() && _erasedType.isAssignableFrom(subtype); - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - /** - * Returns type-erased Class<?> that this resolved type has. - */ - public Class getErasedType() { return _erasedType; } - - /** - * Returns parent class of this type, if it has one; primitive types - * and interfaces have no parent class, nor does Object type - * {@link java.lang.Object}. - * Also, placeholders for cyclic (recursive) types return null for - * this method. - */ - public abstract ResolvedType getParentClass(); - - /** - * Accessor that must be used to find out actual type in - * case of "self-reference"; case where type refers - * recursive to itself (like, T implements Comparable<T>). - * For all other types returns null but for self-references "real" type. - * Separate accessor is provided to avoid accidental infinite loops. - */ - public abstract ResolvedType getSelfReferencedType(); - - /** - * Method that can be used to access element type of array types; will return - * null for non-array types, and non-null type for array types. - */ - public abstract ResolvedType getArrayElementType(); - - /** - * Returns ordered list of interfaces (in declaration order) that this type - * directly implements. - * NOTE: returned list does NOT include transitively implemented types (that is, - * interfaces implemented by parent classes or interfaces). - * - * @return List of interfaces this type implements, if any; empty list if none (never - * {@code null}). - */ - public abstract List getImplementedInterfaces(); - - /** - * Returns list of generic type declarations for this type, in order they - * are declared in class description. - */ - public List getTypeParameters() { - return _typeBindings.getTypeParameters(); - } - - /** - * Method for accessing bindings of type variables to resolved types in context - * of this type. It has same number of entries as return List of - * {@link #getTypeParameters}, accessible using declared name to which they - * bind; for example, {@link java.util.Map} has 2 type bindings; one for - * key type (name "K", from Map.java) and one for value type - * (name "V", from Map.java). - */ - public TypeBindings getTypeBindings() { return _typeBindings; } - - /** - * Method that will try to find type parameterization this type - * has for specified super type - * - * @return List of type parameters for specified supertype (which may - * be empty, if supertype is not a parametric type); null if specified - * type is not a super type of this type - */ - public List typeParametersFor(Class erasedSupertype) - { - ResolvedType type = findSupertype(erasedSupertype); - if (type != null) { - return type.getTypeParameters(); - } - // nope; doesn't look like we extend or implement super type in question - return null; - } - - /** - * Method for finding super type of this type that has specified type - * erased signature. If supertype is an interface which is implemented - * using multiple inheritance paths, preference is given to interfaces - * implemented "highest up the stack" (directly implemented interfaces - * over interfaces superclass implements). - */ - public ResolvedType findSupertype(Class erasedSupertype) - { - if (erasedSupertype == _erasedType) { - return this; - } - // Check super interfaces first: - if (erasedSupertype.isInterface()) { - for (ResolvedType it : getImplementedInterfaces()) { - ResolvedType type = it.findSupertype(erasedSupertype); - if (type != null) { - return type; - } - } - } - // and if not found, super class and its supertypes - ResolvedType pc = getParentClass(); - if (pc != null) { - ResolvedType type = pc.findSupertype(erasedSupertype); - if (type != null) { - return type; - } - } - // nope; doesn't look like we extend or implement super type in question - return null; - } - - /* - /********************************************************************** - /* Accessors for simple properties - /********************************************************************** - */ - - public abstract boolean isInterface(); - public final boolean isConcrete() { return !isAbstract(); } - public abstract boolean isAbstract(); - - /** - * Method that indicates whether this type is an array type. - */ - public abstract boolean isArray(); - - /** - * Method that indicates whether this type is one of small number of primitive - * Java types; not including array types of primitive types but just basic - * primitive types. - */ - public abstract boolean isPrimitive(); - - public final boolean isInstanceOf(Class type) { - return type.isAssignableFrom(_erasedType); - } - - /* - /********************************************************************** - /* Accessors for raw (minimally procesed) members - /********************************************************************** - */ - - public List getConstructors() { return Collections.emptyList(); } - public List getMemberFields() { return Collections.emptyList(); } - public List getMemberMethods() { return Collections.emptyList(); } - public List getStaticFields() { return Collections.emptyList(); } - public List getStaticMethods() { return Collections.emptyList(); } - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - /** - * Method that returns full generic signature of the type; suitable - * as signature for things like ASM package. - */ - public String getSignature() { - StringBuilder sb = new StringBuilder(); - return appendSignature(sb).toString(); - } - - /** - * Method that returns type erased signature of the type; suitable - * as non-generic signature some packages need - */ - public String getErasedSignature() { - StringBuilder sb = new StringBuilder(); - return appendErasedSignature(sb).toString(); - } - - /** - * Human-readable full description of type, which includes specification - * of super types (in brief format) - */ - public String getFullDescription() { - StringBuilder sb = new StringBuilder(); - return appendFullDescription(sb).toString(); - } - - /** - * Human-readable brief description of type, which does not include - * information about super types. - */ - public String getBriefDescription() { - StringBuilder sb = new StringBuilder(); - return appendBriefDescription(sb).toString(); - } - - public abstract StringBuilder appendBriefDescription(StringBuilder sb); - public abstract StringBuilder appendFullDescription(StringBuilder sb); - public abstract StringBuilder appendSignature(StringBuilder sb); - public abstract StringBuilder appendErasedSignature(StringBuilder sb); - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public String toString() { - return getBriefDescription(); - } - - @Override public int hashCode() { - return _erasedType.getName().hashCode() + _typeBindings.hashCode(); - } - - @Override public boolean equals(Object o) - { - if (o == this) return true; - // sub-types must be same: - if (o == null || o.getClass() != getClass()) return false; - // Should be possible to actually implement here... - ResolvedType other = (ResolvedType) o; - if (other._erasedType != _erasedType) { - return false; - } - // and type bindings must match as well - return _typeBindings.equals(other._typeBindings); - } - - /* - /********************************************************************** - /* Helper methods for sub-classes; string construction - /********************************************************************** - */ - - protected StringBuilder _appendClassSignature(StringBuilder sb) - { - sb.append('L'); - sb = _appendClassName(sb); - int count = _typeBindings.size(); - if (count > 0) { - sb.append('<'); - for (int i = 0; i < count; ++i) { - sb = _typeBindings.getBoundType(i).appendErasedSignature(sb); - } - sb.append('>'); - } - sb.append(';'); - return sb; - } - - protected StringBuilder _appendErasedClassSignature(StringBuilder sb) - { - sb.append('L'); - sb = _appendClassName(sb); - sb.append(';'); - return sb; - } - - protected StringBuilder _appendClassDescription(StringBuilder sb) - { - sb.append(_erasedType.getName()); - int count = _typeBindings.size(); - if (count > 0) { - sb.append('<'); - for (int i = 0; i < count; ++i) { - if (i > 0) { - sb.append(','); - } - sb = _typeBindings.getBoundType(i).appendBriefDescription(sb); - } - sb.append('>'); - } - return sb; - } - - protected StringBuilder _appendClassName(StringBuilder sb) - { - String name = _erasedType.getName(); - for (int i = 0, len = name.length(); i < len; ++i) { - char c = name.charAt(i); - if (c == '.') c = '/'; - sb.append(c); - } - return sb; - } - - /* - /********************************************************************** - /* Helper methods for sub-classes; gathering members - /********************************************************************** - */ - - /** - * @param statics Whether to return static methods (true) or member methods (false) - */ - protected RawField[] _getFields(boolean statics) - { - ArrayList fields = new ArrayList(); - for (Field f : _erasedType.getDeclaredFields()) { - // Only skip synthetic fields, which should not really be exposed - if (!f.isSynthetic()) { - if (Modifier.isStatic(f.getModifiers()) == statics) { - fields.add(new RawField(this, f)); - } - } - } - if (fields.isEmpty()) { - return NO_FIELDS; - } - return fields.toArray(new RawField[0]); - } - - /** - * @param statics Whether to return static methods (true) or member methods (false) - */ - protected RawMethod[] _getMethods(boolean statics) - { - ArrayList methods = new ArrayList(); - for (Method m : _erasedType.getDeclaredMethods()) { - // Only skip synthetic fields, which should not really be exposed - if (!m.isSynthetic()) { - if (Modifier.isStatic(m.getModifiers()) == statics) { - methods.add(new RawMethod(this, m)); - } - } - } - if (methods.isEmpty()) { - return NO_METHODS; - } - return methods.toArray(new RawMethod[0]); - } - - protected RawConstructor[] _getConstructors() - { - ArrayList ctors = new ArrayList(); - for (Constructor c : _erasedType.getDeclaredConstructors()) { - // Only skip synthetic fields, which should not really be exposed - if (!c.isSynthetic()) { - ctors.add(new RawConstructor(this, c)); - } - } - if (ctors.isEmpty()) { - return NO_CONSTRUCTORS; - } - return ctors.toArray(new RawConstructor[0]); - } -} diff --git a/src/main/java/com/fasterxml/classmate/ResolvedTypeWithMembers.java b/src/main/java/com/fasterxml/classmate/ResolvedTypeWithMembers.java deleted file mode 100644 index 8c0254d..0000000 --- a/src/main/java/com/fasterxml/classmate/ResolvedTypeWithMembers.java +++ /dev/null @@ -1,715 +0,0 @@ -package com.fasterxml.classmate; - -import java.lang.annotation.Annotation; -import java.lang.annotation.Inherited; -import java.lang.reflect.Constructor; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.lang.reflect.Type; -import java.util.*; - -import com.fasterxml.classmate.members.*; -import com.fasterxml.classmate.util.MethodKey; - -/** - * Class that contains information about fully resolved members of a - * type; resolution meaning that masking is handled for methods, and - * all inheritable annotations are flattened using optional overrides - * as well ("mix-in annotations"). - * Instances are created by {@link com.fasterxml.classmate.MemberResolver}. - *

- * Note that instances are not thread-safe, as the expectation is that instances - * will not be shared (unlike raw members or resolved types) - */ -public class ResolvedTypeWithMembers -{ - private final static ResolvedType[] NO_RESOLVED_TYPES = new ResolvedType[0]; - - private final static ResolvedMethod[] NO_RESOLVED_METHODS = new ResolvedMethod[0]; - private final static ResolvedField[] NO_RESOLVED_FIELDS = new ResolvedField[0]; - private final static ResolvedConstructor[] NO_RESOLVED_CONSTRUCTORS = new ResolvedConstructor[0]; - - /** - * Default annotation configuration is to ignore all annotations types. - */ - protected final static AnnotationConfiguration DEFAULT_ANNOTATION_CONFIG - = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.DONT_INCLUDE); - - /** - * Need to be able to resolve member types still - */ - protected final TypeResolver _typeResolver; - - /** - * Handler for resolving annotation information - */ - protected final AnnotationHandler _annotationHandler; - - /** - * Leaf of the type hierarchy, i.e. type from which this hierarchy - * was generated. - */ - protected final HierarchicType _mainType; - - /** - * All types that hierarchy contains, in order of increasing precedence - * (that is, later entries override members of earlier members) - */ - protected final HierarchicType[] _types; - - /** - * Filter to use for selecting fields to include - */ - protected Filter _fieldFilter; - - /** - * Filter to use for selecting constructors to include - */ - protected Filter _constructorFilter; - - /** - * Filter to use for selecting methods to include - */ - protected Filter _methodFilter; - - /* - /********************************************************************** - /* Lazily constructed members - /********************************************************************** - */ - - protected ResolvedMethod[] _staticMethods = null; - - protected ResolvedField[] _staticFields = null; - - protected ResolvedMethod[] _memberMethods = null; - - protected ResolvedField[] _memberFields = null; - - protected ResolvedConstructor[] _constructors = null; - - /* - /********************************************************************** - /* Life cycle at this point - /********************************************************************** - */ - - public ResolvedTypeWithMembers(TypeResolver typeResolver, AnnotationConfiguration annotationConfig, - HierarchicType mainType, HierarchicType[] types, - Filter constructorFilter, Filter fieldFilter, Filter methodFilter) - { - _typeResolver = typeResolver; - _mainType = mainType; - _types = types; - if (annotationConfig == null) { - annotationConfig = DEFAULT_ANNOTATION_CONFIG; - } - _annotationHandler = new AnnotationHandler(annotationConfig); - _constructorFilter = constructorFilter; - _fieldFilter = fieldFilter; - _methodFilter = methodFilter; - } - - /* - /********************************************************************** - /* Public API, access to component types - /********************************************************************** - */ - - public int size() { return _types.length; } - - /** - * Accessor for getting full type hierarchy as priority-ordered list, from - * the lowest precedence to highest precedence (main type, its mix-in overrides) - */ - public List allTypesAndOverrides() { - return Arrays.asList(_types); - } - - /** - * Accessor for getting subset of type hierarchy which only contains main type - * and possible overrides (mix-ins) it has, but not supertypes or their overrides. - */ - public List mainTypeAndOverrides() - { - List l = Arrays.asList(_types); - int end = _mainType.getPriority() + 1; - if (end < l.size()) { - l = l.subList(0, end); - } - return l; - } - - /** - * Accessor for finding just overrides for the main type (if any). - */ - public List overridesOnly() - { - int index = _mainType.getPriority(); - if (index == 0) { - return Collections.emptyList(); - } - List l = Arrays.asList(_types); - return l.subList(0, index); - } - - /* - /********************************************************************** - /* Public API, actual resolution of members - /********************************************************************** - */ - - /** - * Method for finding all static fields of the main type (except for ones - * possibly filtered out by filter) and applying annotation overrides, if any, - * to annotations. - * - * @since 1.2.0 - */ - public ResolvedField[] getStaticFields() - { - if (_staticFields == null) { - _staticFields = resolveStaticFields(); - } - return _staticFields; - } - - /** - * Method for finding all static methods of the main type (except for ones - * possibly filtered out by filter) and applying annotation overrides, if any, - * to annotations. - */ - public ResolvedMethod[] getStaticMethods() - { - if (_staticMethods == null) { - _staticMethods = resolveStaticMethods(); - } - return _staticMethods; - } - - public ResolvedField[] getMemberFields() - { - if (_memberFields == null) { - _memberFields = resolveMemberFields(); - } - return _memberFields; - } - - public ResolvedMethod[] getMemberMethods() - { - if (_memberMethods == null) { - _memberMethods = resolveMemberMethods(); - } - return _memberMethods; - } - - public ResolvedConstructor[] getConstructors() - { - if (_constructors == null) { - _constructors = resolveConstructors(); - } - return _constructors; - } - - /* - /********************************************************************** - /* Internal methods: actual resolution - /********************************************************************** - */ - - /** - * Method that will actually resolve full information (types, annotations) - * for constructors of the main type. - */ - protected ResolvedConstructor[] resolveConstructors() - { - // First get static methods for main type, filter - LinkedHashMap constructors = new LinkedHashMap(); - for (RawConstructor constructor : _mainType.getType().getConstructors()) { - // no filter for constructors (yet?) - if (_constructorFilter == null || _constructorFilter.include(constructor)) { - constructors.put(constructor.createKey(), resolveConstructor(constructor)); - } - } - // then apply overrides (mix-ins): - for (HierarchicType type : overridesOnly()) { - for (RawConstructor raw : type.getType().getConstructors()) { - ResolvedConstructor constructor = constructors.get(raw.createKey()); - // must override something, otherwise to ignore - if (constructor != null) { - for (Annotation ann : raw.getAnnotations()) { - if (_annotationHandler.includeMethodAnnotation(ann)) { - constructor.applyOverride(ann); - } - } - - // and parameter annotations - Annotation[][] params = raw.getRawMember().getParameterAnnotations(); - for (int i = 0; i < params.length; i++) { - for (Annotation annotation : params[i]) { - if (_annotationHandler.includeParameterAnnotation(annotation)) { - constructor.applyParamOverride(i, annotation); - } - } - } - } - } - } - if (constructors.size() == 0) { - return NO_RESOLVED_CONSTRUCTORS; - } - return constructors.values().toArray(new ResolvedConstructor[0]); - } - - /** - * Method for fully resolving field definitions and associated annotations. - * Neither field definitions nor associated annotations inherit, but we may - * still need to add annotation overrides, as well as filter out filters - * and annotations that caller is not interested in. - */ - protected ResolvedField[] resolveMemberFields() - { - LinkedHashMap fields = new LinkedHashMap(); - - /* Fields need different handling: must start from bottom; and annotations only get added - * as overrides, never as defaults. And sub-classes fully mask fields. This makes - * handling bit simpler than that of member methods. - */ - for (int typeIndex = _types.length; --typeIndex >= 0; ) { - HierarchicType thisType = _types[typeIndex]; - // If it's just a mix-in, add annotations as overrides - if (thisType.isMixin()) { - for (RawField raw : thisType.getType().getMemberFields()) { - if ((_fieldFilter != null) && !_fieldFilter.include(raw)) { - continue; - } - ResolvedField field = fields.get(raw.getName()); - if (field != null) { - for (Annotation ann : raw.getAnnotations()) { - if (_annotationHandler.includeMethodAnnotation(ann)) { - field.applyOverride(ann); - } - } - } - } - } else { // If actual type, add fields, masking whatever might have existed before: - for (RawField field : thisType.getType().getMemberFields()) { - if ((_fieldFilter != null) && !_fieldFilter.include(field)) { - continue; - } - fields.put(field.getName(), resolveField(field)); - } - } - } - // and that's it? - if (fields.size() == 0) { - return NO_RESOLVED_FIELDS; - } - return fields.values().toArray(new ResolvedField[0]); - } - - protected ResolvedMethod[] resolveMemberMethods() - { - LinkedHashMap methods = new LinkedHashMap(); - LinkedHashMap overrides = new LinkedHashMap(); - LinkedHashMap paramOverrides = new LinkedHashMap(); - - /* Member methods are handled from top to bottom; and annotations are tracked - * alongside (for overrides), as well as "merged down" for inheritable - * annotations. - */ - for (HierarchicType type : allTypesAndOverrides()) { - for (RawMethod method : type.getType().getMemberMethods()) { - // First: ignore methods caller is not interested - if (_methodFilter != null && !_methodFilter.include(method)) { - continue; - } - - MethodKey key = method.createKey(); - ResolvedMethod old = methods.get(key); - - // Ok, now, mix-ins only contribute annotations; whereas 'real' types methods - if (type.isMixin()) { // mix-in: only get annotations - for (Annotation ann : method.getAnnotations()) { - // If already have a method, must be inheritable to include - if (old != null) { - if (!methodCanInherit(ann)) { - continue; - } - // and if so, apply as default (i.e. do not override) - old.applyDefault(ann); - } else { // If no method, need to add to annotation override map - Annotations oldAnn = overrides.get(key); - if (oldAnn == null) { - oldAnn = new Annotations(); - oldAnn.add(ann); - overrides.put(key, oldAnn); - } else { - oldAnn.addAsDefault(ann); - } - } - } - - // override argument annotations - final Annotation[][] argAnnotations = method.getRawMember().getParameterAnnotations(); - if (old == null) { // no method (yet), add argument annotations to override map - Annotations[] oldParamAnns = paramOverrides.get(key); - if (oldParamAnns == null) { // no existing argument annotations for method - oldParamAnns = new Annotations[argAnnotations.length]; - for (int i = 0; i < argAnnotations.length; i++) { - oldParamAnns[i] = new Annotations(); - for (final Annotation annotation : argAnnotations[i]) { - if (parameterCanInherit(annotation)) { - oldParamAnns[i].add(annotation); - } - } - } - paramOverrides.put(key, oldParamAnns); - } else { - for (int i = 0; i < argAnnotations.length; i++) { - for (final Annotation annotation : argAnnotations[i]) { - if (parameterCanInherit(annotation)) { - oldParamAnns[i].addAsDefault(annotation); - } - } - } - } - } else { // already have a method, apply argument annotations as defaults - for (int i = 0; i < argAnnotations.length; i++) { - for (final Annotation annotation : argAnnotations[i]) { - if (parameterCanInherit(annotation)) { - old.applyParamDefault(i, annotation); - } - } - } - } - } else { // "real" methods; add if not present, possibly add defaults as well - if (old == null) { // new one to add - ResolvedMethod newMethod = resolveMethod(method); - methods.put(key, newMethod); - // But we may also have annotation overrides, so: - Annotations overrideAnn = overrides.get(key); - if (overrideAnn != null) { - newMethod.applyOverrides(overrideAnn); - } - // and apply parameter annotation overrides - Annotations[] annotations = paramOverrides.get(key); - if (annotations != null) { - for (int i = 0; i < annotations.length; i++) { - newMethod.applyParamOverrides(i, annotations[i]); - } - } - } else { // method masked by something else? can only contribute annotations - for (Annotation ann : method.getAnnotations()) { - if (methodCanInherit(ann)) { - old.applyDefault(ann); - } - } - // and parameter annotations - final Annotation[][] parameterAnnotations = method.getRawMember().getParameterAnnotations(); - for (int i = 0; i < parameterAnnotations.length; i++) { - for (final Annotation annotation : parameterAnnotations[i]) { - if (parameterCanInherit(annotation)) { - old.applyParamDefault(i, annotation); - } - } - } - } - } - } - } - - if (methods.size() == 0) { - return NO_RESOLVED_METHODS; - } - return methods.values().toArray(new ResolvedMethod[0]); - } - - /** - * Method for fully resolving static field definitions and associated annotations. - * Neither field definitions nor associated annotations inherit, but we may - * still need to add annotation overrides, as well as filter out filters - * and annotations that caller is not interested in. - * - * @since 1.2.0 - */ - protected ResolvedField[] resolveStaticFields() - { - // First get static methods for main type, filter - LinkedHashMap fields = new LinkedHashMap(); - for (RawField field : _mainType.getType().getStaticFields()) { - if (_fieldFilter == null || _fieldFilter.include(field)) { - fields.put(field.getName(), resolveField(field)); - } - } - // then apply overrides (mix-ins): - for (HierarchicType type : overridesOnly()) { - for (RawField raw : type.getType().getStaticFields()) { - ResolvedField field = fields.get(raw.getName()); - // must override something, otherwise to ignore - if (field != null) { - for (Annotation ann : raw.getAnnotations()) { - if (_annotationHandler.includeFieldAnnotation(ann)) { - field.applyOverride(ann); - } - } - } - } - } - // and that's it? - if (fields.isEmpty()) { - return NO_RESOLVED_FIELDS; - } - return fields.values().toArray(new ResolvedField[0]); - } - - /** - * Method that will actually resolve full information (types, annotations) - * for static methods, using configured filter. - */ - protected ResolvedMethod[] resolveStaticMethods() - { - // First get static methods for main type, filter - LinkedHashMap methods = new LinkedHashMap(); - for (RawMethod method : _mainType.getType().getStaticMethods()) { - if (_methodFilter == null || _methodFilter.include(method)) { - methods.put(method.createKey(), resolveMethod(method)); - } - } - // then apply overrides (mix-ins): - for (HierarchicType type : overridesOnly()) { - for (RawMethod raw : type.getType().getStaticMethods()) { - ResolvedMethod method = methods.get(raw.createKey()); - // must override something, otherwise to ignore - if (method != null) { - for (Annotation ann : raw.getAnnotations()) { - if (_annotationHandler.includeMethodAnnotation(ann)) { - method.applyOverride(ann); - } - } - } - } - } - if (methods.size() == 0) { - return NO_RESOLVED_METHODS; - } - return methods.values().toArray(new ResolvedMethod[0]); - } - - /* - /********************************************************************** - /* Helper methods - /********************************************************************** - */ - - /** - * Method for resolving individual constructor completely - */ - protected ResolvedConstructor resolveConstructor(RawConstructor raw) - { - final ResolvedType context = raw.getDeclaringType(); - final TypeBindings bindings = context.getTypeBindings(); - Constructor ctor = raw.getRawMember(); - Type[] rawTypes = ctor.getGenericParameterTypes(); - ResolvedType[] argTypes; - if (rawTypes == null || rawTypes.length == 0) { - argTypes = NO_RESOLVED_TYPES; - } else { - argTypes = new ResolvedType[rawTypes.length]; - for (int i = 0, len = rawTypes.length; i < len; ++i) { - argTypes[i] = _typeResolver.resolve(bindings, rawTypes[i]); - } - } - // And then annotations - Annotations anns = new Annotations(); - for (Annotation ann : ctor.getAnnotations()) { - if (_annotationHandler.includeConstructorAnnotation(ann)) { - anns.add(ann); - } - } - - ResolvedConstructor constructor = new ResolvedConstructor(context, anns, ctor, argTypes); - - // and parameter annotations - Annotation[][] annotations = ctor.getParameterAnnotations(); - for (int i = 0; i < argTypes.length; i++) { - for (Annotation ann : annotations[i]) { - constructor.applyParamOverride(i, ann); - } - } - - return constructor; - } - - /** - * Method for resolving individual field completely - */ - protected ResolvedField resolveField(RawField raw) - { - final ResolvedType context = raw.getDeclaringType(); - Field field = raw.getRawMember(); - ResolvedType type = _typeResolver.resolve(context.getTypeBindings(), field.getGenericType()); - // And then annotations - Annotations anns = new Annotations(); - for (Annotation ann : field.getAnnotations()) { - if (_annotationHandler.includeFieldAnnotation(ann)) { - anns.add(ann); - } - } - return new ResolvedField(context, anns, field, type); - } - - /** - * Method for resolving individual method completely - */ - protected ResolvedMethod resolveMethod(RawMethod raw) - { - final ResolvedType context = raw.getDeclaringType(); - final TypeBindings bindings = context.getTypeBindings(); - Method m = raw.getRawMember(); - Type rawType = m.getGenericReturnType(); - ResolvedType rt = (rawType == Void.TYPE) ? null : _typeResolver.resolve(bindings, rawType); - Type[] rawTypes = m.getGenericParameterTypes(); - ResolvedType[] argTypes; - if (rawTypes == null || rawTypes.length == 0) { - argTypes = NO_RESOLVED_TYPES; - } else { - argTypes = new ResolvedType[rawTypes.length]; - for (int i = 0, len = rawTypes.length; i < len; ++i) { - argTypes[i] = _typeResolver.resolve(bindings, rawTypes[i]); - } - } - // And then annotations - Annotations anns = new Annotations(); - for (Annotation ann : m.getAnnotations()) { - if (_annotationHandler.includeMethodAnnotation(ann)) { - anns.add(ann); - } - } - - ResolvedMethod method = new ResolvedMethod(context, anns, m, rt, argTypes); - - // and argument annotations - Annotation[][] annotations = m.getParameterAnnotations(); - for (int i = 0; i < argTypes.length; i++) { - for (Annotation ann : annotations[i]) { - method.applyParamOverride(i, ann); - } - } - return method; - } - - protected boolean methodCanInherit(Annotation annotation) { - AnnotationInclusion annotationInclusion = _annotationHandler.methodInclusion(annotation); - if (annotationInclusion == AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED) { - return annotation.annotationType().isAnnotationPresent(Inherited.class); - } - return (annotationInclusion == AnnotationInclusion.INCLUDE_AND_INHERIT); - } - - protected boolean parameterCanInherit(Annotation annotation) { - AnnotationInclusion annotationInclusion = _annotationHandler.parameterInclusion(annotation); - if (annotationInclusion == AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED) { - return annotation.annotationType().isAnnotationPresent(Inherited.class); - } - return (annotationInclusion == AnnotationInclusion.INCLUDE_AND_INHERIT); - } - - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - /** - * Helper class we use to reduce number of calls to {@link AnnotationConfiguration}; - * mostly because determination may be expensive. - */ - private final static class AnnotationHandler - { - private final AnnotationConfiguration _annotationConfig; - - private HashMap, AnnotationInclusion> _fieldInclusions; - private HashMap, AnnotationInclusion> _constructorInclusions; - private HashMap, AnnotationInclusion> _methodInclusions; - private HashMap, AnnotationInclusion> _parameterInclusions; - - public AnnotationHandler(AnnotationConfiguration annotationConfig) { - _annotationConfig = annotationConfig; - } - - public boolean includeConstructorAnnotation(Annotation ann) - { - Class annType = ann.annotationType(); - if (_constructorInclusions == null) { - _constructorInclusions = new HashMap, AnnotationInclusion>(); - } else { - AnnotationInclusion incl = _constructorInclusions.get(annType); - if (incl != null) { - return (incl != AnnotationInclusion.DONT_INCLUDE); - } - } - AnnotationInclusion incl = _annotationConfig.getInclusionForConstructor(annType); - _constructorInclusions.put(annType, incl); - return (incl != AnnotationInclusion.DONT_INCLUDE); - } - - public boolean includeFieldAnnotation(Annotation ann) - { - Class annType = ann.annotationType(); - if (_fieldInclusions == null) { - _fieldInclusions = new HashMap, AnnotationInclusion>(); - } else { - AnnotationInclusion incl = _fieldInclusions.get(annType); - if (incl != null) { - return (incl != AnnotationInclusion.DONT_INCLUDE); - } - } - AnnotationInclusion incl = _annotationConfig.getInclusionForField(annType); - _fieldInclusions.put(annType, incl); - return (incl != AnnotationInclusion.DONT_INCLUDE); - } - - public boolean includeMethodAnnotation(Annotation ann) - { - return methodInclusion(ann) != AnnotationInclusion.DONT_INCLUDE; - } - - public AnnotationInclusion methodInclusion(Annotation ann) - { - Class annType = ann.annotationType(); - if (_methodInclusions == null) { - _methodInclusions = new HashMap, AnnotationInclusion>(); - } else { - AnnotationInclusion incl = _methodInclusions.get(annType); - if (incl != null) { - return incl; - } - } - AnnotationInclusion incl = _annotationConfig.getInclusionForMethod(annType); - _methodInclusions.put(annType, incl); - return incl; - } - - public boolean includeParameterAnnotation(Annotation ann) - { - return parameterInclusion(ann) != AnnotationInclusion.DONT_INCLUDE; - } - - public AnnotationInclusion parameterInclusion(Annotation ann) - { - Class annType = ann.annotationType(); - if (_parameterInclusions == null) { - _parameterInclusions = new HashMap, AnnotationInclusion>(); - } else { - AnnotationInclusion incl = _parameterInclusions.get(annType); - if (incl != null) { - return incl; - } - } - AnnotationInclusion incl = _annotationConfig.getInclusionForParameter(annType); - _parameterInclusions.put(annType, incl); - return incl; - } - } -} diff --git a/src/main/java/com/fasterxml/classmate/TypeBindings.java b/src/main/java/com/fasterxml/classmate/TypeBindings.java deleted file mode 100644 index 76540c1..0000000 --- a/src/main/java/com/fasterxml/classmate/TypeBindings.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.fasterxml.classmate; - -import java.lang.reflect.TypeVariable; -import java.util.*; - -/** - * Helper class used for storing binding of local type variables to - * matching resolved types, in context of a single class. - */ -public final class TypeBindings -{ - private final static String[] NO_STRINGS = new String[0]; - - private final static ResolvedType[] NO_TYPES = new ResolvedType[0]; - - private final static TypeBindings EMPTY = new TypeBindings(NO_STRINGS, NO_TYPES, null); - - /** - * Array of type (type variable) names. - */ - private final String[] _names; - - /** - * Types matching names - */ - private final ResolvedType[] _types; - - /** - * Names of potentially unresolved type variables. - * - * @since 2.3 - */ - private final String[] _unboundVariables; - - private final int _hashCode; - - /* - /********************************************************************** - /* Construction - /********************************************************************** - */ - - private TypeBindings(String[] names, ResolvedType[] types, String[] uvars) - { - _names = (names == null) ? NO_STRINGS : names; - _types = (types == null) ? NO_TYPES : types; - if (_names.length != _types.length) { - throw new IllegalArgumentException("Mismatching names ("+_names.length+"), types ("+_types.length+")"); - } - int h = 1; - for (int i = 0, len = _types.length; i < len; ++i) { - h += _types[i].hashCode(); - } - _unboundVariables = uvars; - _hashCode = h; - } - - public static TypeBindings emptyBindings() { - return EMPTY; - } - - /** - * Factory method for constructing bindings for given class using specified type - * parameters. - */ - public static TypeBindings create(Class erasedType, List typeList) - { - ResolvedType[] types = (typeList == null || typeList.isEmpty()) ? - NO_TYPES : typeList.toArray(new ResolvedType[0]); - return create(erasedType, types); - } - - public static TypeBindings create(Class erasedType, ResolvedType[] types) - { - if (types == null) { - types = NO_TYPES; - } - TypeVariable[] vars = erasedType.getTypeParameters(); - String[] names; - if (vars == null || vars.length == 0) { - names = NO_STRINGS; - } else { - int len = vars.length; - names = new String[len]; - for (int i = 0; i < len; ++i) { - names[i] = vars[i].getName(); - } - } - // Check here to give better error message - if (names.length != types.length) { - throw new IllegalArgumentException("Can not create TypeBinding for class "+erasedType.getName() - +" with "+types.length+" type parameter" - +((types.length == 1) ? "" : "s")+": class expects "+names.length); - } - return new TypeBindings(names, types, null); - } - - /** - * Method for creating an instance that has same bindings as this object, - * plus an indicator for additional type variable that may be unbound within - * this context; this is needed to resolve recursive self-references. - * - * @since 1.3 (renamed from "withAdditionalBinding" in 1.2) - */ - public TypeBindings withUnboundVariable(String name) - { - int len = (_unboundVariables == null) ? 0 : _unboundVariables.length; - String[] names = (len == 0) - ? new String[1] : Arrays.copyOf(_unboundVariables, len+1); - names[len] = name; - return new TypeBindings(_names, _types, names); - } - - /* - /********************************************************************** - /* Accessors - /********************************************************************** - */ - - /** - * Find type bound to specified name, if there is one; returns bound type if so, null if not. - */ - public ResolvedType findBoundType(String name) - { - for (int i = 0, len = _names.length; i < len; ++i) { - if (name.equals(_names[i])) { - return _types[i]; - } - } - return null; - } - - public boolean isEmpty() { - return (_types.length == 0); - } - - /** - * Returns number of bindings contained - */ - public int size() { - return _types.length; - } - - public String getBoundName(int index) - { - if (index < 0 || index >= _names.length) { - return null; - } - return _names[index]; - } - - public ResolvedType getBoundType(int index) - { - if (index < 0 || index >= _types.length) { - return null; - } - return _types[index]; - } - - /** - * Accessor for getting bound types in declaration order - */ - public List getTypeParameters() - { - if (_types.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_types); - } - - /** - * @since 2.3 - */ - public boolean hasUnbound(String name) { - if (_unboundVariables != null) { - for (int i = _unboundVariables.length; --i >= 0; ) { - if (name.equals(_unboundVariables[i])) { - return true; - } - } - } - return false; - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public String toString() - { - if (_types.length == 0) { - return ""; - } - StringBuilder sb = new StringBuilder(); - sb.append('<'); - for (int i = 0, len = _types.length; i < len; ++i) { - if (i > 0) { - sb.append(','); - } - sb = _types[i].appendBriefDescription(sb); - } - sb.append('>'); - return sb.toString(); - } - - @Override public int hashCode() { return _hashCode; } - - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - TypeBindings other = (TypeBindings) o; - int len = _types.length; - if (len != other.size()) { - return false; - } - ResolvedType[] otherTypes = other._types; - for (int i = 0; i < len; ++i) { - if (!otherTypes[i].equals(_types[i])) { - return false; - } - } - return true; - } - - /* - /********************************************************************** - /* Package accessible methods - /********************************************************************** - */ - - protected ResolvedType[] typeParameterArray() { - return _types; - } -} diff --git a/src/main/java/com/fasterxml/classmate/TypeResolver.java b/src/main/java/com/fasterxml/classmate/TypeResolver.java deleted file mode 100644 index a143036..0000000 --- a/src/main/java/com/fasterxml/classmate/TypeResolver.java +++ /dev/null @@ -1,586 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.lang.reflect.*; -import java.util.*; - -import com.fasterxml.classmate.types.*; -import com.fasterxml.classmate.util.ClassKey; -import com.fasterxml.classmate.util.ClassStack; -import com.fasterxml.classmate.util.ResolvedTypeCache; -import com.fasterxml.classmate.util.ResolvedTypeKey; - -/** - * Object that is used for resolving generic type information of a class - * so that it is accessible using simple API. Resolved types are also starting - * point for accessing resolved (generics aware) return and argument types - * of class members (methods, fields, constructors). - *

- * Note that resolver instances are stateful in that resolvers cache resolved - * types for efficiency. Since this is internal state and not directly visible - * to callers, access to state is fully synchronized so that access from - * multiple threads is safe. - */ -@SuppressWarnings("serial") -public class TypeResolver implements Serializable -{ - private final static ResolvedType[] NO_TYPES = new ResolvedType[0]; - - /* - /********************************************************************** - /* Pre-created instances - /********************************************************************** - */ - - /** - * We will also need to return "unknown" type for cases where type variable binding - * is not found ('raw' instances of generic types); easiest way is to - * pre-create type for java.lang.Object - */ - private final static ResolvedObjectType sJavaLangObject = - ResolvedObjectType.create(Object.class, null, null, null); - - /** - * Since number of primitive types is small, and they are frequently needed, - * let's actually pre-create them for efficient reuse. Same goes for limited number - * of other "standard" types... - */ - protected final static HashMap _primitiveTypes; - static { - _primitiveTypes = new HashMap(16); - for (ResolvedPrimitiveType type : ResolvedPrimitiveType.all()) { - _primitiveTypes.put(new ClassKey(type.getErasedType()), type); - } - // should we include "void"? might as well... - _primitiveTypes.put(new ClassKey(Void.TYPE), ResolvedPrimitiveType.voidType()); - // and at least java.lang.Object should be added too. - _primitiveTypes.put(new ClassKey(Object.class), sJavaLangObject); - // but most other types can be added dynamically - } - - /* - /********************************************************************** - /* Caching - /********************************************************************** - */ - - /** - * Simple cache of types resolved by this resolver. - * Caching works because type instances themselves are mostly immutable; - * and properly synchronized in cases where transient data (raw members) are - * accessed. - */ - protected final ResolvedTypeCache _resolvedTypes; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - /** - * Constructs type cache; equivalent to: - *

 
-     *   TypeResolver(ResolvedTypeCache.lruCache(200));
-     *
- */ - public TypeResolver() { - this(ResolvedTypeCache.lruCache(200)); - } - - /** - * Constructor that specifies type cache to use. - * - * @param typeCache Cache to use for avoiding repeated resolution of already resolved - * types - * - * @since 1.4 - */ - public TypeResolver(ResolvedTypeCache typeCache) { - _resolvedTypes = typeCache; - } - - /* - /********************************************************************** - /* Factory methods, with explicit parameterization - /********************************************************************** - */ - - /** - * Factory method for resolving given base type - * using specified types as type parameters. - * Sample usage would be: - *
-     *  ResolvedType type = TypeResolver.resolve(List.class, Integer.class);
-     *
- * which would be equivalent to - *
-     *  ResolvedType type = TypeResolver.resolve(new GenericType<List<Integer>>() { });
-     *
- * Note that you can mix different types of type parameters, whether already - * resolved ({@link ResolvedType}), type-erased ({@link java.lang.Class}) or - * generic type reference ({@link GenericType}). - */ - public ResolvedType resolve(Type type, Type... typeParameters) - { - boolean noParams = (typeParameters == null || typeParameters.length == 0); - TypeBindings bindings; - Class rawBase; - - if (type instanceof Class) { - bindings = TypeBindings.emptyBindings(); - if (noParams) { - return _fromClass(null, (Class) type, bindings); - } - rawBase = (Class) type; - } else if (type instanceof GenericType) { - bindings = TypeBindings.emptyBindings(); - if (noParams) { - return _fromGenericType(null, (GenericType) type, bindings); - } - ResolvedType rt = _fromAny(null, type, bindings); - rawBase = rt.getErasedType(); - } else if (type instanceof ResolvedType) { - ResolvedType rt = (ResolvedType) type; - if (noParams) { - return rt; - } - bindings = rt.getTypeBindings(); - rawBase = rt.getErasedType(); - } else { - bindings = TypeBindings.emptyBindings(); - if (noParams) { - return resolve(bindings, type); - } - // Quite convoluted... but necessary to find Class underlying it all - ResolvedType rt = _fromAny(null, type, bindings); - rawBase = rt.getErasedType(); - } - - // Next: resolve type parameters - int len = typeParameters.length; - ResolvedType[] resolvedParams = new ResolvedType[len]; - for (int i = 0; i < len; ++i) { - resolvedParams[i] = _fromAny(null, typeParameters[i], bindings); - } - return _fromClass(null, rawBase, TypeBindings.create(rawBase, resolvedParams)); - } - - /** - * Factory method for constructing array type of given element type. - */ - public ResolvedArrayType arrayType(Type elementType) - { - ResolvedType resolvedElementType = resolve(TypeBindings.emptyBindings(), elementType); - // Arrays are cumbersome for some reason: - Object emptyArray = Array.newInstance(resolvedElementType.getErasedType(), 0); - // Should we try to use cache? It's bit tricky, so let's not bother yet - return new ResolvedArrayType(emptyArray.getClass(), TypeBindings.emptyBindings(), - resolvedElementType); - } - - /** - * Factory method for resolving specified Java {@link java.lang.reflect.Type}, given - * {@link TypeBindings} needed to resolve any type variables. - *

- * Use of this method is discouraged (use if and only if you really know what you - * are doing!); but if used, type bindings passed should come from {@link ResolvedType} - * instance of declaring class (or interface). - *

- * NOTE: order of arguments was reversed for 0.8, to avoid problems with - * overload varargs method. - */ - public ResolvedType resolve(TypeBindings typeBindings, Type jdkType) - { - return _fromAny(null, jdkType, typeBindings); - } - - /** - * Factory method for constructing sub-classing specified type; class specified - * as sub-class must be compatible according to basic Java inheritance rules - * (subtype must properly extend or implement specified supertype). - *

- * A typical use case here is to refine a generic type; for example, given - * that we have generic type like List<Integer>, but we want - * a more specific implementation type like - * class ArrayList but with same parameterization (here just Integer), - * we could achieve it by: - *

-     *  ResolvedType mapType = typeResolver.resolve(List.class, Integer.class);
-     *  ResolveType concreteMapType = typeResolver.resolveSubType(mapType, ArrayList.class);
-     *
- * (in this case, it would have been simpler to resolve directly; but in some - * cases we are handled supertype and want to refine it, in which case steps - * would be the same but separated by other code) - *

- * Note that this method will fail if extension can not succeed; either because - * this type is not extendable (sub-classable) -- which is true for primitive - * and array types -- or because given class is not a subtype of this type. - * To check whether subtyping could succeed, you can call - * {@link ResolvedType#canCreateSubtypes()} to see if supertype can ever - * be extended. - * - * @param supertype Type to subtype (extend) - * @param subtype Type-erased sub-class or sub-interface - * - * @return Resolved subtype - * - * @throws IllegalArgumentException If this type can be extended in general, but not into specified sub-class - * @throws UnsupportedOperationException If this type can not be sub-classed - */ - public ResolvedType resolveSubtype(ResolvedType supertype, final Class subtype) - throws IllegalArgumentException, UnsupportedOperationException - { - // first: if it's a recursive reference, find out referred-to type - ResolvedType refType = supertype.getSelfReferencedType(); - if (refType != null) { - supertype = refType; - } - // Then, trivial check for case where subtype is supertype... - final Class superclass = supertype.getErasedType(); - if (superclass == subtype) { // unlikely but cheap check so let's just do it - return supertype; - } - // First: can not sub-class primitives, or array types - if (!supertype.canCreateSubtypes()) { - throw new UnsupportedOperationException("Can not subtype primitive or array types (type "+supertype.getFullDescription()+")"); - } - // And in general must be able to subtype as per JVM rules: - if (!superclass.isAssignableFrom(subtype)) { - throw new IllegalArgumentException("Can not sub-class "+supertype.getBriefDescription() - +" into "+subtype.getName()); - } - // Ok, then, let us instantiate type with placeholders - ResolvedType resolvedSubtype; - int paramCount = subtype.getTypeParameters().length; - TypePlaceHolder[] placeholders; - TypeBindings tbForPlaceholders; - - if (paramCount == 0) { // no generics - placeholders = null; - // 26-Oct-2015, tatu: Used to do "full" call: -// resolvedSubtype = resolve(subtype); - // but should be able to streamline - tbForPlaceholders = TypeBindings.emptyBindings(); - } else { - placeholders = new TypePlaceHolder[paramCount]; - ResolvedType[] resolvedParams = new ResolvedType[paramCount]; - for (int i = 0; i < paramCount; ++i) { - resolvedParams[i] = placeholders[i] = new TypePlaceHolder(i); - } - tbForPlaceholders = TypeBindings.create(subtype, resolvedParams); - } - resolvedSubtype = _fromClass(null, subtype, tbForPlaceholders); - ResolvedType resolvedSupertype = resolvedSubtype.findSupertype(superclass); - if (resolvedSupertype == null) { // sanity check, should never occur - throw new IllegalArgumentException("Internal error: unable to locate supertype ("+subtype.getName()+") for type "+supertype.getBriefDescription()); - } - // Ok, then, let's find and verify type assignments; resolve type holders if any - // (and yes, even for no-type-parameters case) - _resolveTypePlaceholders(supertype, resolvedSupertype); - // And then re-construct, if necessary - if (paramCount == 0) { // if no type parameters, fine as is - return resolvedSubtype; - } - // but with type parameters, need to reconstruct - final ResolvedType[] typeParams = new ResolvedType[paramCount]; - for (int i = 0; i < paramCount; ++i) { - ResolvedType t = placeholders[i].actualType(); - // Is it ok for it to be left unassigned? For now let's not allow that - // 18-Oct-2017, tatu: Highly likely that we'll need to allow this, substitute with "unknown" -- - // had to do that in Jackson. Occurs when subtype is generic, with "bogus" type declared - // but not bound in supertype(s). But leaving checking in for now. - if (t == null) { - throw new IllegalArgumentException("Failed to find type parameter #"+(i+1)+"/" - +paramCount+" for "+subtype.getName()); - } - typeParams[i] = t; - } - return resolve(subtype, typeParams); - } - - /* - /********************************************************************** - /* Misc other methods - /********************************************************************** - */ - - /** - * Convenience method that can be used to checked whether given resolved type - * (with erased type of java.lang.Object) is a placeholder - * for "self-reference"; these are nasty recursive ("self") types - * needed with some interfaces - * - * @param type Type to check - */ - public static boolean isSelfReference(ResolvedType type) - { - return (type instanceof ResolvedRecursiveType); - } - - /* - /********************************************************************** - /* Internal methods, second-level factory methods - /********************************************************************** - */ - - private ResolvedType _fromAny(ClassStack context, Type mainType, TypeBindings typeBindings) - { - if (mainType instanceof Class) { - return _fromClass(context, (Class) mainType, typeBindings); - } - if (mainType instanceof ParameterizedType) { - return _fromParamType(context, (ParameterizedType) mainType, typeBindings); - } - if (mainType instanceof ResolvedType) { // Esp. TypePlaceHolder - return (ResolvedType) mainType; - } - if (mainType instanceof GenericType) { - return _fromGenericType(context, (GenericType) mainType, typeBindings); - } - if (mainType instanceof GenericArrayType) { - return _fromArrayType(context, (GenericArrayType) mainType, typeBindings); - } - if (mainType instanceof TypeVariable) { - return _fromVariable(context, (TypeVariable) mainType, typeBindings); - } - if (mainType instanceof WildcardType) { - return _fromWildcard(context, (WildcardType) mainType, typeBindings); - } - // should never get here... - throw new IllegalArgumentException("Unrecognized type class: "+mainType.getClass().getName()); - } - - private ResolvedType _fromClass(ClassStack context, Class rawType, TypeBindings typeBindings) - { - // First: a primitive type perhaps? - ResolvedType type = _primitiveTypes.get(new ClassKey(rawType)); - if (type != null) { - return type; - } - // Second: recursive reference? - if (context == null) { - context = new ClassStack(rawType); - } else { - ClassStack prev = context.find(rawType); - if (prev != null) { - // Self-reference: needs special handling, then... - ResolvedRecursiveType selfRef = new ResolvedRecursiveType(rawType, typeBindings); - prev.addSelfReference(selfRef); - return selfRef; - } - // no, can just add - context = context.child(rawType); - } - - // If not, already recently resolved? - ResolvedType[] typeParameters = typeBindings.typeParameterArray(); - ResolvedTypeKey key = _resolvedTypes.key(rawType, typeParameters); - // 25-Oct-2015, tatu: one twist; if any TypePlaceHolders included, key will NOT be created, - // which means that caching should not be used (since type is mutable) - if (key == null) { - type = _constructType(context, rawType, typeBindings); - } else { - type = _resolvedTypes.find(key); - if (type == null) { - type = _constructType(context, rawType, typeBindings); - _resolvedTypes.put(key, type); - } - } - context.resolveSelfReferences(type); - return type; - } - - /** - * Factory method for resolving given generic type, defined by using sub-class - * instance of {@link GenericType} - */ - private ResolvedType _fromGenericType(ClassStack context, GenericType generic, TypeBindings typeBindings) - { - /* To allow multiple levels of inheritance (just in case someone - * wants to go to town with inheritance of GenericType), - * we better resolve the whole thing; then dig out - * type parameterization... - */ - ResolvedType type = _fromClass(context, generic.getClass(), typeBindings); - ResolvedType genType = type.findSupertype(GenericType.class); - if (genType == null) { // sanity check; shouldn't occur - throw new IllegalArgumentException("Unparameterized GenericType instance ("+generic.getClass().getName()+")"); - } - TypeBindings b = genType.getTypeBindings(); - ResolvedType[] params = b.typeParameterArray(); - if (params.length == 0) { - throw new IllegalArgumentException("Unparameterized GenericType instance ("+generic.getClass().getName()+")"); - } - return params[0]; - } - - private ResolvedType _constructType(ClassStack context, Class rawType, TypeBindings typeBindings) - { - // Ok: no easy shortcut, let's figure out type of type... - if (rawType.isArray()) { - ResolvedType elementType = _fromAny(context, rawType.getComponentType(), typeBindings); - return new ResolvedArrayType(rawType, typeBindings, elementType); - } - // Work-around/fix for [#33]: if the type has no type parameters, don't include - // typeBindings in the ResolvedType - if (!typeBindings.isEmpty() && rawType.getTypeParameters().length == 0) { - typeBindings = TypeBindings.emptyBindings(); - } - // For other types super interfaces are needed... - if (rawType.isInterface()) { - return new ResolvedInterfaceType(rawType, typeBindings, - _resolveSuperInterfaces(context, rawType, typeBindings)); - - } - return new ResolvedObjectType(rawType, typeBindings, - _resolveSuperClass(context, rawType, typeBindings), - _resolveSuperInterfaces(context, rawType, typeBindings)); - } - - private ResolvedType[] _resolveSuperInterfaces(ClassStack context, Class rawType, TypeBindings typeBindings) - { - Type[] types = rawType.getGenericInterfaces(); - if (types == null || types.length == 0) { - return NO_TYPES; - } - int len = types.length; - ResolvedType[] resolved = new ResolvedType[len]; - for (int i = 0; i < len; ++i) { - resolved[i] = _fromAny(context, types[i], typeBindings); - } - return resolved; - } - - /** - * NOTE: return type changed in 1.0.1 from {@link ResolvedObjectType} to - * {@link ResolvedType}, since it was found that other types may - * be returned... - * - * @return Usually a {@link ResolvedObjectType}, but possibly also - * {@link ResolvedRecursiveType} - */ - private ResolvedType _resolveSuperClass(ClassStack context, Class rawType, TypeBindings typeBindings) - { - Type parent = rawType.getGenericSuperclass(); - if (parent == null) { - return null; - } - return _fromAny(context, parent, typeBindings); - } - - private ResolvedType _fromParamType(ClassStack context, ParameterizedType ptype, TypeBindings parentBindings) - { - /* First: what is the actual base type? One odd thing is that 'getRawType' - * returns Type, not Class as one might expect. But let's assume it is - * always of type Class: if not, need to add more code to resolve it... - */ - Class rawType = (Class) ptype.getRawType(); - Type[] params = ptype.getActualTypeArguments(); - int len = params.length; - ResolvedType[] types = new ResolvedType[len]; - - for (int i = 0; i < len; ++i) { - types[i] = _fromAny(context, params[i], parentBindings); - } - // Ok: this gives us current bindings for this type: - TypeBindings newBindings = TypeBindings.create(rawType, types); - return _fromClass(context, rawType, newBindings); - } - - private ResolvedType _fromArrayType(ClassStack context, GenericArrayType arrayType, TypeBindings typeBindings) - { - ResolvedType elementType = _fromAny(context, arrayType.getGenericComponentType(), typeBindings); - // Figuring out raw class for generic array is actually bit tricky... - Object emptyArray = Array.newInstance(elementType.getErasedType(), 0); - return new ResolvedArrayType(emptyArray.getClass(), typeBindings, elementType); - } - - private ResolvedType _fromWildcard(ClassStack context, WildcardType wildType, TypeBindings typeBindings) - { - /* Similar to challenges with TypeVariable, we may have multiple upper bounds. - * But it is also possible that if upper bound defaults to Object, we might want to - * consider lower bounds instead? - * For now, we won't try anything more advanced; above is just for future reference. - */ - return _fromAny(context, wildType.getUpperBounds()[0], typeBindings); - } - - private ResolvedType _fromVariable(ClassStack context, TypeVariable variable, TypeBindings typeBindings) - { - // ideally should find it via bindings: - String name = variable.getName(); - ResolvedType type = typeBindings.findBoundType(name); - - if (type != null) { - return type; - } - - /* but if not, use bounds... note that approach here is simplistic; not taking - * into account possible multiple bounds, nor consider upper bounds. - */ - /* 02-Mar-2011, tatu: As per issue#4, need to avoid self-reference cycles here; - * can be handled by (temporarily) adding binding: - */ - if (typeBindings.hasUnbound(name)) { - return sJavaLangObject; - } - typeBindings = typeBindings.withUnboundVariable(name); - - Type[] bounds = variable.getBounds(); - return _fromAny(context, bounds[0], typeBindings); - } - - /* - /********************************************************************** - /* Internal methods, replacing and verifying type placeholders - /********************************************************************** - */ - - /** - * Method called to verify that types match; and if there are any placeholders, - * replace them in actualType. - * - * @param sourceType Original base type used for specification/refinement - * @param actualType Base type instance after re-resolving, possibly containing type placeholders - */ - private void _resolveTypePlaceholders(ResolvedType sourceType, ResolvedType actualType) - throws IllegalArgumentException - { - List expectedTypes = sourceType.getTypeParameters(); - List actualTypes = actualType.getTypeParameters(); - for (int i = 0, len = expectedTypes.size(); i < len; ++i) { - ResolvedType exp = expectedTypes.get(i); - ResolvedType act = actualTypes.get(i); - if (!_verifyAndResolve(exp, act)) { - throw new IllegalArgumentException("Type parameter #"+(i+1)+"/"+len+" differs; expected " - +exp.getBriefDescription()+", got "+act.getBriefDescription()); - } - } - } - - private boolean _verifyAndResolve(ResolvedType exp, ResolvedType act) - { - // See if we have an actual type placeholder to resolve; if yes, replace - if (act instanceof TypePlaceHolder) { - ((TypePlaceHolder) act).actualType(exp); - return true; - } - // if not, try to verify compatibility. But note that we can not - // use simple equality as we need to resolve recursively - if (exp.getErasedType() != act.getErasedType()) { - return false; - } - // But we can check type parameters "blindly" - List expectedTypes = exp.getTypeParameters(); - List actualTypes = act.getTypeParameters(); - for (int i = 0, len = expectedTypes.size(); i < len; ++i) { - ResolvedType exp2 = expectedTypes.get(i); - ResolvedType act2 = actualTypes.get(i); - if (!_verifyAndResolve(exp2, act2)) { - return false; - } - } - return true; - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/HierarchicType.java b/src/main/java/com/fasterxml/classmate/members/HierarchicType.java deleted file mode 100644 index e4e5b2e..0000000 --- a/src/main/java/com/fasterxml/classmate/members/HierarchicType.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.ResolvedTypeWithMembers; - -/** - * Container class used to enclose information about a single {@link ResolvedType} - * that is part of {@link ResolvedTypeWithMembers}. - */ -public final class HierarchicType -{ - /** - * Whether this type instance represents a mix-in; if so, it can only result in - * addition of annotations but not in addition of actual members. - */ - protected final boolean _isMixin; - - protected final ResolvedType _type; - - /** - * Relative priority of this type in hierarchy; higher priority members can override - * lower priority members. Priority values are unique and are based on type index - * (starting from 0), although they are not to be used for indexing. - */ - protected final int _priority; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - public HierarchicType(ResolvedType type, boolean mixin, int priority) - { - _type = type; - _isMixin = mixin; - _priority = priority; - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - public ResolvedType getType() { return _type; } - public Class getErasedType() { return _type.getErasedType(); } - public boolean isMixin() { return _isMixin; } - public int getPriority() { return _priority; } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public String toString() { return _type.toString(); } - @Override public int hashCode() { return _type.hashCode(); } - - @Override - public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - HierarchicType other = (HierarchicType) o; - return _type.equals(other._type); - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/RawConstructor.java b/src/main/java/com/fasterxml/classmate/members/RawConstructor.java deleted file mode 100644 index f90a53e..0000000 --- a/src/main/java/com/fasterxml/classmate/members/RawConstructor.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Constructor; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.util.MethodKey; - -public final class RawConstructor extends RawMember -{ - protected final Constructor _constructor; - - protected final int _hashCode; - - public RawConstructor(ResolvedType context, Constructor constructor) - { - super(context); - _constructor = constructor; - _hashCode = (_constructor == null ? 0 : _constructor.hashCode()); - } - - /** - * Although constructors are different from other methods, we can use - * {@link MethodKey} easily. - */ - public MethodKey createKey() - { - String name = ""; // do not use _constructor.getName() to allow for 'mix-ins' - Class[] argTypes = _constructor.getParameterTypes(); // return of Constructor#getParameterTypes will never be null - return new MethodKey(name, argTypes); - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - @Override - public Constructor getRawMember() { - return _constructor; - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public int hashCode() - { - return _hashCode; - } - - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - RawConstructor other = (RawConstructor) o; - return (other._constructor == _constructor); - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/RawField.java b/src/main/java/com/fasterxml/classmate/members/RawField.java deleted file mode 100644 index 29caf01..0000000 --- a/src/main/java/com/fasterxml/classmate/members/RawField.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.ResolvedType; - -public final class RawField extends RawMember -{ - protected final Field _field; - - private final int _hashCode; - - public RawField(ResolvedType context, Field field) - { - super(context); - _field = field; - _hashCode = (_field == null ? 0 : _field.hashCode()); - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - @Override - public Field getRawMember() { - return _field; - } - - public boolean isTransient() { - return Modifier.isTransient(getModifiers()); - } - - public boolean isVolatile() { - return Modifier.isVolatile(getModifiers()); - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - RawField other = (RawField) o; - return (other._field == _field); - } - - @Override public int hashCode() - { - return _hashCode; - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/RawMember.java b/src/main/java/com/fasterxml/classmate/members/RawMember.java deleted file mode 100644 index 2d71fec..0000000 --- a/src/main/java/com/fasterxml/classmate/members/RawMember.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.annotation.Annotation; -import java.lang.reflect.AnnotatedElement; -import java.lang.reflect.Member; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.ResolvedType; - -/** - * Base class for all "raw" member (field, method, constructor) types; raw means that - * actual types are not yet resolved, but relationship to declaring type is - * retained for eventual resolution. - * Instances are typically created by {@link com.fasterxml.classmate.ResolvedType} - * when requested, and form the input to eventual full flattening of type members. - */ -public abstract class RawMember -{ - /** - * {@link ResolvedType} (class with generic type parameters) that declared - * this member - */ - protected final ResolvedType _declaringType; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - protected RawMember(ResolvedType context) - { - _declaringType = context; - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - public final ResolvedType getDeclaringType() { - return _declaringType; - } - - public abstract Member getRawMember(); - - public String getName() { - return getRawMember().getName(); - } - - public boolean isStatic() { - return Modifier.isStatic(getModifiers()); - } - - public boolean isFinal() { - return Modifier.isFinal(getModifiers()); - } - - public boolean isPrivate() { - return Modifier.isPrivate(getModifiers()); - } - - public boolean isProtected() { - return Modifier.isProtected(getModifiers()); - } - - public boolean isPublic() { - return Modifier.isPublic(getModifiers()); - } - - public Annotation[] getAnnotations() { - return ((AnnotatedElement) getRawMember()).getAnnotations(); - } - - /* - /********************************************************************** - /* Standard method overrides - /********************************************************************** - */ - - // make abstract to force implementation by sub-class - @Override public abstract boolean equals(Object o); - - @Override public abstract int hashCode(); - - @Override public String toString() { - return getName(); - } - - /* - /********************************************************************** - /* Package methods - /********************************************************************** - */ - - protected final int getModifiers() { return getRawMember().getModifiers(); } -} diff --git a/src/main/java/com/fasterxml/classmate/members/RawMethod.java b/src/main/java/com/fasterxml/classmate/members/RawMethod.java deleted file mode 100644 index b7fff74..0000000 --- a/src/main/java/com/fasterxml/classmate/members/RawMethod.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.util.MethodKey; - -public final class RawMethod extends RawMember -{ - protected final Method _method; - - protected final int _hashCode; - - public RawMethod(ResolvedType context, Method method) - { - super(context); - _method = method; - _hashCode = (_method == null ? 0 : _method.hashCode()); - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - @Override - public Method getRawMember() { - return _method; - } - - public boolean isAbstract() { - return Modifier.isAbstract(getModifiers()); - } - - public boolean isStrict() { - return Modifier.isStrict(getModifiers()); - } - - public boolean isNative() { - return Modifier.isNative(getModifiers()); - } - - public boolean isSynchronized() { - return Modifier.isSynchronized(getModifiers()); - } - - public MethodKey createKey() - { - String name = _method.getName(); - Class[] argTypes = _method.getParameterTypes(); // return of Method#getParameterTypes will never be null - return new MethodKey(name, argTypes); - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public int hashCode() - { - return _hashCode; - } - - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - RawMethod other = (RawMethod) o; - return (other._method == _method); - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/ResolvedConstructor.java b/src/main/java/com/fasterxml/classmate/members/ResolvedConstructor.java deleted file mode 100644 index d6e1fa2..0000000 --- a/src/main/java/com/fasterxml/classmate/members/ResolvedConstructor.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Constructor; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.ResolvedType; - -/** - * Class that represents a constructor that has fully resolved generic - * type information and annotation information. - */ -public final class ResolvedConstructor extends ResolvedParameterizedMember> -{ - public ResolvedConstructor(ResolvedType context, Annotations ann, Constructor constructor, - ResolvedType[] argumentTypes) - { - super(context, ann, constructor, null, argumentTypes); - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - -} diff --git a/src/main/java/com/fasterxml/classmate/members/ResolvedField.java b/src/main/java/com/fasterxml/classmate/members/ResolvedField.java deleted file mode 100644 index 7fb4098..0000000 --- a/src/main/java/com/fasterxml/classmate/members/ResolvedField.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.ResolvedType; - -public final class ResolvedField extends ResolvedMember - implements Comparable -{ - public ResolvedField(ResolvedType context, Annotations ann, - Field field, ResolvedType type) - { - super(context, ann, field, type); - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - public boolean isTransient() { - return Modifier.isTransient(getModifiers()); - } - - public boolean isVolatile() { - return Modifier.isVolatile(getModifiers()); - } - - @Override - public int compareTo(ResolvedField other) { - return getName().compareTo(other.getName()); - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/ResolvedMember.java b/src/main/java/com/fasterxml/classmate/members/ResolvedMember.java deleted file mode 100644 index 848c2c8..0000000 --- a/src/main/java/com/fasterxml/classmate/members/ResolvedMember.java +++ /dev/null @@ -1,156 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Member; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.ResolvedType; - -/** - * Fully type-resolved equivalent of {@link RawMember}. Only members "that matter" (ones not - * overridden, or filtered out) are resolved, since resolution process can add non-trivial - * overhead. - */ -public abstract class ResolvedMember -{ - /** - * {@link ResolvedType} (class with generic type parameters) that declared - * this member - */ - protected final ResolvedType _declaringType; - - protected final Annotations _annotations; - - protected final T _member; - - protected final ResolvedType _type; - - protected final int _hashCode; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - protected ResolvedMember(ResolvedType context, Annotations ann, T member, ResolvedType type) - { - _declaringType = context; - _annotations = ann; - _member = member; - _type = type; - _hashCode = (_member == null ? 0 : _member.hashCode()); - } - - public void applyOverride(Annotation override) - { - _annotations.add(override); - } - - public void applyOverrides(Annotations overrides) - { - _annotations.addAll(overrides); - } - - public void applyDefault(Annotation override) - { - _annotations.addAsDefault(override); - } - - public A get(Class cls) - { - return _annotations.get(cls); - } - - public Annotations getAnnotations() - { - return _annotations; - } - - /* - /********************************************************************** - /* Simple accessors - /********************************************************************** - */ - - public final ResolvedType getDeclaringType() { - return _declaringType; - } - - /** - * Returns type of this member; if it has one, for methods this is the - * return type, for fields field type, and for constructors null. - */ - public ResolvedType getType() { - return _type; - } - - /** - * Returns JDK object that represents member. - */ - public T getRawMember() { - return _member; - } - - public String getName() { - return getRawMember().getName(); - } - - public boolean isStatic() { - return Modifier.isStatic(getModifiers()); - } - - public boolean isFinal() { - return Modifier.isFinal(getModifiers()); - } - - public boolean isPrivate() { - return Modifier.isPrivate(getModifiers()); - } - - public boolean isProtected() { - return Modifier.isProtected(getModifiers()); - } - - public boolean isPublic() { - return Modifier.isPublic(getModifiers()); - } - - /* - /********************************************************************** - /* Standard method overrides - /********************************************************************** - */ - - @Override public String toString() { - return getName(); - } - - /* - /********************************************************************** - /* Package methods - /********************************************************************** - */ - - protected final int getModifiers() { return getRawMember().getModifiers(); } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override public int hashCode() { - return _hashCode; - } - - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - ResolvedMember other = (ResolvedMember) o; - return (other._member == _member); - } - -} diff --git a/src/main/java/com/fasterxml/classmate/members/ResolvedMethod.java b/src/main/java/com/fasterxml/classmate/members/ResolvedMethod.java deleted file mode 100644 index 6b6d16d..0000000 --- a/src/main/java/com/fasterxml/classmate/members/ResolvedMethod.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.ResolvedType; - -public final class ResolvedMethod extends ResolvedParameterizedMember - implements Comparable -{ - public ResolvedMethod(ResolvedType context, Annotations ann, Method method, - ResolvedType returnType, ResolvedType[] argumentTypes) - { - super(context, ann, method, returnType, argumentTypes); - } - - /* - /********************************************************************** - /* Simple accessors from base class - /********************************************************************** - */ - - public boolean isAbstract() { - return Modifier.isAbstract(getModifiers()); - } - - public boolean isStrict() { - return Modifier.isStrict(getModifiers()); - } - - public boolean isNative() { - return Modifier.isNative(getModifiers()); - } - - public boolean isSynchronized() { - return Modifier.isSynchronized(getModifiers()); - } - - /* - /********************************************************************** - /* Extended API - /********************************************************************** - */ - - public ResolvedType getReturnType() { return getType(); } - - /* - /********************************************************************** - /* Standard method override - /********************************************************************** - */ - - @Override - public int compareTo(ResolvedMethod other) - { - // primary sort by name (alphabetic); secondary by arg count (ascending) - int diff = getName().compareTo(other.getName()); - if (diff == 0) { - // subtract fine, no fear of overflow here - diff = getArgumentCount() - other.getArgumentCount(); - } - return diff; - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/ResolvedParameterizedMember.java b/src/main/java/com/fasterxml/classmate/members/ResolvedParameterizedMember.java deleted file mode 100644 index b0f117e..0000000 --- a/src/main/java/com/fasterxml/classmate/members/ResolvedParameterizedMember.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.ResolvedType; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Member; - -/** - * Base type for resolved members that take some parameters (e.g. methods and constructors). - */ -public abstract class ResolvedParameterizedMember extends ResolvedMember { - - protected final ResolvedType[] _paramTypes; - - protected final Annotations[] _paramAnnotations; - - protected ResolvedParameterizedMember(ResolvedType context, Annotations ann, - T member, ResolvedType type, ResolvedType[] argumentTypes) { - super(context, ann, member, type); - _paramTypes = argumentTypes == null ? ResolvedType.NO_TYPES : argumentTypes; - _paramAnnotations = new Annotations[_paramTypes.length]; - } - - public Annotations getParameterAnnotations(int index) { - if (index >= _paramTypes.length) - throw new IndexOutOfBoundsException("No parameter at index " + index + ", this is greater than the total number of parameters"); - - if (_paramAnnotations[index] == null) { - _paramAnnotations[index] = new Annotations(); - } - return _paramAnnotations[index]; - } - - public void applyParamOverride(int index, Annotation override) - { - if (index >= _paramAnnotations.length) - return; - - getParameterAnnotations(index).add(override); - } - - public void applyParamOverrides(int index, Annotations overrides) - { - if (index >= _paramAnnotations.length) - return; - - getParameterAnnotations(index).addAll(overrides); - } - - public void applyParamDefault(int index, Annotation defaultValue) - { - if (index >= _paramAnnotations.length) - return; - - getParameterAnnotations(index).addAsDefault(defaultValue); - } - - public A getParam(int index, Class cls) - { - if (index >= _paramAnnotations.length) - return null; - - return _paramAnnotations[index].get(cls); - } - - /** - * Returns number of arguments method takes. - */ - public int getArgumentCount() { - return _paramTypes.length; - } - - public ResolvedType getArgumentType(int index) - { - if (index < 0 || index >= _paramTypes.length) { - return null; - } - return _paramTypes[index]; - } -} diff --git a/src/main/java/com/fasterxml/classmate/members/package-info.java b/src/main/java/com/fasterxml/classmate/members/package-info.java deleted file mode 100644 index a4407f3..0000000 --- a/src/main/java/com/fasterxml/classmate/members/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Package that contains implementations of various member types - * (methods, fields, constructors) - */ -package com.fasterxml.classmate.members; diff --git a/src/main/java/com/fasterxml/classmate/package-info.java b/src/main/java/com/fasterxml/classmate/package-info.java deleted file mode 100644 index 8afcbad..0000000 --- a/src/main/java/com/fasterxml/classmate/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Package that contains main public interface of ClassMate - * package. - *

- * Most commonly resolution starts with {@link com.fasterxml.classmate.TypeResolver}, - * using its resolve() method, which returns a - * {@link com.fasterxml.classmate.ResolvedType} instance. - * These type objects contain all necessary information about type itself; - * but if type information on members (fields, methods, constructors, static - * members) is needed, {@link com.fasterxml.classmate.MemberResolver} can - * resolve types for members: it takes {@link com.fasterxml.classmate.ResolvedType}s. - */ -package com.fasterxml.classmate; diff --git a/src/main/java/com/fasterxml/classmate/types/ResolvedArrayType.java b/src/main/java/com/fasterxml/classmate/types/ResolvedArrayType.java deleted file mode 100644 index b7c81d8..0000000 --- a/src/main/java/com/fasterxml/classmate/types/ResolvedArrayType.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; - -public final class ResolvedArrayType extends ResolvedType -{ - /** - * All Java Arrays extend {@link java.lang.Object} so we need - * a reference - *

- * Note that direct construction is used instead of construction via - * {@link TypeResolver} due to complexity of doing latter: {@code java.lang.Object} - * also does not implement any interfaces so this should be safe enough. - * - * @since 1.7 - */ - private final static ResolvedObjectType PARENT_TYPE = - ResolvedObjectType.create(Object.class, null, null, null); - - protected final ResolvedType _elementType; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - public ResolvedArrayType(Class erased, TypeBindings bindings, - ResolvedType elementType) - { - super(erased, bindings); - _elementType = elementType; - } - - @Override - public boolean canCreateSubtypes() { - return false; - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public ResolvedType getParentClass() { return PARENT_TYPE; } - - @Override - public ResolvedType getSelfReferencedType() { return null; } - - @Override - public List getImplementedInterfaces() { - return Collections.emptyList(); - } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public boolean isInterface() { - return false; - } - - @Override - public boolean isAbstract() { return false; } - - @Override - public ResolvedType getArrayElementType() { return _elementType; } - - @Override - public boolean isArray() { return true; } - - @Override - public boolean isPrimitive() { return false; } - - /* - /********************************************************************** - /* Accessors for raw (minimally processed) members - /********************************************************************** - */ - - // defaults are fine (nothing to access) - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - sb.append('['); - return _elementType.appendSignature(sb); - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - sb.append('['); - return _elementType.appendErasedSignature(sb); - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) - { - sb = _elementType.appendBriefDescription(sb); - sb.append("[]"); - return sb; - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) { - return appendBriefDescription(sb); - } -} diff --git a/src/main/java/com/fasterxml/classmate/types/ResolvedInterfaceType.java b/src/main/java/com/fasterxml/classmate/types/ResolvedInterfaceType.java deleted file mode 100644 index 823d062..0000000 --- a/src/main/java/com/fasterxml/classmate/types/ResolvedInterfaceType.java +++ /dev/null @@ -1,161 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; -import com.fasterxml.classmate.members.RawField; -import com.fasterxml.classmate.members.RawMethod; - -public class ResolvedInterfaceType extends ResolvedType -{ - /** - * List of interfaces this type implements; may be empty but never null - */ - protected final ResolvedType[] _superInterfaces; - - /** - * Interfaces can have static final (constant) fields. - */ - protected RawField[] _constantFields; - - /** - * Interface methods are all public and abstract. - */ - protected RawMethod[] _memberMethods; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - public ResolvedInterfaceType(Class erased, TypeBindings bindings, - ResolvedType[] superInterfaces) - { - super(erased, bindings); - _superInterfaces = (superInterfaces == null ? NO_TYPES : superInterfaces); - } - - @Override - public boolean canCreateSubtypes() { - return true; - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public ResolvedType getParentClass() { - // interfaces do not have parent class, just interfaces - return null; - } - - @Override - public ResolvedType getSelfReferencedType() { return null; } - - @Override - public List getImplementedInterfaces() { - return (_superInterfaces.length == 0) ? - Collections.emptyList() : Arrays.asList(_superInterfaces); - } - - @Override - public ResolvedType getArrayElementType() { // interfaces are never arrays, so: - return null; - } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public boolean isInterface() { return true; } - - @Override - public boolean isAbstract() { return true; } - - @Override - public boolean isArray() { return false; } - - @Override - public boolean isPrimitive() { return false; } - - /* - /********************************************************************** - /* Accessors for raw (minimally procesed) members - /********************************************************************** - */ - - @Override - public synchronized List getStaticFields() - { - // Interfaces can have static fields, but only as static constants... - if (_constantFields == null) { - _constantFields = _getFields(true); - } - if (_constantFields.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_constantFields); - } - - @Override - public synchronized List getMemberMethods() - { - if (_memberMethods == null) { - _memberMethods = _getMethods(false); - } - if (_memberMethods.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_memberMethods); - } - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - return _appendClassSignature(sb); - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - return _appendErasedClassSignature(sb); - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) { - return _appendClassDescription(sb); - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) - { - sb = _appendClassDescription(sb); - // interfaces 'extend' other interfaces... - int count = _superInterfaces.length; - if (count > 0) { - sb.append(" extends "); - for (int i = 0; i < count; ++i) { - if (i > 0) { - sb.append(","); - } - sb = _superInterfaces[i].appendBriefDescription(sb); - } - } - return sb; - } -} - - - diff --git a/src/main/java/com/fasterxml/classmate/types/ResolvedObjectType.java b/src/main/java/com/fasterxml/classmate/types/ResolvedObjectType.java deleted file mode 100644 index 9b354a8..0000000 --- a/src/main/java/com/fasterxml/classmate/types/ResolvedObjectType.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.lang.reflect.Modifier; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; -import com.fasterxml.classmate.members.RawConstructor; -import com.fasterxml.classmate.members.RawField; -import com.fasterxml.classmate.members.RawMethod; - -/** - * Type implementation for classes that do not represent interfaces, - * primitive or array types. - */ -public class ResolvedObjectType extends ResolvedType -{ - /** - * While fundamentally super class has to be {@link ResolvedObjectType} - * (or null for {@link java.lang.Object}), we may need to hold on to - * a {@link ResolvedRecursiveType} occasionally. - */ - protected final ResolvedType _superClass; - - /** - * List of interfaces this type implements; may be empty but never null - */ - protected final ResolvedType[] _superInterfaces; - - /** - * Modifiers of the underlying class. - */ - protected final int _modifiers; - - /** - * Constructors declared by the resolved Object class. - */ - protected RawConstructor[] _constructors; - - protected RawField[] _memberFields; - protected RawField[] _staticFields; - - protected RawMethod[] _memberMethods; - protected RawMethod[] _staticMethods; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - public ResolvedObjectType(Class erased, TypeBindings bindings, - ResolvedType superClass, List interfaces) - { - this(erased, bindings, superClass, - (interfaces == null || interfaces.isEmpty()) ? NO_TYPES : - interfaces.toArray(new ResolvedType[0])); - } - - public ResolvedObjectType(Class erased, TypeBindings bindings, - ResolvedType superClass, ResolvedType[] interfaces) - { - super(erased, bindings); - /* 19-Aug-2014, tatu: bit unclean, but has to do for now. - * Problem is, there is no common super-type, nor can we yet - * force or coerce recursive types. Rather, they may only get - * resolved only slightly after construction. So... need to - * keep a reference. - */ - if (superClass != null) { - if (!(superClass instanceof ResolvedObjectType) - && !(superClass instanceof ResolvedRecursiveType) - ) { - throw new IllegalArgumentException("Unexpected parent type for " - +erased.getName()+": "+superClass.getClass().getName()); - } - } - - _superClass = superClass; - _superInterfaces = (interfaces == null) ? NO_TYPES : interfaces; - _modifiers = erased.getModifiers(); - } - - public static ResolvedObjectType create(Class erased, TypeBindings bindings, - ResolvedType superClass, List interfaces) - { - return new ResolvedObjectType(erased, bindings, superClass, interfaces); - } - - @Override - public boolean canCreateSubtypes() { - return true; - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public ResolvedObjectType getParentClass() { - - /* 19-Aug-2014, tatu: Ugly does it... sigh. - * But can't be helped because ResolvedRecursiveType is typically only - * resolved after instances of this type have been constructed. - * This means that resolution will need to be done somewhat dynamically. - */ - if (_superClass == null) { - return null; - } - if (_superClass instanceof ResolvedObjectType) { - return (ResolvedObjectType) _superClass; - } - ResolvedType rt = ((ResolvedRecursiveType) _superClass).getSelfReferencedType(); - if (!(rt instanceof ResolvedObjectType)) { - throw new IllegalStateException("Internal error: self-referential parent type (" - +_superClass+") does not resolve into proper ResolvedObjectType, but instead to: " - +rt); - } - return (ResolvedObjectType) rt; - } - - @Override - public ResolvedType getSelfReferencedType() { return null; } - - @Override - public List getImplementedInterfaces() { - return (_superInterfaces.length == 0) ? - Collections.emptyList() : Arrays.asList(_superInterfaces); - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public final ResolvedType getArrayElementType() { return null; } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public final boolean isInterface() { return false; } - - @Override - public boolean isAbstract() { - return Modifier.isAbstract(_modifiers); - } - - @Override - public final boolean isArray() { return false; } - - @Override - public final boolean isPrimitive() { return false; } - - /* - /********************************************************************** - /* Accessors for raw (minimally procesed) members - /********************************************************************** - */ - - @Override - public synchronized List getMemberFields() - { - if (_memberFields == null) { - _memberFields = _getFields(false); - } - if (_memberFields.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_memberFields); - } - - @Override - public synchronized List getStaticFields() - { - if (_staticFields == null) { - _staticFields = _getFields(true); - } - if (_staticFields.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_staticFields); - } - - @Override - public synchronized List getMemberMethods() - { - if (_memberMethods == null) { - _memberMethods = _getMethods(false); - } - if (_memberMethods.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_memberMethods); - } - - @Override - public synchronized List getStaticMethods() - { - if (_staticMethods == null) { - _staticMethods = _getMethods(true); - } - if (_staticMethods.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_staticMethods); - } - - @Override - public synchronized List getConstructors() - { - if (_constructors == null) { - _constructors = _getConstructors(); - } - if (_constructors.length == 0) { - return Collections.emptyList(); - } - return Arrays.asList(_constructors); - } - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - return _appendClassSignature(sb); - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - return _appendErasedClassSignature(sb); - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) { - return _appendClassDescription(sb); - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) - { - sb = _appendClassDescription(sb); - if (_superClass != null) { - sb.append(" extends "); - sb = _superClass.appendBriefDescription(sb); - } - // interfaces 'extend' other interfaces... - int count = _superInterfaces.length; - if (count > 0) { - sb.append(" implements "); - for (int i = 0; i < count; ++i) { - if (i > 0) { - sb.append(","); - } - sb = _superInterfaces[i].appendBriefDescription(sb); - } - } - return sb; - } -} - diff --git a/src/main/java/com/fasterxml/classmate/types/ResolvedPrimitiveType.java b/src/main/java/com/fasterxml/classmate/types/ResolvedPrimitiveType.java deleted file mode 100644 index 1c9be36..0000000 --- a/src/main/java/com/fasterxml/classmate/types/ResolvedPrimitiveType.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; - -/** - * Type used for Java primitive types (which does not include arrays here). - *

- * Since set of primitive types is bounded, constructor is defined as protected, - * and class final; that is, new primitive types are not to be constructed - * by calling applications. - */ -public final class ResolvedPrimitiveType extends ResolvedType -{ - private final static ResolvedPrimitiveType VOID = new ResolvedPrimitiveType(Void.TYPE, 'V', "void"); - - /** - * Primitive types have single-character Signature, easy and efficient - * to just store here - */ - protected final String _signature; - - /** - * Human-readable description should be simple as well - */ - protected final String _description; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - protected ResolvedPrimitiveType(Class erased, char sig, String desc) - { - super(erased, TypeBindings.emptyBindings()); - _signature = String.valueOf(sig); - _description = desc; - } - - public static List all() - { - ArrayList all = new ArrayList(); - all.add(new ResolvedPrimitiveType(Boolean.TYPE, 'Z', "boolean")); - all.add(new ResolvedPrimitiveType(Byte.TYPE, 'B', "byte")); - all.add(new ResolvedPrimitiveType(Short.TYPE, 'S', "short")); - all.add(new ResolvedPrimitiveType(Character.TYPE, 'C', "char")); - all.add(new ResolvedPrimitiveType(Integer.TYPE, 'I', "int")); - all.add(new ResolvedPrimitiveType(Long.TYPE, 'J', "long")); - all.add(new ResolvedPrimitiveType(Float.TYPE, 'F', "float")); - all.add(new ResolvedPrimitiveType(Double.TYPE, 'D', "double")); - return all; - } - - public static ResolvedPrimitiveType voidType() - { - return VOID; - } - - @Override - public boolean canCreateSubtypes() { - return false; - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public ResolvedType getSelfReferencedType() { return null; } - - @Override - public ResolvedType getParentClass() { return null; } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public boolean isInterface() { return false; } - - @Override - public boolean isAbstract() { return false; } - - @Override - public ResolvedType getArrayElementType() { return null; } - - @Override - public boolean isArray() { return false; } - - @Override - public boolean isPrimitive() { return true; } - - @Override - public List getImplementedInterfaces() { - return Collections.emptyList(); - } - - /* - /********************************************************************** - /* Accessors for raw (minimally procesed) members - /********************************************************************** - */ - - // Primitive types are simple; no fields, no methods, no constructors - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public String getSignature() { - return _signature; - } - - @Override - public String getErasedSignature() { - return _signature; - } - - @Override - public String getFullDescription() { - return _description; - } - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - sb.append(_signature); - return sb; - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - sb.append(_signature); - return sb; - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) { - sb.append(_description); - return sb; - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) { - sb.append(_description); - return sb; - } -} diff --git a/src/main/java/com/fasterxml/classmate/types/ResolvedRecursiveType.java b/src/main/java/com/fasterxml/classmate/types/ResolvedRecursiveType.java deleted file mode 100644 index f43143e..0000000 --- a/src/main/java/com/fasterxml/classmate/types/ResolvedRecursiveType.java +++ /dev/null @@ -1,173 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.lang.reflect.Modifier; -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; -import com.fasterxml.classmate.members.RawConstructor; -import com.fasterxml.classmate.members.RawField; -import com.fasterxml.classmate.members.RawMethod; - -/** - * Specialized type placeholder used in cases where type definition is - * recursive; to avoid infinite loop, reference that would be "back" in - * hierarchy is represented by an instance of this class. - * Underlying information is achievable (for full resolution), but - * not exposed using super type (parent) accessors; and has special - * handling when used for constructing descriptions. - */ -public class ResolvedRecursiveType extends ResolvedType -{ - /** - * Actual fully resolved type; assigned once resolution is complete - */ - protected ResolvedType _referencedType; - - /* - /********************************************************************** - /* Life cycle - /********************************************************************** - */ - - public ResolvedRecursiveType(Class erased, TypeBindings bindings) - { - super(erased, bindings); - } - - @Override - public boolean canCreateSubtypes() { - return _referencedType.canCreateSubtypes(); - } - - public void setReference(ResolvedType ref) - { - // sanity check; should not be called multiple times - if (_referencedType != null) { - throw new IllegalStateException("Trying to re-set self reference; old value = "+_referencedType+", new = "+ref); - } - _referencedType = ref; - } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - /** - * To avoid infinite loops, will return null; - */ - @Override - public ResolvedType getParentClass() { - return null; - } - - @Override - public ResolvedType getSelfReferencedType() { return _referencedType; } - - /** - * To avoid infinite loops, will return empty list - */ - @Override - public List getImplementedInterfaces() { - return Collections.emptyList(); - } - - /** - * To avoid infinite loops, will return null type - */ - @Override - public ResolvedType getArrayElementType() { // interfaces are never arrays, so: - return null; - } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public boolean isInterface() { return _erasedType.isInterface(); } - - @Override - public boolean isAbstract() { return Modifier.isAbstract(_erasedType.getModifiers()); } - - @Override - public boolean isArray() { return _erasedType.isArray(); } - - @Override - public boolean isPrimitive() { return false; } - - /* - /********************************************************************** - /* Accessors for raw (minimally procesed) members - /********************************************************************** - */ - - @Override - public List getMemberFields() { return _referencedType.getMemberFields(); } - @Override - public List getStaticFields() { return _referencedType.getStaticFields(); } - @Override - public List getStaticMethods() { return _referencedType.getStaticMethods(); } - @Override - public List getMemberMethods() { return _referencedType.getMemberMethods(); } - @Override - public List getConstructors() { return _referencedType.getConstructors(); } - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - // to avoid infinite recursion, only print type erased version - return appendErasedSignature(sb); - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - return _appendErasedClassSignature(sb); - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) { - return _appendClassDescription(sb); - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) - { - // should never get called, but just in case, only print brief description - return appendBriefDescription(sb); - } - - /* - /********************************************************************** - /* Other overrides - /********************************************************************** - */ - - @Override public boolean equals(Object o) - { - if (!super.equals(o)) { - return false; - } - // not sure if we should match at all, but definitely need this - // additional part if we do: - ResolvedRecursiveType other = (ResolvedRecursiveType) o; - if (_referencedType == null) { - return other._referencedType == null; - } - return _referencedType.equals(other._referencedType); - } - - // Only for compliance purposes: lgtm.com complains if only equals overridden - @Override public int hashCode() { - return super.hashCode(); - } -} diff --git a/src/main/java/com/fasterxml/classmate/types/TypePlaceHolder.java b/src/main/java/com/fasterxml/classmate/types/TypePlaceHolder.java deleted file mode 100644 index a441e96..0000000 --- a/src/main/java/com/fasterxml/classmate/types/TypePlaceHolder.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; - -/** - * Placeholder used for resolving type assignments to figure out - * type parameters for subtypes. - */ -public class TypePlaceHolder extends ResolvedType -{ - protected final int _ordinal; - - /** - * Type assigned during wildcard resolution (which follows type - * structure resolution) - */ - protected ResolvedType _actualType; - - public TypePlaceHolder(int ordinal) - { - super(Object.class, TypeBindings.emptyBindings()); - _ordinal = ordinal; - } - - @Override - public boolean canCreateSubtypes() { return false; } - - public ResolvedType actualType() { return _actualType; } - public void actualType(ResolvedType t) { _actualType = t; } - - /* - /********************************************************************** - /* Accessors for related types - /********************************************************************** - */ - - @Override - public ResolvedType getParentClass() { return null; } - - @Override - public ResolvedType getSelfReferencedType() { return null; } - - @Override - public List getImplementedInterfaces() { return Collections.emptyList(); } - - @Override - public ResolvedType getArrayElementType() { return null; } - - /* - /********************************************************************** - /* Simple property accessors - /********************************************************************** - */ - - @Override - public boolean isInterface() { return false; } - - @Override - public boolean isAbstract() { return true; } - - @Override - public boolean isArray() { return false; } - - @Override - public boolean isPrimitive() { return false; } - - /* - /********************************************************************** - /* String representations - /********************************************************************** - */ - - @Override - public StringBuilder appendSignature(StringBuilder sb) { - return _appendClassSignature(sb); - } - - @Override - public StringBuilder appendErasedSignature(StringBuilder sb) { - return _appendErasedClassSignature(sb); - } - - @Override - public StringBuilder appendBriefDescription(StringBuilder sb) { - sb.append('<').append(_ordinal).append('>'); - return sb; - } - - @Override - public StringBuilder appendFullDescription(StringBuilder sb) { - return appendBriefDescription(sb); - } - - /* - /********************************************************************** - /* Other overrides - /********************************************************************** - */ - - // Important: make sure to avoid matches for cache lookups; one way is - // to handle it here; not the only one. - @Override public boolean equals(Object o) { // since 1.3.1 - // should these ever match actually? - return (o == this); - } - - // Only for compliance purposes: lgtm.com complains if only equals overridden - @Override public int hashCode() { - return _ordinal; - } -} diff --git a/src/main/java/com/fasterxml/classmate/types/package-info.java b/src/main/java/com/fasterxml/classmate/types/package-info.java deleted file mode 100644 index ff3f9e2..0000000 --- a/src/main/java/com/fasterxml/classmate/types/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Package that contains {@link com.fasterxml.classmate.ResolvedType} - * implementation classes. - */ -package com.fasterxml.classmate.types; diff --git a/src/main/java/com/fasterxml/classmate/util/ClassKey.java b/src/main/java/com/fasterxml/classmate/util/ClassKey.java deleted file mode 100644 index 261b862..0000000 --- a/src/main/java/com/fasterxml/classmate/util/ClassKey.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.io.Serializable; - -/** - * Helper class used as key when we need efficient Class-to-value lookups. - */ -@SuppressWarnings("serial") -public class ClassKey - implements Comparable, Serializable -{ - private final String _className; - - private final Class _class; - - /** - * Let's cache hash code straight away, since we are almost certain to need it. - */ - private final int _hashCode; - - public ClassKey(Class clz) - { - _class = clz; - _className = clz.getName(); - _hashCode = _className.hashCode(); - } - - /* - /********************************************************************** - /* Comparable - /********************************************************************** - */ - - @Override - public int compareTo(ClassKey other) - { - // Just need to sort by name, ok to collide (unless used in TreeMap/Set!) - return _className.compareTo(other._className); - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - @Override - public boolean equals(Object o) - { - if (o == this) return true; - if (o == null) return false; - if (o.getClass() != getClass()) return false; - ClassKey other = (ClassKey) o; - - /* Is it possible to have different Class object for same name + class loader combo? - * Let's assume answer is no: if this is wrong, will need to uncomment following functionality - */ - /* - return (other._className.equals(_className)) - && (other._class.getClassLoader() == _class.getClassLoader()); - */ - return other._class == _class; - } - - @Override public int hashCode() { return _hashCode; } - - @Override public String toString() { return _className; } - -} diff --git a/src/main/java/com/fasterxml/classmate/util/ClassStack.java b/src/main/java/com/fasterxml/classmate/util/ClassStack.java deleted file mode 100644 index 57bf73b..0000000 --- a/src/main/java/com/fasterxml/classmate/util/ClassStack.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.util.ArrayList; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.types.ResolvedRecursiveType; - -/** - * Simple helper class used to keep track of 'call stack' for classes being referenced - * (as well as unbound variables) - */ -public final class ClassStack -{ - protected final ClassStack _parent; - protected final Class _current; - - private ArrayList _selfRefs; - - public ClassStack(Class rootType) { - this(null, rootType); - } - - private ClassStack(ClassStack parent, Class curr) { - _parent = parent; - _current = curr; - } - - /** - * @return New stack frame, if addition is ok; null if not - */ - public ClassStack child(Class cls) - { - return new ClassStack(this, cls); - } - - /** - * Method called to indicate that there is a self-reference from - * deeper down in stack pointing into type this stack frame represents. - */ - public void addSelfReference(ResolvedRecursiveType ref) - { - if (_selfRefs == null) { - _selfRefs = new ArrayList(); - } - _selfRefs.add(ref); - } - - /** - * Method called when type that this stack frame represents is - * fully resolved, allowing self-references to be completed - * (if there are any) - */ - public void resolveSelfReferences(ResolvedType resolved) - { - if (_selfRefs != null) { - for (ResolvedRecursiveType ref : _selfRefs) { - ref.setReference(resolved); - } - } - } - - public ClassStack find(Class cls) - { - if (_current == cls) return this; - for (ClassStack curr = _parent; curr != null; curr = curr._parent) { - if (curr._current == cls) { - return curr; - } - } - return null; - } -} diff --git a/src/main/java/com/fasterxml/classmate/util/ConcurrentTypeCache.java b/src/main/java/com/fasterxml/classmate/util/ConcurrentTypeCache.java deleted file mode 100644 index 72013e4..0000000 --- a/src/main/java/com/fasterxml/classmate/util/ConcurrentTypeCache.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.util.concurrent.ConcurrentHashMap; - -import com.fasterxml.classmate.ResolvedType; - -/** - * Alternative {@link ResolvedTypeCache} implementation that uses - * {@link ConcurrentHashMap} for efficient concurrent access and limits maximum - * entry count to specified maximum. But instead of trying to optimize retention - * by access (as {@link LRUTypeCache} does, will simply clear (remove all entries) - * if maximum size is reached. This works well as long as maximum size is large enough - * to cover most commonly resolved types, and works well for higher concurrency use - * cases. - * - * @see LRUTypeCache - */ -public class ConcurrentTypeCache - extends ResolvedTypeCache -{ - private static final long serialVersionUID = 1L; - - protected final int _maxEntries; - - protected final transient ConcurrentHashMap _map; - - public ConcurrentTypeCache(int maxEntries) { - // We'll use concurrency level of 4, seems reasonable - _map = new ConcurrentHashMap(maxEntries, - 0.8f, 4); - _maxEntries = maxEntries; - } - - // For JDK serialization: have to re-construct backing Map since it is NOT serialized - Object readResolve() { - return new ConcurrentTypeCache(_maxEntries); - } - - @Override - public ResolvedType find(ResolvedTypeKey key) { - if (key == null) { - throw new IllegalArgumentException("Null key not allowed"); - } - return _map.get(key); - } - - @Override - public int size() { - return _map.size(); - } - - @Override - public void put(ResolvedTypeKey key, ResolvedType type) { - if (key == null) { - throw new IllegalArgumentException("Null key not allowed"); - } - if (_map.size() >= _maxEntries) { - // double-locking, yes, but safe here; trying to avoid "clear storms" - // when multiple threads think they are to flush the cache - synchronized (this) { - if (_map.size() >= _maxEntries) { - _map.clear(); - } - } - } - _map.put(key, type); - } -} diff --git a/src/main/java/com/fasterxml/classmate/util/LRUTypeCache.java b/src/main/java/com/fasterxml/classmate/util/LRUTypeCache.java deleted file mode 100644 index 502ad4c..0000000 --- a/src/main/java/com/fasterxml/classmate/util/LRUTypeCache.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.util.*; - -import com.fasterxml.classmate.ResolvedType; - -/** - * Simple cache used for storing up to specified number of most recently accessed - * {@link ResolvedType} instances. Uses "least-recently used" eviction algorithm - * (via {@link LinkedHashMap} used internally) which optimized retention, but - * requires full synchronization as read operation also has to modify internal state - * to maintain LRU aspects. - * This means that it works well in optimizing access patterns, by keeping most recently - * accessed types in cache, but may not well work well for highly concurrent cases due - * to synchronization overhead. - *

- * Like all {@link ResolvedTypeCache} implementations, - * access is thread-safe and caller need not (and should not) use additional synchronization. - *

- * - * @see ConcurrentTypeCache - * - * @since 1.4 - */ -public class LRUTypeCache extends ResolvedTypeCache -{ - private static final long serialVersionUID = 1L; - - protected final int _maxEntries; - - protected final transient CacheMap _map; - - public LRUTypeCache(int maxEntries) { - _map = new CacheMap(maxEntries); - _maxEntries = maxEntries; - } - - // For JDK serialization: have to re-construct backing Map since it is NOT serialized - Object readResolve() { - return new LRUTypeCache(_maxEntries); - } - - @Override - public synchronized ResolvedType find(ResolvedTypeKey key) { - if (key == null) { - throw new IllegalArgumentException("Null key not allowed"); - } - return _map.get(key); - } - - @Override - public synchronized int size() { - return _map.size(); - } - - @Override - public synchronized void put(ResolvedTypeKey key, ResolvedType type) { - if (key == null) { - throw new IllegalArgumentException("Null key not allowed"); - } - _map.put(key, type); - } - - /* - /********************************************************************** - /* Helper classes - /********************************************************************** - */ - - /** - * Simple sub-class to get LRU cache - */ - @SuppressWarnings("serial") - private final static class CacheMap - extends LinkedHashMap - { - protected final int _maxEntries; - - public CacheMap(int maxEntries) { - _maxEntries = maxEntries; - } - - @Override - protected boolean removeEldestEntry(Map.Entry eldest) { - return size() > _maxEntries; - } - } -} diff --git a/src/main/java/com/fasterxml/classmate/util/MethodKey.java b/src/main/java/com/fasterxml/classmate/util/MethodKey.java deleted file mode 100644 index d8074f0..0000000 --- a/src/main/java/com/fasterxml/classmate/util/MethodKey.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.io.Serializable; - -/** - * Helper class needed when storing methods in maps. - * Immutable. - */ -@SuppressWarnings("serial") -public class MethodKey implements Serializable -{ - private static final Class[] NO_CLASSES = new Class[0]; - - private final String _name; - - private final Class[] _argumentTypes; - - private final int _hashCode; - - public MethodKey(String name) - { - _name = name; - _argumentTypes = NO_CLASSES; - _hashCode = name.hashCode(); - } - - public MethodKey(String name, Class[] argTypes) - { - _name = name; - _argumentTypes = argTypes; - _hashCode = name.hashCode() + argTypes.length; - } - - /* - /********************************************************************** - /* Standard methods - /********************************************************************** - */ - - /** - * Equality means name is the same and argument type erasures as well. - */ - @Override public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - MethodKey other = (MethodKey) o; - Class[] otherArgs = other._argumentTypes; - int len = _argumentTypes.length; - if (otherArgs.length != len) return false; - for (int i = 0; i < len; ++i) { - if (otherArgs[i] != _argumentTypes[i]) return false; - } - return _name.equals(other._name); - } - - @Override public int hashCode() { return _hashCode; } - - @Override public String toString() - { - StringBuilder sb = new StringBuilder(); - sb.append(_name); - sb.append('('); - for (int i = 0, len = _argumentTypes.length; i < len; ++i) { - if (i > 0) sb.append(','); - sb.append(_argumentTypes[i].getName()); - } - sb.append(')'); - return sb.toString(); - } -} diff --git a/src/main/java/com/fasterxml/classmate/util/ResolvedTypeCache.java b/src/main/java/com/fasterxml/classmate/util/ResolvedTypeCache.java deleted file mode 100644 index 383b050..0000000 --- a/src/main/java/com/fasterxml/classmate/util/ResolvedTypeCache.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.fasterxml.classmate.util; - -import java.io.Serializable; -import java.util.List; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.types.TypePlaceHolder; - -/** - * Simple LRU cache used for storing up to specified number of most recently accessed - * {@link ResolvedType} instances. - * Since usage pattern is such that caller needs synchronization, cache access methods - * are fully synchronized so that caller need not do explicit synchronization. - */ -@SuppressWarnings("serial") -public abstract class ResolvedTypeCache implements Serializable -{ - /** - * @since 1.4 - */ - public static ResolvedTypeCache lruCache(int maxEntries) { - return new LRUTypeCache(maxEntries); - } - - /** - * @since 1.4 - */ - public static ResolvedTypeCache concurrentCache(int maxEntries) { - return new ConcurrentTypeCache(maxEntries); - } - - /** - * Helper method for constructing reusable cache keys - */ - public ResolvedTypeKey key(Class simpleType) { - return new ResolvedTypeKey(simpleType); - } - - /** - * Helper method for constructing reusable cache keys - */ - public ResolvedTypeKey key(Class simpleType, ResolvedType[] tp) { - int len = (tp == null) ? 0 : tp.length; - if (len == 0) { - return new ResolvedTypeKey(simpleType); - } - // 25-Oct-2015, tatu: Need to prevent caching of anything with TypePlaceHolder; - // can cause problems otherwise as those are ephemeral/mutable containers - for (int i = 0; i < len; ++i) { - if (tp[i] instanceof TypePlaceHolder) { - return null; - } - } - return new ResolvedTypeKey(simpleType, tp); - } - - public abstract ResolvedType find(ResolvedTypeKey key); - - public abstract int size(); - - public abstract void put(ResolvedTypeKey key, ResolvedType type); - - // // // Methods for unit tests - - /** - * Method only used by test code: do not use otherwise. - */ - protected void _addForTest(ResolvedType type) - { - List tp = type.getTypeParameters(); - ResolvedType[] tpa = tp.toArray(new ResolvedType[0]); - put(key(type.getErasedType(), tpa), type); - } -} diff --git a/src/main/java/com/fasterxml/classmate/util/ResolvedTypeKey.java b/src/main/java/com/fasterxml/classmate/util/ResolvedTypeKey.java deleted file mode 100644 index f5b7bb5..0000000 --- a/src/main/java/com/fasterxml/classmate/util/ResolvedTypeKey.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.fasterxml.classmate.util; - -import com.fasterxml.classmate.ResolvedType; - -/** - * Key used for entries cached in a {@link ResolvedTypeCache}. - */ -public class ResolvedTypeKey -{ - private final Class _erasedType; - private final ResolvedType[] _typeParameters; - private final int _hashCode; - - public ResolvedTypeKey(Class simpleType) { - this(simpleType, null); - } - - public ResolvedTypeKey(Class erasedType, ResolvedType[] tp) - { - // let's not hold on type empty arrays - if (tp != null && tp.length == 0) { - tp = null; - } - _erasedType = erasedType; - _typeParameters = tp; - int h = erasedType.getName().hashCode(); - if (tp != null) { - h += tp.length; - } - _hashCode = h; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("[CacheKey: "); - sb.append(_erasedType.getName()) - .append('('); - if (_typeParameters != null) { - for (int i = 0; i < _typeParameters.length; ++i) { - if (i > 0) { - sb.append(','); - } - sb.append(_typeParameters[i]); - } - } - sb.append(")]"); - return sb.toString(); - } - - @Override - public int hashCode() { return _hashCode; } - - @Override - public boolean equals(Object o) - { - if (o == this) return true; - if (o == null || o.getClass() != getClass()) return false; - ResolvedTypeKey other = (ResolvedTypeKey) o; - if (other._erasedType != _erasedType) return false; - ResolvedType[] otherTP = other._typeParameters; - if (_typeParameters == null) { - return (otherTP == null); - } - if (otherTP == null || otherTP.length != _typeParameters.length) { - return false; - } - for (int i = 0, len = _typeParameters.length; i < len; ++i) { - if (!_typeParameters[i].equals(otherTP[i])) { - return false; - } - } - return true; - } -} \ No newline at end of file diff --git a/src/main/java/com/fasterxml/classmate/util/package-info.java b/src/main/java/com/fasterxml/classmate/util/package-info.java deleted file mode 100644 index 7dfc231..0000000 --- a/src/main/java/com/fasterxml/classmate/util/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Various utility classes used by ClassMate. - */ -package com.fasterxml.classmate.util; diff --git a/src/main/resources/META-INF/LICENSE b/src/main/resources/META-INF/LICENSE deleted file mode 100644 index 522a4db..0000000 --- a/src/main/resources/META-INF/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -This copy of Java ClassMate library is licensed under Apache (Software) License, -version 2.0 ("the License"). -See the License for details about distribution rights, and the specific rights regarding derivate works. - -You may obtain a copy of the License at: - -http://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/main/resources/META-INF/NOTICE b/src/main/resources/META-INF/NOTICE deleted file mode 100644 index d706cad..0000000 --- a/src/main/resources/META-INF/NOTICE +++ /dev/null @@ -1,9 +0,0 @@ -Java ClassMate library was originally written by Tatu Saloranta (tatu.saloranta@iki.fi) - -Other developers who have contributed code are: - -* Brian Langel - -## Copyright - -Copyright 2007-, Tatu Saloranta (tatu.saloranta@iki.fi) \ No newline at end of file diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java deleted file mode 100644 index 9e70e71..0000000 --- a/src/moditect/module-info.java +++ /dev/null @@ -1,7 +0,0 @@ -// NOTE: auto-generated with Moditect plugin, on 22-Mar-2019 -module com.fasterxml.classmate { - exports com.fasterxml.classmate; - exports com.fasterxml.classmate.members; - exports com.fasterxml.classmate.types; - exports com.fasterxml.classmate.util; -} diff --git a/src/test/java/com/fasterxml/classmate/AnnotationInclusionTest.java b/src/test/java/com/fasterxml/classmate/AnnotationInclusionTest.java deleted file mode 100644 index e0e83fa..0000000 --- a/src/test/java/com/fasterxml/classmate/AnnotationInclusionTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.fasterxml.classmate; - -public class AnnotationInclusionTest - extends BaseTest -{ - public void testValues() { // stupid test for code coverage (being pedantic here) - includesEnum(AnnotationInclusion.DONT_INCLUDE); - includesEnum(AnnotationInclusion.INCLUDE_AND_INHERIT); - includesEnum(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - } - - private void includesEnum(AnnotationInclusion toFind) { - AnnotationInclusion[] annotationInclusions = AnnotationInclusion.values(); - boolean found = false; - for (AnnotationInclusion annotationInclusion : annotationInclusions) { - if (annotationInclusion == toFind) { - found = true; - break; - } - } - assertTrue(found); - } -} diff --git a/src/test/java/com/fasterxml/classmate/AnnotationsTest.java b/src/test/java/com/fasterxml/classmate/AnnotationsTest.java deleted file mode 100644 index 096bed3..0000000 --- a/src/test/java/com/fasterxml/classmate/AnnotationsTest.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.fasterxml.classmate; - -import org.junit.Test; - -import java.lang.annotation.Annotation; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.reflect.Method; - -import static junit.framework.Assert.*; -import static org.junit.Assert.assertEquals; - -@SuppressWarnings("deprecation") -public class AnnotationsTest { - - @Retention(RetentionPolicy.RUNTIME) - private static @interface Marker { } - - @Test @Marker - public void addAsDefault() throws NoSuchMethodException { - Annotations annotations = new Annotations(); - Method thisMethod = AnnotationsTest.class.getDeclaredMethod("addAsDefault"); - - assertNull(annotations.get(Test.class)); - assertNull(annotations.get(Marker.class)); - - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - annotations.addAsDefault(testAnnotation); - - Annotation markerAnnotation = thisMethod.getAnnotation(Marker.class); - annotations.addAsDefault(markerAnnotation); - - assertNotNull(annotations.get(Test.class)); - assertNotNull(annotations.get(Marker.class)); - - assertEquals(2, annotations.size()); - assertEquals(2, annotations.asList().size()); - assertEquals(2, annotations.asArray().length); - } - - @Test - public void size() throws NoSuchMethodException { - Annotations annotations = new Annotations(); - Method thisMethod = AnnotationsTest.class.getDeclaredMethod("addAsDefault"); - - assertEquals(0, annotations.size()); - - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - annotations.addAsDefault(testAnnotation); - - assertEquals(1, annotations.size()); - - Annotation markerAnnotation = thisMethod.getAnnotation(Marker.class); - annotations.addAsDefault(markerAnnotation); - - assertEquals(2, annotations.size()); - } - - @Test - public void annotationsToSize() throws NoSuchMethodException { - Annotations annotations = new Annotations(); - Method thisMethod = AnnotationsTest.class.getDeclaredMethod("addAsDefault"); - - assertEquals("[null]", annotations.toString()); - - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - annotations.addAsDefault(testAnnotation); - - // order is unspecified as the internal representation is a HashMap; just assert the constituent parts are present - String asString = annotations.toString(); - assertTrue(asString.contains("{interface org.junit.Test=@org.junit.Test(")); - assertTrue(asString.contains("timeout=0")); - - // 15-Nov-2016, tatu: Java 9 changes description slightly, need to modify - assertTrue(asString.contains("expected=class org.junit.Test$None") // until Java 8 - || asString.contains("expected=org.junit.Test$None")); - - Annotation markerAnnotation = thisMethod.getAnnotation(Marker.class); - annotations.addAsDefault(markerAnnotation); - - asString = annotations.toString(); - assertTrue(asString.contains("interface com.fasterxml.classmate.AnnotationsTest$Marker=@com.fasterxml.classmate.AnnotationsTest$Marker()")); - assertTrue(asString.contains("interface org.junit.Test=@org.junit.Test")); - assertTrue(asString.contains("timeout=0")); - // 15-Nov-2016, tatu: Java 9 changes description slightly, need to modify - assertTrue(asString.contains("expected=class org.junit.Test$None") - || asString.contains("expected=org.junit.Test$None")); - } -} diff --git a/src/test/java/com/fasterxml/classmate/BaseTest.java b/src/test/java/com/fasterxml/classmate/BaseTest.java deleted file mode 100644 index 6b03062..0000000 --- a/src/test/java/com/fasterxml/classmate/BaseTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import com.fasterxml.classmate.members.RawMember; -import com.fasterxml.classmate.members.ResolvedMember; - -import junit.framework.TestCase; - -public abstract class BaseTest extends TestCase -{ - protected void verifyException(Throwable e, String... matches) - { - String msg = e.getMessage(); - String lmsg = (msg == null) ? "" : msg.toLowerCase(); - for (String match : matches) { - String lmatch = match.toLowerCase(); - if (lmsg.indexOf(lmatch) >= 0) { - return; - } - } - fail("Expected an exception with one of substrings ("+Arrays.asList(matches)+"): got one with message \""+msg+"\""); - } - - protected void verify(Throwable throwable, String format, Object ... args) { - verifyException(throwable, String.format(format, args)); - } - - protected void matchMembers(ResolvedMember[] members, String[] names0) - { - List names = Arrays.asList(names0); - for (ResolvedMember m : members) { - String name = m.getName(); - if (!names.contains(name)) { - fail("Expected names to be from "+names+": got '"+name+"'"); - } - } - } - - protected void matchRawMembers(Iterable members, String[] names0) - { - Set names = new HashSet(Arrays.asList(names0)); - for (RawMember m : members) { - String name = m.getName(); - if (!names.contains(name)) { - fail("Expected names to be from "+names+": got '"+name+"'"); - } - } - } -} diff --git a/src/test/java/com/fasterxml/classmate/OddJDKTypesTest.java b/src/test/java/com/fasterxml/classmate/OddJDKTypesTest.java deleted file mode 100644 index 66fa45f..0000000 --- a/src/test/java/com/fasterxml/classmate/OddJDKTypesTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.*; - -public class OddJDKTypesTest extends BaseTest -{ - // Simple test, based on issues Jackson's type resolver had with inner - // classes of JDK (Hash)Map - public void testJDKMaps() - { - TypeResolver resolver = new TypeResolver(); - Map map = new HashMap(); - map.put("foo", "bar"); - - // map itself is trivial - ResolvedType type = resolver.resolve(map.getClass()); - assertEquals(HashMap.class, type.getErasedType()); - - // but how about it's entry, key, value sets? - type = resolver.resolve(map.entrySet().getClass()); - assertNotNull(type.getErasedType()); - assertTrue(type.isInstanceOf(Set.class)); - - type = resolver.resolve(map.keySet().getClass()); - assertNotNull(type.getErasedType()); - assertTrue(type.isInstanceOf(Set.class)); - - type = resolver.resolve(map.values().getClass()); - assertNotNull(type.getErasedType()); - assertTrue(type.isInstanceOf(Collection.class)); - } -} diff --git a/src/test/java/com/fasterxml/classmate/ResolvedTypeTest.java b/src/test/java/com/fasterxml/classmate/ResolvedTypeTest.java deleted file mode 100644 index 07666bc..0000000 --- a/src/test/java/com/fasterxml/classmate/ResolvedTypeTest.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.nio.CharBuffer; -import java.util.List; - -import org.junit.Test; - -import com.fasterxml.classmate.types.ResolvedArrayType; -import com.fasterxml.classmate.types.ResolvedInterfaceType; -import com.fasterxml.classmate.types.ResolvedObjectType; - -public class ResolvedTypeTest extends BaseTest -{ - // For [Issue#16] - - static class Foo16 extends Bar16 { } - - static class Bar16 extends Zen16 { } - - static class Zen16 { } - - @Test - public void testCanCreateSubtype() { - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - assertTrue(stringType.canCreateSubtype(String.class)); - assertFalse(stringType.canCreateSubtype(CharBuffer.class)); - - ResolvedObjectType objectType = ResolvedObjectType.create(Object.class, null, null, null); - assertTrue(objectType.canCreateSubtype(Object.class)); - assertTrue(objectType.canCreateSubtype(String.class)); - assertTrue(objectType.canCreateSubtype(CharBuffer.class)); - - ResolvedArrayType arrayType = new ResolvedArrayType(String[].class, null, stringType); - assertFalse(arrayType.canCreateSubtype(String[].class)); - assertFalse(arrayType.canCreateSubtype(CharBuffer[].class)); - assertFalse(arrayType.canCreateSubtype(String.class)); - - } - - @Test - public void testtypeParametersFor() { - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - assertNull(stringType.typeParametersFor(CharBuffer.class)); - } - - @Test - public void testFindSupertype() { - ResolvedInterfaceType comparableType = new ResolvedInterfaceType(Comparable.class, TypeBindings.create(String.class, ResolvedType.NO_TYPES), null); - ResolvedObjectType stringType = new ResolvedObjectType(String.class, null, (ResolvedType) null, new ResolvedType[] { comparableType }); - assertNull(stringType.findSupertype(CharBuffer.class)); - - assertNull(stringType.findSupertype(Serializable.class)); - - } - - @Test - public void testIsConcrete() { - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - assertTrue(stringType.isConcrete()); - ResolvedObjectType charBufferType = ResolvedObjectType.create(CharBuffer.class, null, null, null); - assertFalse(charBufferType.isConcrete()); - } - - @Test - public void testAccessors() { - // the default accessor implementation is to return an empty-list; check for a new subtype - ResolvedType type = new ResolvedType(String.class, null) { - @Override public boolean canCreateSubtypes() { - return false; - } - @Override public ResolvedType getParentClass() { - return null; - } - @Override public ResolvedType getSelfReferencedType() { - return null; - } - @Override public ResolvedType getArrayElementType() { - return null; - } - @Override public List getImplementedInterfaces() { - return null; - } - @Override public boolean isInterface() { - return false; - } - @Override public boolean isAbstract() { - return false; - } - @Override public boolean isArray() { - return false; - } - @Override public boolean isPrimitive() { - return false; - } - @Override public StringBuilder appendBriefDescription(StringBuilder sb) { - return null; - } - @Override public StringBuilder appendFullDescription(StringBuilder sb) { - return null; - } - @Override public StringBuilder appendSignature(StringBuilder sb) { - return null; - } - @Override public StringBuilder appendErasedSignature(StringBuilder sb) { - return null; - } - }; - assertEquals(0, type.getConstructors().size()); - assertEquals(0, type.getMemberFields().size()); - assertEquals(0, type.getMemberMethods().size()); - assertEquals(0, type.getStaticMethods().size()); - assertEquals(0, type.getStaticFields().size()); - } - - // For [Issue#16] - @Test - public void testIssue16() - { - TypeResolver resolver = new TypeResolver(); - ResolvedType type = resolver.resolve(Bar16.class); - assertNotNull(type); - - // We'll have the "default" constructor so - assertEquals(1, type.getConstructors().size()); - assertEquals(0, type.getMemberFields().size()); - assertEquals(0, type.getMemberMethods().size()); - assertEquals(0, type.getStaticMethods().size()); - assertEquals(0, type.getStaticFields().size()); - - assertEquals(Bar16.class, type.getErasedType()); - ResolvedType parent = type.getParentClass(); - assertNotNull(parent); - assertEquals(Zen16.class, parent.getErasedType()); - - List params = parent.getTypeParameters(); - assertNotNull(params); - assertEquals(2, params.size()); - - assertEquals(Bar16.class, params.get(0).getErasedType()); - assertEquals(Foo16.class, params.get(1).getErasedType()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/ResolvedTypeWithMembersTest.java b/src/test/java/com/fasterxml/classmate/ResolvedTypeWithMembersTest.java deleted file mode 100644 index 8fb5b96..0000000 --- a/src/test/java/com/fasterxml/classmate/ResolvedTypeWithMembersTest.java +++ /dev/null @@ -1,416 +0,0 @@ -package com.fasterxml.classmate; - -import com.fasterxml.classmate.members.*; - -import org.junit.Test; - -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.*; - -import static junit.framework.Assert.*; - -/** - * User: blangel - */ -@SuppressWarnings("deprecation") -public class ResolvedTypeWithMembersTest { - - @Retention(RetentionPolicy.RUNTIME) - static @interface Marker { } - - @Retention(RetentionPolicy.RUNTIME) - static @interface MarkerB { } - - @Retention(RetentionPolicy.RUNTIME) - @Inherited - static @interface MarkerC { } - - @SuppressWarnings("unused") - static class MixinCandidate { - private static void staticOverride() { } - private String shadowed; - private MixinCandidate() { } - protected String getShadowed() { return shadowed; } - } - - static class MixinA { - @Marker - private static void staticOverride() { } - - @Marker - private String shadowed; - - @Marker - MixinA() { } - - @Marker - protected String getShadowed() { return shadowed; } - - @MarkerC - protected String inherited() { return ""; } - } - - static class MixinB { - @MarkerB - protected String getShadowed() { return null; } - } - - static class MixinC { - @MarkerB - protected String getShadowed() { return null; } - } - - static class MixinD { - - @Marker - private String field; - - @Marker - private MixinD() { } - - @MarkerB - protected String getShadowed() { return null; } - } - - static class MixinASubclass extends MixinA { - - @Override protected String getShadowed() { return super.getShadowed(); } - - @Override protected String inherited() { return super.inherited(); } - } - - @Test - public void size() { - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(null, null, null, new HierarchicType[0], null, null, null); - assertEquals(0, members.size()); - - members = new ResolvedTypeWithMembers(null, null, null, new HierarchicType[] { new HierarchicType(null, true, 0) }, null, null, null); - assertEquals(1, members.size()); - } - - @Test - public void mainTypeAndOverrides() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType string = typeResolver.resolve(String.class); - ResolvedType comparator = typeResolver.resolve(Comparator.class); - ResolvedType comparable = typeResolver.resolve(Comparable.class); - // test such that priority of main-type means all types are returned - HierarchicType stringHierarchicType = new HierarchicType(string, true, 3); - HierarchicType comparatorHierarchicType = new HierarchicType(comparator, true, 0); - HierarchicType comparableHierarchicType = new HierarchicType(comparable, true, 1); - HierarchicType[] types = new HierarchicType[] { comparatorHierarchicType, comparableHierarchicType }; - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(null, null, stringHierarchicType, types, null, null, null); - - List mainTypeAndOverrides = members.mainTypeAndOverrides(); - assertEquals(2, mainTypeAndOverrides.size()); - assertTrue(mainTypeAndOverrides.contains(comparatorHierarchicType)); - assertTrue(mainTypeAndOverrides.contains(comparableHierarchicType)); - - // test subset - stringHierarchicType = new HierarchicType(string, true, 0); - members = new ResolvedTypeWithMembers(null, null, stringHierarchicType, types, null, null, null); - mainTypeAndOverrides = members.mainTypeAndOverrides(); - assertEquals(1, mainTypeAndOverrides.size()); - assertTrue(mainTypeAndOverrides.contains(comparatorHierarchicType)); - } - - @Test - public void resolveConstructors() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType string = typeResolver.resolve(String.class); - HierarchicType stringHierarchicType = new HierarchicType(string, true, 0); - // test all constructors filtered out - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, stringHierarchicType, new HierarchicType[0], new Filter() { - @Override public boolean include(RawConstructor element) { - return false; - } - }, null, null); - assertEquals(0, members.resolveConstructors().length); - - // test, adding annotation from constructor on class but without an annotation-handler which - // allows for mix-ins (i.e., AnnotationInclusion.DONT_INCLUDE) - ResolvedType mixinCandidateResolved = typeResolver.resolve(MixinCandidate.class); - ResolvedType mixinAResolved = typeResolver.resolve(MixinA.class); - HierarchicType mixinCandidateHierarchicType = new HierarchicType(mixinCandidateResolved, false, 1); - HierarchicType mixinAHierarchicType = new HierarchicType(mixinAResolved, true, 0); - - members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - ResolvedConstructor[] resolvedConstructors = members.resolveConstructors(); - assertEquals(1, resolvedConstructors.length); - ResolvedConstructor resolvedConstructor = resolvedConstructors[0]; - assertNull(resolvedConstructor.get(Marker.class)); - - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - resolvedConstructors = members.resolveConstructors(); - assertEquals(1, resolvedConstructors.length); - resolvedConstructor = resolvedConstructors[0]; - assertNotNull(resolvedConstructor.get(Marker.class)); - } - - @Test - public void resolveMemberFields() { - // first, test by filtering all fields; including mix-ins - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinCandidateResolved = typeResolver.resolve(MixinCandidate.class); - ResolvedType mixinAResolved = typeResolver.resolve(MixinA.class); - HierarchicType mixinCandidateHierarchicType = new HierarchicType(mixinCandidateResolved, false, 1); - HierarchicType mixinAHierarchicType = new HierarchicType(mixinAResolved, true, 0); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType }, null, new Filter() { - @Override public boolean include(RawField element) { - return false; - } - }, null); - ResolvedField[] resolvedFields = members.resolveMemberFields(); - assertEquals(0, resolvedFields.length); - - // test, adding annotation from shadowed field on super-class but without an annotation-handler which - // allows for mix-ins (i.e., AnnotationInclusion.DONT_INCLUDE) - members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - resolvedFields = members.resolveMemberFields(); - assertEquals(1, resolvedFields.length); - ResolvedField resolvedField = resolvedFields[0]; - assertNull(resolvedField.get(Marker.class)); - - // test, changing annotation-handler to allow for mix-in - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - resolvedFields = members.resolveMemberFields(); - assertEquals(1, resolvedFields.length); - resolvedField = resolvedFields[0]; - assertNotNull(resolvedField.get(Marker.class)); - } - - @Test - public void resolveStaticMethods() { - // first, test by filtering all fields; including mix-ins - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinCandidateResolved = typeResolver.resolve(MixinCandidate.class); - ResolvedType mixinAResolved = typeResolver.resolve(MixinA.class); - HierarchicType mixinCandidateHierarchicType = new HierarchicType(mixinCandidateResolved, false, 1); - HierarchicType mixinAHierarchicType = new HierarchicType(mixinAResolved, true, 0); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType }, null, null, new Filter() { - @Override public boolean include(RawMethod element) { - return false; - } - }); - ResolvedMethod[] resolvedMethods = members.resolveStaticMethods(); - assertEquals(0, resolvedMethods.length); - - // test, adding annotation from method on class but without an annotation-handler which - // allows for mix-ins (i.e., AnnotationInclusion.DONT_INCLUDE) - members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - resolvedMethods = members.resolveStaticMethods(); - assertEquals(1, resolvedMethods.length); - ResolvedMethod resolvedMethod = resolvedMethods[0]; - assertNull(resolvedMethod.get(Marker.class)); - - // test, changing annotation-handler to allow for mix-in - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType, mixinCandidateHierarchicType }, null, null, null); - resolvedMethods = members.resolveStaticMethods(); - assertEquals(1, resolvedMethods.length); - resolvedMethod = resolvedMethods[0]; - assertNotNull(resolvedMethod.get(Marker.class)); - } - - @Test - public void resolveMemberMethods() { - // first, test by filtering all fields; including mix-ins - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinCandidateResolved = typeResolver.resolve(MixinCandidate.class); - ResolvedType mixinAResolved = typeResolver.resolve(MixinA.class); - HierarchicType mixinCandidateHierarchicType = new HierarchicType(mixinCandidateResolved, false, 1); - HierarchicType mixinAHierarchicType = new HierarchicType(mixinAResolved, true, 0); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinAHierarchicType }, null, null, new Filter() { - @Override public boolean include(RawMethod element) { - return false; - } - }); - ResolvedMethod[] resolvedMethods = members.resolveMemberMethods(); - assertEquals(0, resolvedMethods.length); - - // test, adding annotation from class but without an annotation-handler which - // allows for mix-ins (i.e., AnnotationInclusion.DONT_INCLUDE) - members = new ResolvedTypeWithMembers(typeResolver, null, mixinCandidateHierarchicType, - new HierarchicType[] { mixinCandidateHierarchicType, mixinAHierarchicType }, null, null, null); - resolvedMethods = members.resolveMemberMethods(); - assertEquals(1, resolvedMethods.length); - ResolvedMethod resolvedMethod = resolvedMethods[0]; - assertNull(resolvedMethod.get(Marker.class)); - assertNull(resolvedMethod.get(MarkerB.class)); - - // test, changing annotation-handler to allow for mix-in only if @Inherited is included on the annotation definition - ResolvedType mixinASubclassResolved = typeResolver.resolve(MixinASubclass.class); - HierarchicType mixinASubclassHierarchicType = new HierarchicType(mixinASubclassResolved, false, 1); - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED), mixinASubclassHierarchicType, - new HierarchicType[] { mixinASubclassHierarchicType, mixinAHierarchicType }, null, null, null); - resolvedMethods = members.resolveMemberMethods(); - assertEquals(2, resolvedMethods.length); - Map mapped = new HashMap(2, 1.0f); - mapped.put(resolvedMethods[0].getName(), resolvedMethods[0]); - mapped.put(resolvedMethods[1].getName(), resolvedMethods[1]); - resolvedMethod = mapped.get("getShadowed"); - // Marker annotation is on super not subclass and Marker is not marked Inherited - assertNull(resolvedMethod.get(Marker.class)); - resolvedMethod = mapped.get("inherited"); - // MarkerC annotation is on super not subclass but MarkerC is marked Inherited - assertNotNull(resolvedMethod.get(MarkerC.class)); - - // test, changing annotation-handler to allow for mix-in - ResolvedType mixinBResolved = typeResolver.resolve(MixinB.class); - HierarchicType mixinBHierarchicType = new HierarchicType(mixinBResolved, true, 0); - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinCandidateHierarchicType, - new HierarchicType[] { mixinBHierarchicType, mixinCandidateHierarchicType, mixinAHierarchicType }, null, null, null); - resolvedMethods = members.resolveMemberMethods(); - assertEquals(1, resolvedMethods.length); - resolvedMethod = resolvedMethods[0]; - assertNotNull(resolvedMethod.get(Marker.class)); - assertNotNull(resolvedMethod.get(MarkerB.class)); - - // test, adding non-mixin-only into the hierarchy-type list - ResolvedType mixinCResolved = typeResolver.resolve(MixinC.class); - HierarchicType mixinCHierarchicType = new HierarchicType(mixinCResolved, false, 0); - ResolvedType mixinDResolved = typeResolver.resolve(MixinD.class); - HierarchicType mixinDHierarchicType = new HierarchicType(mixinDResolved, true, 0); - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinCandidateHierarchicType, - new HierarchicType[] { mixinBHierarchicType, mixinDHierarchicType, mixinCandidateHierarchicType, mixinAHierarchicType, mixinCHierarchicType }, null, null, null); - resolvedMethods = members.resolveMemberMethods(); - assertEquals(1, resolvedMethods.length); - resolvedMethod = resolvedMethods[0]; - assertNotNull(resolvedMethod.get(Marker.class)); - assertNotNull(resolvedMethod.get(MarkerB.class)); - - } - - @Test - public void resolveConstructor() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { - // test where annotation is 'masked' via the annotation-config handler - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinDResolved = typeResolver.resolve(MixinD.class); - HierarchicType mixinDHierarchicType = new HierarchicType(mixinDResolved, false, 0); - RawConstructor rawConstructor = new RawConstructor(mixinDResolved, MixinD.class.getDeclaredConstructor()); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - ResolvedType resolvedTypeWithMembersResolvedType = typeResolver.resolve(ResolvedTypeWithMembers.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "resolveConstructor".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolved = memberResolver.resolve(resolvedTypeWithMembersResolvedType, null, null); - ResolvedMethod resolveConstructorResolvedMethod = resolved.getMemberMethods()[0]; - Method resolveConstructorMethod = resolveConstructorResolvedMethod.getRawMember(); - resolveConstructorMethod.setAccessible(true); - - ResolvedConstructor resolvedConstructor = (ResolvedConstructor) resolveConstructorMethod.invoke(members, rawConstructor); - assertNull(resolvedConstructor.get(Marker.class)); - // do again, now that annotation-handler's cache is primed. - resolvedConstructor = (ResolvedConstructor) resolveConstructorMethod.invoke(members, rawConstructor); - assertNull(resolvedConstructor.get(Marker.class)); - - // test with annotation-handler which allows for annotations - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - resolvedConstructor = (ResolvedConstructor) resolveConstructorMethod.invoke(members, rawConstructor); - assertNotNull(resolvedConstructor.get(Marker.class)); - // do again, now that annotation-handler's cache is primed. - resolvedConstructor = (ResolvedConstructor) resolveConstructorMethod.invoke(members, rawConstructor); - assertNotNull(resolvedConstructor.get(Marker.class)); - } - - @Test - public void resolveField() throws NoSuchMethodException, NoSuchFieldException, IllegalAccessException, - InvocationTargetException { - // test where annotation is 'masked' via the annotation-config handler - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinDResolved = typeResolver.resolve(MixinD.class); - HierarchicType mixinDHierarchicType = new HierarchicType(mixinDResolved, false, 0); - RawField rawField = new RawField(mixinDResolved, MixinD.class.getDeclaredField("field")); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - ResolvedType resolvedTypeWithMembersResolvedType = typeResolver.resolve(ResolvedTypeWithMembers.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "resolveField".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolved = memberResolver.resolve(resolvedTypeWithMembersResolvedType, null, null); - ResolvedMethod resolveFieldResolvedMethod = resolved.getMemberMethods()[0]; - Method resolveFieldMethod = resolveFieldResolvedMethod.getRawMember(); - resolveFieldMethod.setAccessible(true); - - ResolvedField resolvedField = (ResolvedField) resolveFieldMethod.invoke(members, rawField); - assertNull(resolvedField.get(Marker.class)); - // do it again now that the annotation-handler's cache has been primed - resolvedField = (ResolvedField) resolveFieldMethod.invoke(members, rawField); - assertNull(resolvedField.get(Marker.class)); - - // test with annotation-handler which allows for annotations - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - resolvedField = (ResolvedField) resolveFieldMethod.invoke(members, rawField); - assertNotNull(resolvedField.get(Marker.class)); - // do it again now that the annotation-handler's cache has been primed - resolvedField = (ResolvedField) resolveFieldMethod.invoke(members, rawField); - assertNotNull(resolvedField.get(Marker.class)); - } - - @Test - public void resolveMethod() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { - // test where annotation is 'masked' via the annotation-config handler - TypeResolver typeResolver = new TypeResolver(); - ResolvedType mixinDResolved = typeResolver.resolve(MixinD.class); - HierarchicType mixinDHierarchicType = new HierarchicType(mixinDResolved, false, 0); - RawMethod rawMethod = new RawMethod(mixinDResolved, MixinD.class.getDeclaredMethod("getShadowed")); - ResolvedTypeWithMembers members = new ResolvedTypeWithMembers(typeResolver, null, mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - ResolvedType resolvedTypeWithMembersResolvedType = typeResolver.resolve(ResolvedTypeWithMembers.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "resolveMethod".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolved = memberResolver.resolve(resolvedTypeWithMembersResolvedType, null, null); - ResolvedMethod resolveMethodResolvedMethod = resolved.getMemberMethods()[0]; - Method resolveMethodMethod = resolveMethodResolvedMethod.getRawMember(); - resolveMethodMethod.setAccessible(true); - - ResolvedMethod resolvedMethod = (ResolvedMethod) resolveMethodMethod.invoke(members, rawMethod); - assertNull(resolvedMethod.get(MarkerB.class)); - // do it again now that the annotation-handler's cache has been primed - resolvedMethod = (ResolvedMethod) resolveMethodMethod.invoke(members, rawMethod); - assertNull(resolvedMethod.get(MarkerB.class)); - - // test with annotation-handler which allows for annotations - members = new ResolvedTypeWithMembers(typeResolver, - new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT), mixinDHierarchicType, - new HierarchicType[] { mixinDHierarchicType }, null, null, null); - resolvedMethod = (ResolvedMethod) resolveMethodMethod.invoke(members, rawMethod); - assertNotNull(resolvedMethod.get(MarkerB.class)); - // do it again now that the annotation-handler's cache has been primed - resolvedMethod = (ResolvedMethod) resolveMethodMethod.invoke(members, rawMethod); - assertNotNull(resolvedMethod.get(MarkerB.class)); - } -} diff --git a/src/test/java/com/fasterxml/classmate/StdConfigurationTest.java b/src/test/java/com/fasterxml/classmate/StdConfigurationTest.java deleted file mode 100644 index 62323cd..0000000 --- a/src/test/java/com/fasterxml/classmate/StdConfigurationTest.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.fasterxml.classmate; - -import org.junit.Test; - -import static junit.framework.Assert.assertNull; -import static junit.framework.Assert.assertSame; - -@SuppressWarnings("deprecation") -public class StdConfigurationTest { - - @Test - public void getInclusionForClass() { - AnnotationConfiguration.StdConfiguration config = new AnnotationConfiguration.StdConfiguration(null); - assertNull(config.getInclusionForClass(Test.class)); - - config = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.DONT_INCLUDE); - AnnotationInclusion result = config.getInclusionForClass(Test.class); - assertSame(AnnotationInclusion.DONT_INCLUDE, result); - config.setInclusion(Test.class, AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - result = config.getInclusionForClass(Test.class); - assertSame(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT, result); - } - - @Test - public void getInclusionForConstructor() { - AnnotationConfiguration.StdConfiguration config = new AnnotationConfiguration.StdConfiguration(null); - assertNull(config.getInclusionForConstructor(Test.class)); - - config = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.DONT_INCLUDE); - AnnotationInclusion result = config.getInclusionForConstructor(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - config.setInclusion(Test.class, AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - result = config.getInclusionForConstructor(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - } - - @Test - public void getInclusionForField() { - AnnotationConfiguration.StdConfiguration config = new AnnotationConfiguration.StdConfiguration(null); - assertNull(config.getInclusionForField(Test.class)); - - config = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.DONT_INCLUDE); - AnnotationInclusion result = config.getInclusionForField(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - config.setInclusion(Test.class, AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - result = config.getInclusionForField(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - } - - @Test - public void getInclusionForMethod() { - AnnotationConfiguration.StdConfiguration config = new AnnotationConfiguration.StdConfiguration(null); - assertNull(config.getInclusionForMethod(Test.class)); - - config = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.DONT_INCLUDE); - AnnotationInclusion result = config.getInclusionForMethod(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - config.setInclusion(Test.class, AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - result = config.getInclusionForMethod(Test.class); - assertSame(config.getInclusionForClass(Test.class), result); - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestMemberGenericTypes.java b/src/test/java/com/fasterxml/classmate/TestMemberGenericTypes.java deleted file mode 100644 index 90c8a23..0000000 --- a/src/test/java/com/fasterxml/classmate/TestMemberGenericTypes.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.fasterxml.classmate; - -import java.io.Serializable; -import java.util.List; - -import com.fasterxml.classmate.members.*; - -/** - * Unit tests focused on ensuring that generic type information is - * properly resolved for members. - */ -public class TestMemberGenericTypes extends BaseTest -{ - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - static class Wrapper - { - protected T value; - - protected T memberMethod(T argument) { return null; } - - protected static ST static1(ST argument) { return null; } - - public Wrapper() { } - public Wrapper(T v) { value = v; } - } - - static class ListWrapper extends Wrapper> { } - - static class StringListWrapper extends ListWrapper { } - - // To test issue #3, local declarations - static class WithLocals { - public T memberValue() { return null; } - - public static void staticValue(T value) { } - } - - // Verify that we can handle issue from Jackson [JACKSON-743] - - public static abstract class BaseJackson743 { - public T inconsequential = null; - } - - public static abstract class BaseDataJackson743 { - public T dataObj; - } - - public static class Child743 extends BaseJackson743 { - public static class Data extends BaseDataJackson743> { } - } - - // And [JACKSON-887] - abstract static class BaseType887 { - public T value; - - public final static class SubType887 extends BaseType887 { } - } - - // Inspired by [jackson-databind#609] - static class EntityContainer { - RuleForm entity; - - @SuppressWarnings("unchecked") - public T getEntity() { return (T) entity; } - public void setEntity(T e) { entity = e; } - } - - static class RuleForm { - public int value; - - public RuleForm() { } - public RuleForm(int v) { value = v; } - } - - /* - /********************************************************************** - /* setup - /********************************************************************** - */ - - protected TypeResolver typeResolver; - - @Override - protected void setUp() - { - // Let's use a single instance for all tests, to increase chance of seeing failures - typeResolver = new TypeResolver(); - } - - /* - /********************************************************************** - /* Unit tests - /********************************************************************** - */ - - /** - * Test for verifying that basic generic type information is properly resolved - * through type hierarchy. - */ - public void testGenericWrappersForResolvedLeafType() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(StringListWrapper.class); - // for now, use default annotation settings (== ignore), overrides (none), filtering (none) - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - // First let's verify that number of members is as expected - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(0, statics.length); - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(1, members.length); - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - ResolvedConstructor[] ctors = bean.getConstructors(); - // actually, compiler will auto-generate default ctor, so: - assertEquals(1, ctors.length); - - // Type checking: - - // First, method: - ResolvedType expectedType = typeResolver.resolve(List.class, String.class); - ResolvedMethod m = members[0]; - assertEquals("memberMethod", m.getName()); - assertEquals(1, m.getArgumentCount()); - ResolvedType argType = m.getArgumentType(0); - assertEquals(expectedType, argType); - assertSame(Wrapper.class, m.getDeclaringType().getErasedType()); // declared in Wrapper - - ResolvedType returnType = m.getReturnType(); - assertEquals(expectedType, returnType); - - // Then field: - ResolvedField f = fields[0]; - assertEquals("value", f.getName()); - assertEquals(f.getType(), expectedType); - assertSame(Wrapper.class, f.getDeclaringType().getErasedType()); // declared in Wrapper - - ResolvedConstructor ctor = ctors[0]; - assertEquals(0, ctor.getArgumentCount()); - assertSame(StringListWrapper.class, ctor.getDeclaringType().getErasedType()); - } - - /** - * Tests handling of incomplete information for intermediate class. - */ - public void testGenericWrappersForIntermediate() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(ListWrapper.class); - // for now, use default annotation settings (== ignore), overrides (none), filtering (none) - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - // First let's verify that number of members is as expected - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(0, statics.length); - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(1, members.length); - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - ResolvedConstructor[] ctors = bean.getConstructors(); - // actually, compiler will auto-generate default ctor, so: - assertEquals(1, ctors.length); - - // Type checking: here we only know it's List, which we see as List - - // First, method: - ResolvedType expectedType = typeResolver.resolve(List.class, Object.class); - ResolvedMethod m = members[0]; - assertEquals("memberMethod", m.getName()); - assertEquals(1, m.getArgumentCount()); - ResolvedType argType = m.getArgumentType(0); - assertEquals(expectedType, argType); - assertSame(Wrapper.class, m.getDeclaringType().getErasedType()); // declared in Wrapper - - ResolvedType returnType = m.getReturnType(); - assertEquals(expectedType, returnType); - - // Then field: - ResolvedField f = fields[0]; - assertEquals("value", f.getName()); - assertEquals(f.getType(), expectedType); - assertSame(Wrapper.class, f.getDeclaringType().getErasedType()); // declared in Wrapper - - ResolvedConstructor ctor = ctors[0]; - assertEquals(0, ctor.getArgumentCount()); - assertSame(ListWrapper.class, ctor.getDeclaringType().getErasedType()); - } - - /** - * Tests handling of incomplete information for base type - */ - public void testGenericWrappersForBaseType() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(Wrapper.class); - // for now, use default annotation settings (== ignore), overrides (none), filtering (none) - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - // First let's verify that number of members is as expected - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(1, statics.length); - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(1, members.length); - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - ResolvedConstructor[] ctors = bean.getConstructors(); - assertEquals(2, ctors.length); - - // Type checking: here we only know it's ?, which we see as Object - - // First, method: - ResolvedType expectedType = typeResolver.resolve(Object.class); - ResolvedMethod m = members[0]; - assertEquals("memberMethod", m.getName()); - assertEquals(1, m.getArgumentCount()); - ResolvedType argType = m.getArgumentType(0); - assertEquals(expectedType, argType); - assertSame(Wrapper.class, m.getDeclaringType().getErasedType()); // declared in Wrapper - - ResolvedType returnType = m.getReturnType(); - assertEquals(expectedType, returnType); - - // Then field: - ResolvedField f = fields[0]; - assertEquals("value", f.getName()); - assertEquals(f.getType(), expectedType); - assertSame(Wrapper.class, f.getDeclaringType().getErasedType()); // declared in Wrapper - - // then constructors... - for (ResolvedConstructor ctor : ctors) { - assertSame(Wrapper.class, ctor.getDeclaringType().getErasedType()); - switch (ctor.getArgumentCount()) { - case 0: - break; - case 1: - assertEquals(ctor.getArgumentType(0), expectedType); - break; - default: - fail("Unexpected number of ctor args: "+ctor.getArgumentCount()); - } - } - } - - /** - * Unit test for Issue#3; ensuring that we can handle "local" declarations - */ - public void testLocalGenerics() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(WithLocals.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - // should have one static, one member method - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(1, statics.length); - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(1, members.length); - - assertEquals("memberValue", members[0].getName()); - ResolvedType returnType = members[0].getReturnType(); - assertEquals(Serializable.class, returnType.getErasedType()); - assertEquals(0, members[0].getArgumentCount()); - - assertEquals("staticValue", statics[0].getName()); - assertEquals(1, statics[0].getArgumentCount()); - ResolvedType arg = statics[0].getArgumentType(0); - assertEquals(Serializable.class, arg.getErasedType()); - } - - public void testAliasingWithLocalType() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(Child743.Data.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - // should have one static, one member method - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - ResolvedField f = fields[0]; - // expected: public List dataObj; - assertEquals("dataObj", f.getName()); - ResolvedType type = f.getType(); - assertEquals(List.class, type.getErasedType()); - assertEquals(String.class, type.getTypeParameters().get(0).getErasedType()); - } - - // [JACKSON-887] - public void testTypesViaSubtype() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(BaseType887.SubType887.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - ResolvedField f = fields[0]; - assertEquals("value", f.getName()); - ResolvedType type = f.getType(); - assertEquals(Number.class, type.getErasedType()); - } - - public void testLocalBoundedType() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(EntityContainer.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(2, members.length); - - ResolvedMethod getter, setter; - - if (members[0].getName().equals("getEntity")) { - getter = members[0]; - setter = members[1]; - assertEquals("setEntity", setter.getName()); - } else if (members[0].getName().equals("setEntity")) { - getter = members[1]; - setter = members[0]; - assertEquals("getEntity", getter.getName()); - } else { - fail("Unexpected method: "+members[0].getName()); - return; // never gets here - } - - // but more importantly, types - assertEquals(RuleForm.class, getter.getReturnType().getErasedType()); - assertEquals(1, setter.getArgumentCount()); - assertEquals(RuleForm.class, setter.getArgumentType(0).getErasedType()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestMemberResolver.java b/src/test/java/com/fasterxml/classmate/TestMemberResolver.java deleted file mode 100644 index 50c6442..0000000 --- a/src/test/java/com/fasterxml/classmate/TestMemberResolver.java +++ /dev/null @@ -1,394 +0,0 @@ -package com.fasterxml.classmate; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.*; - -import com.fasterxml.classmate.members.*; -import com.fasterxml.classmate.types.ResolvedObjectType; -import com.fasterxml.classmate.util.ClassKey; - -public class TestMemberResolver extends BaseTest -{ - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - static class BaseClass - { - protected int intField; - - protected static int staticIntField; - - public BaseClass(String arg) { } - - public BaseClass(String arg, boolean b) { } - - public static BaseClass factory1(String arg) { return null; } - - public void member1() { } - - protected void member2() { } - } - - static class SubClass extends BaseClass - { - public int intField2; - - protected String stringField; - - protected static int staticIntFieldSub; - - public SubClass() { super(""); } - - @Override public void member2() { } - } - - // Silly mix-in that does not really add anything... (no annotations) - static class DummyMixIn - { - public int x; - public static int y; - - public DummyMixIn() { } - - public void method(String arg) { } - public static void staticMethod(String arg) { } - } - - static class DummyMixIn2 extends DummyMixIn { } - - // simple class extending from Object for config tests (includeObject, filtering, etc) - @SuppressWarnings("unused") - static class SimpleClass - { - private String test; - - SimpleClass(String test) { - this.test = test; - } - SimpleClass() { } - - private String getTest() { return test; } - } - - /* - /********************************************************************** - /* setup - /********************************************************************** - */ - - protected TypeResolver typeResolver; - - @Override - protected void setUp() - { - // Let's use a single instance for all tests, to increase chance of seeing failures - typeResolver = new TypeResolver(); - } - - /* - /********************************************************************** - /* Unit tests, type hierarchy handling - /********************************************************************** - */ - - /** - * Test for most basic thing; type hierarchy resolution - */ - public void testSimpleHierarchy() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(SubClass.class); - // for now, use default annotation settings (== ignore), overrides (none), filtering (none) - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - assertNotNull(bean); - - // by default will NOT include Object.class, so should have just 2 types - List types = bean.allTypesAndOverrides(); - assertEquals(2, types.size()); - assertSame(SubClass.class, types.get(0).getErasedType()); - assertSame(BaseClass.class, types.get(1).getErasedType()); - } - - public void testSimpleHierarchyWithMixins() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(SubClass.class); - // for now, use default annotation settings (== ignore), but one explict override (mixin) - AnnotationOverrides overrides = AnnotationOverrides.builder() - .add(SubClass.class, DummyMixIn.class) - .build(); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, overrides); - assertNotNull(bean); - // with one mix-in/override, 3 classes - List types = bean.allTypesAndOverrides(); - assertEquals(3, types.size()); - assertSame(DummyMixIn.class, types.get(0).getErasedType()); - assertSame(SubClass.class, types.get(1).getErasedType()); - assertSame(BaseClass.class, types.get(2).getErasedType()); - - // or, 4, if we do one more level of mix-ins - overrides = AnnotationOverrides.builder() - .add(BaseClass.class, DummyMixIn2.class) - .build(); - bean = mr.resolve(mainType, null, overrides); - types = bean.allTypesAndOverrides(); - assertEquals(4, types.size()); - assertSame(SubClass.class, types.get(0).getErasedType()); - assertSame(DummyMixIn2.class, types.get(1).getErasedType()); - assertSame(DummyMixIn.class, types.get(2).getErasedType()); - assertSame(BaseClass.class, types.get(3).getErasedType()); - } - - /* - /********************************************************************** - /* Unit tests, basic aggregation of fields, methods and constructors - /********************************************************************** - */ - - /** - * Test for checking basic member detection for super type. - */ - public void testMembersForSupertype() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(BaseClass.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(1, statics.length); - - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(2, members.length); - - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(1, fields.length); - - ResolvedConstructor[] ctors = bean.getConstructors(); - assertEquals(2, ctors.length); - - ResolvedField[] staticFields = bean.getStaticFields(); - assertEquals(1, staticFields.length); - assertEquals("staticIntField", staticFields[0].getName()); - } - - /** - * Test for checking basic aggregation with two types (subtype that - * extends supertype) - */ - public void testAggregationForSubtype() - { - MemberResolver mr = new MemberResolver(typeResolver); - ResolvedType mainType = typeResolver.resolve(SubClass.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, null); - - verifySubtypeAggregate(bean); - } - - public void testAggregationForSubtypeAndDummyMixin() - { - MemberResolver mr = new MemberResolver(typeResolver); - // Add "dummy" override/mix-in, which has nothing relevant to add; ensure nothing is added: - AnnotationOverrides overrides = AnnotationOverrides.builder() - .add(SubClass.class, DummyMixIn.class) - .build(); - ResolvedType mainType = typeResolver.resolve(SubClass.class); - ResolvedTypeWithMembers bean = mr.resolve(mainType, null, overrides); - - verifySubtypeAggregate(bean); - } - - public void testIncludeObject() - { - ResolvedType simpleResolvedType = typeResolver.resolve(SimpleClass.class); - MemberResolver mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(false); - - ResolvedTypeWithMembers simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberFields().length); - - mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(true); - - simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(12, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberFields().length); - } - - public void testFilters() - { - ResolvedType simpleResolvedType = typeResolver.resolve(SimpleClass.class); - MemberResolver mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(true); - - ResolvedTypeWithMembers simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(12, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberFields().length); - assertEquals(2, simpleResolvedTypeWithMembers.getConstructors().length); - - // now filter methods - mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(true); - mr.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "notify".equals(element.getName()); - } - }); - - simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberFields().length); - assertEquals(2, simpleResolvedTypeWithMembers.getConstructors().length); - - // now filter fields - mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(true); - mr.setFieldFilter(new Filter() { - @Override public boolean include(RawField element) { - return "DNE".equals(element.getName()); - } - }); - - simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(12, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(0, simpleResolvedTypeWithMembers.getMemberFields().length); - assertEquals(2, simpleResolvedTypeWithMembers.getConstructors().length); - - // now filter constructors - mr = new MemberResolver(typeResolver); - mr.setIncludeLangObject(true); - mr.setConstructorFilter(new Filter() { - @Override public boolean include(RawConstructor element) { - return element.getRawMember().getParameterTypes().length > 0; - } - }); - - simpleResolvedTypeWithMembers = mr.resolve(simpleResolvedType, null, null); - assertEquals(12, simpleResolvedTypeWithMembers.getMemberMethods().length); - assertEquals(1, simpleResolvedTypeWithMembers.getMemberFields().length); - assertEquals(1, simpleResolvedTypeWithMembers.getConstructors().length); - } - - // 10-Oct-2023, tatu: Why, what, how? I don't think internals should be tested - // like this. And since this breaks with JDK 17 (probably due to additional - // interfaces in JDK types), will comment out. -/* - public void testAddOverridesFromInterfaces() throws IllegalAccessException, InvocationTargetException - { - ResolvedType resolvedType = typeResolver.resolve(MemberResolver.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "_addOverrides".equals(element.getName()) && element.getRawMember().getParameterTypes()[2].equals(Class.class); - } - }); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedMethod addOverridesResolvedMethod = resolvedTypeWithMembers.getMemberMethods()[0]; - Method addOverridesMethod = addOverridesResolvedMethod.getRawMember(); - addOverridesMethod.setAccessible(true); - - List typesWithOverrides = new ArrayList(); - Set seenTypes = new HashSet(); - addOverridesMethod.invoke(memberResolver, typesWithOverrides, seenTypes, String.class); - assertEquals(4, seenTypes.size()); - assertEquals(4, typesWithOverrides.size()); - - memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "_addOverrides".equals(element.getName()) && element.getRawMember().getParameterTypes()[2].equals(ResolvedType.class); - } - }); - resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - addOverridesResolvedMethod = resolvedTypeWithMembers.getMemberMethods()[0]; - addOverridesMethod = addOverridesResolvedMethod.getRawMember(); - addOverridesMethod.setAccessible(true); - - typesWithOverrides = new ArrayList(); - seenTypes = new HashSet(); - // first test null case. - addOverridesMethod.invoke(memberResolver, typesWithOverrides, seenTypes, null); - assertEquals(0, seenTypes.size()); - assertEquals(0, typesWithOverrides.size()); - // now test case with interfaces - ResolvedType comparator = typeResolver.resolve(Comparator.class); - ResolvedObjectType stringType = new ResolvedObjectType(String.class, TypeBindings.emptyBindings(), - (ResolvedType) null, new ResolvedType[] { comparator }); - addOverridesMethod.invoke(memberResolver, typesWithOverrides, seenTypes, stringType); - assertEquals(2, seenTypes.size()); - assertEquals(2, typesWithOverrides.size()); - } - */ - - public void testGatherTypesWithInterfaces() throws Exception - { - ResolvedType resolvedType = typeResolver.resolve(MemberResolver.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "_gatherTypes".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedMethod gatherTypesResolvedMethod = resolvedTypeWithMembers.getMemberMethods()[0]; - Method gatherTypesMethod = gatherTypesResolvedMethod.getRawMember(); - gatherTypesMethod.setAccessible(true); - - // test that the value within the seenTypes cache short-circuits execution - ResolvedType currentType; - Set seenTypes = new HashSet(); - List types = new ArrayList(); - currentType = new ResolvedObjectType(String.class, TypeBindings.emptyBindings(), (ResolvedType) null, ResolvedType.NO_TYPES); - seenTypes.add(new ClassKey(String.class)); - - gatherTypesMethod.invoke(memberResolver, currentType, seenTypes, types); - assertEquals(1, seenTypes.size()); - assertEquals(0, types.size()); - - // now test that a type with interfaces has its interfaces gathered - ResolvedType comparator = typeResolver.resolve(Comparator.class); - currentType = new ResolvedObjectType(String.class, TypeBindings.emptyBindings(), (ResolvedType) null, new ResolvedType[] { comparator }); - seenTypes.clear(); - gatherTypesMethod.invoke(memberResolver, currentType, seenTypes, types); - assertEquals(2, seenTypes.size()); - assertEquals(2, types.size()); - } - - public void testJavaLangObject30() throws Exception - { - MemberResolver memberResolver = new MemberResolver(typeResolver); - - ResolvedType type = typeResolver.resolve(Object.class); - ResolvedTypeWithMembers members = memberResolver.resolve(type, null, null); - assertNotNull(members); - } - - /* - /********************************************************************** - /* Helper methods - /********************************************************************** - */ - - private void verifySubtypeAggregate(ResolvedTypeWithMembers bean) - { - ResolvedMethod[] statics = bean.getStaticMethods(); - assertEquals(0, statics.length); - - ResolvedMethod[] members = bean.getMemberMethods(); - assertEquals(2, members.length); - - // Subtype has 1 static, base 1; only one from sub-type should be included - ResolvedField[] staticFields = bean.getStaticFields(); - assertEquals(1, staticFields.length); - assertEquals("staticIntFieldSub", staticFields[0].getName()); - - ResolvedField[] fields = bean.getMemberFields(); - assertEquals(3, fields.length); - - ResolvedConstructor[] ctors = bean.getConstructors(); - assertEquals(1, ctors.length); - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestParameterAnnotations.java b/src/test/java/com/fasterxml/classmate/TestParameterAnnotations.java deleted file mode 100644 index 2a22e80..0000000 --- a/src/test/java/com/fasterxml/classmate/TestParameterAnnotations.java +++ /dev/null @@ -1,172 +0,0 @@ -package com.fasterxml.classmate; - -import com.fasterxml.classmate.members.ResolvedConstructor; -import com.fasterxml.classmate.members.ResolvedMethod; -import org.junit.Before; -import org.junit.Test; - -import java.lang.annotation.*; -import java.lang.reflect.Constructor; -import java.lang.reflect.Method; - -import static org.junit.Assert.*; - -/** - * Tests that parameters annotations (on constructors and member methods) can be - * inherited and overridden. - */ -public class TestParameterAnnotations { - - TypeResolver types; - MemberResolver members; - AnnotationConfiguration annotations; - - @Before - public void setup() { - types = new TypeResolver(); - members = new MemberResolver(types); - annotations = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED); - } - - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.PARAMETER) - private static @interface Marker { } - - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.PARAMETER) - @Inherited - private static @interface MarkerInherited { } - - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.PARAMETER) - @Inherited - private static @interface MarkerOverridden { int value(); } - - static interface BaseInterface { - void something(@Marker @MarkerInherited @MarkerOverridden(123) String value); - } - - static interface ExtendedInterface extends BaseInterface { - @Override - void something(@MarkerOverridden(456) String value); - } - - static interface TargetInterface { - void something(@Marker String value); - } - - static interface MixIn { - void something(@MarkerOverridden(123) String value); - } - - static interface ExtendedMixIn extends MixIn { - @Override - void something(@MarkerInherited @MarkerOverridden(456) String value); - } - - static abstract class BaseImpl { - public String v; - public BaseImpl(@Marker @MarkerOverridden(789) String v) { - this.v = v; - } - } - - static class MixInClass { - public MixInClass(@MarkerInherited String v) { } - } - - static class Impl extends BaseImpl implements ExtendedInterface { - - public Impl(@MarkerOverridden(999) String v) { - super(v); - } - - @Override - public void something(final String value) { } - } - - @Test - public void testIncludesUninheritableAnnotationsDirectly() { - ResolvedTypeWithMembers type = members.resolve(types.resolve(BaseInterface.class), annotations, null); - ResolvedMethod[] methods = type.getMemberMethods(); - - // sanity test our method - checkMethods(methods, BaseInterface.class); - - ResolvedMethod m = methods[0]; - assertEquals("something", m.getName()); - assertNotNull(m.getParam(0, Marker.class)); - } - - @Test - public void testInheritsOnlyMarkedAnnotations() { - ResolvedTypeWithMembers type = members.resolve(types.resolve(ExtendedInterface.class), annotations, null); - ResolvedMethod[] methods = type.getMemberMethods(); - - // sanity test our method - checkMethods(methods, ExtendedInterface.class); - - // check that the correct annotations were detected - ResolvedMethod m = methods[0]; - assertNull(m.getParam(0, Marker.class)); - assertNotNull(m.getParam(0, MarkerInherited.class)); - assertNotNull(m.getParam(0, MarkerOverridden.class)); - assertEquals(456, m.getParam(0, MarkerOverridden.class).value()); - } - - @Test - public void testMixInAnnotations() { - ResolvedTypeWithMembers type = members.resolve(types.resolve(TargetInterface.class), annotations, AnnotationOverrides.builder().add(TargetInterface.class, ExtendedMixIn.class).build()); - ResolvedMethod[] methods = type.getMemberMethods(); - - // sanity test our method - checkMethods(methods, TargetInterface.class); - - // check that the mixed-in annotations are present - ResolvedMethod m = methods[0]; - assertNotNull(m.getParam(0, Marker.class)); - assertNotNull(m.getParam(0, MarkerInherited.class)); - assertNotNull(m.getParam(0, MarkerOverridden.class)); - assertEquals(456, m.getParam(0, MarkerOverridden.class).value()); - } - - @Test - public void testConstructorParameterAnnotations() { - ResolvedTypeWithMembers type = members.resolve(types.resolve(Impl.class), annotations, AnnotationOverrides.builder().add(Impl.class, MixInClass.class).build()); - ResolvedConstructor[] constructors = type.getConstructors(); - - // sanity test our constructor - checkConstructors(constructors, Impl.class); - - // check that the constructor parameter annotations are properly inherited/overridden - ResolvedConstructor c = constructors[0]; - assertNull(c.getParam(0, Marker.class)); - assertNotNull(c.getParam(0, MarkerInherited.class)); - assertNotNull(c.getParam(0, MarkerOverridden.class)); - assertEquals(999, c.getParam(0, MarkerOverridden.class).value()); - } - - private void checkMethods(ResolvedMethod[] methods, Class type) { - assertEquals(type.getMethods().length, methods.length); - for (ResolvedMethod method : methods) { - try { - Method raw = method.getRawMember(); - assertEquals(type.getMethod(method.getName(), raw.getParameterTypes()), raw); - } catch (NoSuchMethodException e) { - fail("No such method: " + method); - } - } - } - - private void checkConstructors(ResolvedConstructor[] constructors, Class type) { - assertEquals(type.getConstructors().length, constructors.length); - for (ResolvedConstructor constructor : constructors) { - try { - Constructor raw = constructor.getRawMember(); - assertEquals(type.getConstructor(raw.getParameterTypes()), raw); - } catch (NoSuchMethodException e) { - fail("No such constructor: " + constructor); - } - } - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestReadme.java b/src/test/java/com/fasterxml/classmate/TestReadme.java deleted file mode 100644 index 01a4df5..0000000 --- a/src/test/java/com/fasterxml/classmate/TestReadme.java +++ /dev/null @@ -1,245 +0,0 @@ -package com.fasterxml.classmate; - -import com.fasterxml.classmate.members.*; -import org.junit.Test; - -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.util.*; - -/** - * User: blangel - * Date: 4/26/12 - * Time: 1:49 PM - * - * Test the examples listed in ReadMe to ensure correctness. - */ -public class TestReadme - extends BaseTest -{ - - @Retention(RetentionPolicy.RUNTIME) - public static @interface Marker { } - - @Retention(RetentionPolicy.RUNTIME) - @Inherited - public static @interface MarkerA { } - - public static class SomeClass { - @Marker @MarkerA - public void someMethod() { } - } - public static class SomeSubclass extends SomeClass { - @Override - public void someMethod() { } - } - - public static class SomeOtherClass { - public void someMethod() { } - } - - @Test @SuppressWarnings("serial") - public void resolvingClasses() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType listType = typeResolver.resolve(List.class); - assertEquals("java.util.List extends java.util.Collection", listType.getFullDescription()); - - typeResolver = new TypeResolver(); - listType = typeResolver.resolve(List.class, String.class); - assertEquals("java.util.List extends java.util.Collection", listType.getFullDescription()); - - typeResolver = new TypeResolver(); - ResolvedType stringType = typeResolver.resolve(String.class); - listType = typeResolver.resolve(List.class, stringType); - assertEquals("java.util.List extends java.util.Collection", listType.getFullDescription()); - - typeResolver = new TypeResolver(); - listType = typeResolver.resolve(new GenericType>() {}); - assertEquals("java.util.List extends java.util.Collection", listType.getFullDescription()); - } - - @Test - public void resolvingAllMembers() - { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); - ResolvedMethod[] staticArrayListMethods = arrayListTypeWithMembers.getStaticMethods(); - /* 13-May-2013, tatu: Java 7 causing trouble here, adding 2 new static methods... - * Needs to be fixed. - */ - switch (staticArrayListMethods.length) { - case 0: // JDK 1.6 and prior, fine - break; - case 2: // JDK 1.7; must verify - matchMembers(staticArrayListMethods, new String[] { "hugeCapacity", "subListRangeCheck" }); - break; - default: // other - fail("Should find 0 or 2 static methods in ArrayList, but found "+staticArrayListMethods.length - +": "+Arrays.asList(staticArrayListMethods)); - } - ResolvedMethod[] arrayListMethods = arrayListTypeWithMembers.getMemberMethods(); - // either 34 (1.6) or 40 (1.7) - int count = arrayListMethods.length; - if (count != 34 && count != 40) { - fail("Expected either 34 (JDK 1.6 and prior) or 40 (JDK 1.7) methods in ArrayList: got "+count); - } - - ResolvedField[] arrayListFields = arrayListTypeWithMembers.getMemberFields(); - assertEquals(3, arrayListFields.length); - - ResolvedConstructor[] arrayListConstructors = arrayListTypeWithMembers.getConstructors(); - assertEquals(3, arrayListConstructors.length); - } - - @Test - public void resolvingParticularMembers() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType arrayListType = typeResolver.resolve(ArrayList.class, String.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "size".equals(element.getName()); - } - }); - ResolvedTypeWithMembers arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); - ResolvedMethod sizeMethod = arrayListTypeWithMembers.getMemberMethods()[0]; - assertNotNull(sizeMethod); - assertEquals("size", sizeMethod.getName()); - - memberResolver = new MemberResolver(typeResolver); - memberResolver.setFieldFilter(new Filter() { - @Override public boolean include(RawField element) { - return "size".equals(element.getName()); - } - }); - arrayListTypeWithMembers = memberResolver.resolve(arrayListType, null, null); - ResolvedField sizeField = arrayListTypeWithMembers.getMemberFields()[0]; - assertNotNull(sizeField); - assertEquals("size", sizeField.getName()); - } - - @Test - public void testSomeClassSomeMethod() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someType = typeResolver.resolve(SomeClass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - ResolvedTypeWithMembers someTypeWithMembers = memberResolver.resolve(someType, annConfig, null); - ResolvedMethod someMethod = someTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker != null - assertNotNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null - assertNotNull(markerA); - } - - @Test - public void testSomeSubclassSomeMethod() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someSubclassType = typeResolver.resolve(SomeSubclass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); - ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); - ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker == null - assertNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA == null - assertNull(markerA); - Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) - assertNull(override); - } - - @Test - public void testSomeSubclassSomeMethodWithInherited() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someSubclassType = typeResolver.resolve(SomeSubclass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED); - ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); - ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker == null - assertNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null - assertNotNull(markerA); - Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) - assertNull(override); - } - - @Test - public void testSomeSubclassSomeMethodWithAllInherited() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someSubclassType = typeResolver.resolve(SomeSubclass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT); - ResolvedTypeWithMembers someSubclassTypeWithMembers = memberResolver.resolve(someSubclassType, annConfig, null); - ResolvedMethod someMethod = someSubclassTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker != null - assertNotNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null - assertNotNull(markerA); - Override override = someMethod.get(Override.class); // override == null (RetentionPolicy = SOURCE) - assertNull(override); - } - - @Test - public void testSomeOtherClassSomeMethodWithoutMixins() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someOtherType = typeResolver.resolve(SomeOtherClass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT); - ResolvedTypeWithMembers someOtherTypeWithMembers = memberResolver.resolve(someOtherType, annConfig, null); - ResolvedMethod someMethod = someOtherTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker == null - assertNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA == null - assertNull(markerA); - } - - @Test - public void testSomeOtherClassSomeMethodWithMixins() { - TypeResolver typeResolver = new TypeResolver(); - ResolvedType someOtherType = typeResolver.resolve(SomeOtherClass.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "someMethod".equals(element.getName()); - } - }); - AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_AND_INHERIT); - AnnotationOverrides annOverrides = AnnotationOverrides.builder().add(SomeOtherClass.class, SomeClass.class).build(); - ResolvedTypeWithMembers someOtherTypeWithMembers = memberResolver.resolve(someOtherType, annConfig, annOverrides); - ResolvedMethod someMethod = someOtherTypeWithMembers.getMemberMethods()[0]; - Marker marker = someMethod.get(Marker.class); // marker != null - assertNotNull(marker); - MarkerA markerA = someMethod.get(MarkerA.class); // markerA != null - assertNotNull(markerA); - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestSelfRefMemberTypes.java b/src/test/java/com/fasterxml/classmate/TestSelfRefMemberTypes.java deleted file mode 100644 index 74bfcc4..0000000 --- a/src/test/java/com/fasterxml/classmate/TestSelfRefMemberTypes.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.Arrays; - -import com.fasterxml.classmate.members.ResolvedField; -import com.fasterxml.classmate.members.ResolvedMethod; - -/** - * Unit tests to check issue #4, problems with local generic self-referential - * generic types. - */ -public class TestSelfRefMemberTypes extends BaseTest -{ - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - static class MyComparable { - public > T foobar() { return null; } - } - - static class ComplexSelfType> { } - - static class ClassUsingComplexSelfType { - public > V complexMap(V input) { - return null; - } - } - - // From Jackson-databind, [Issue#543] - static abstract class Animal { } - - static class ContainerWithField { - public T animal; - - public ContainerWithField(T a) { animal = a; } - } - - static class ContainerWithTwoAnimals extends ContainerWithField - { - public V animal2; - - public ContainerWithTwoAnimals(U a1, V a2) { - super(a1); - animal2 = a2; - } - } - - /* - /********************************************************************** - /* setup - /********************************************************************** - */ - - protected TypeResolver typeResolver; - - @Override - protected void setUp() - { - // Let's use a single instance for all tests, to increase chance of seeing failures - typeResolver = new TypeResolver(); - } - - /* - /********************************************************************** - /* Unit tests - /********************************************************************** - */ - - public void testSelfReferencesSimple() - { - MemberResolver memberResolver = new MemberResolver(typeResolver); - ResolvedType type = typeResolver.resolve(MyComparable.class); - ResolvedMethod[] resolvedMethods = memberResolver.resolve(type, null, null).getMemberMethods(); - - assertEquals(1, resolvedMethods.length); - assertEquals(Comparable.class, resolvedMethods[0].getReturnType().getErasedType()); - } - - public void testSelfReferencesComplex() - { - MemberResolver memberResolver = new MemberResolver(typeResolver); - - ResolvedType t = typeResolver.resolve(ClassUsingComplexSelfType.class); - ResolvedMethod[] resolvedMethods = memberResolver.resolve(t, null, null).getMemberMethods(); - assertEquals(1, resolvedMethods.length); - ResolvedMethod m = resolvedMethods[0]; - assertEquals("complexMap", m.getName()); - - assertEquals(1, m.getArgumentCount()); - ResolvedType argType = m.getArgumentType(0); - - ResolvedType returnType = m.getReturnType(); - - // All right... hmmh. Actually, due to lack of bindings, they are just Objects - assertEquals(ComplexSelfType.class, argType.getErasedType()); - assertEquals(ComplexSelfType.class, returnType.getErasedType()); - } - - public void testSelfReferencesVaryingDimensions() - { - MemberResolver memberResolver = new MemberResolver(typeResolver); - - ResolvedType t = typeResolver.resolve(ContainerWithTwoAnimals.class); - ResolvedField[] fields = memberResolver.resolve(t, null, null).getMemberFields(); - assertEquals(2, fields.length); - Arrays.sort(fields); - - ResolvedField m = fields[0]; - assertEquals("animal", m.getName()); - assertEquals(Animal.class, m.getType().getErasedType()); - - m = fields[1]; - assertEquals("animal2", m.getName()); - assertEquals(Animal.class, m.getType().getErasedType()); - - // anything else worth asserting? - } -} - diff --git a/src/test/java/com/fasterxml/classmate/TestSubtypeResolution.java b/src/test/java/com/fasterxml/classmate/TestSubtypeResolution.java deleted file mode 100644 index 1c61e68..0000000 --- a/src/test/java/com/fasterxml/classmate/TestSubtypeResolution.java +++ /dev/null @@ -1,292 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.*; - -/** - * Unit tests to verify that {@link TypeResolver#resolveSubtype(ResolvedType, Class)} - * works as expected. - */ -@SuppressWarnings("serial") -public class TestSubtypeResolution extends BaseTest -{ - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - static class IntArrayList extends ArrayList { } - - static class StringIntMap extends HashMap { } - - interface StringKeyMap extends Map { } - - interface StringLongMap extends StringKeyMap { } - - static class Wrapper { - T value; - } - - static class ListWrapper extends Wrapper> { } - - abstract static class OuterType extends AbstractMap> - { - public abstract class Inner extends AbstractMap> { - } - } - - /* - /********************************************************************** - /* setup - /********************************************************************** - */ - - protected TypeResolver typeResolver; - - @Override - protected void setUp() - { - // Let's use a single instance for all tests, to increase chance of seeing failures - typeResolver = new TypeResolver(); - } - - /* - /********************************************************************** - /* Unit tests, success, simple - /********************************************************************** - */ - - /** - * Test to ensure a properly parameterized {@link List} can be be made - * more specific while still keeping parameterization. - */ - public void testMoreSpecificListType() - { - ResolvedType supertype = typeResolver.resolve(List.class, Integer.class); - // First verify original bindings are correct - List bindings = supertype.typeParametersFor(List.class); - assertEquals(1, bindings.size()); - assertSame(Integer.class, bindings.get(0).getErasedType()); - bindings = supertype.typeParametersFor(Collection.class); - assertEquals(1, bindings.size()); - assertSame(Integer.class, bindings.get(0).getErasedType()); - - ResolvedType subtype = typeResolver.resolveSubtype(supertype, ArrayList.class); - // and then with specialization too - bindings = subtype.typeParametersFor(List.class); - assertEquals(1, bindings.size()); - assertSame(Integer.class, bindings.get(0).getErasedType()); - bindings = supertype.typeParametersFor(Collection.class); - assertEquals(1, bindings.size()); - assertSame(Integer.class, bindings.get(0).getErasedType()); - } - - // Similar to above, but via Collection, not List - public void testMoreSpecificCollectionType() - { - final Class elemType = String.class; - - List bindings; - ResolvedType supertype = typeResolver.resolve(Collection.class, elemType); - bindings = supertype.typeParametersFor(Collection.class); - assertEquals(1, bindings.size()); - assertSame(elemType, bindings.get(0).getErasedType()); - - ResolvedType subtype; - - // and then with specialization too - subtype = typeResolver.resolveSubtype(supertype, ArrayList.class); - bindings = subtype.typeParametersFor(List.class); - assertEquals(1, bindings.size()); - assertSame(elemType, bindings.get(0).getErasedType()); - bindings = supertype.typeParametersFor(Collection.class); - assertEquals(1, bindings.size()); - assertSame(elemType, bindings.get(0).getErasedType()); - - // and once more, but now to a generic type - // 25-Oct-2015, tatu: Seems like there's some caching issue here... - subtype = typeResolver.resolveSubtype(supertype, List.class); - bindings = subtype.typeParametersFor(List.class); - assertEquals(1, bindings.size()); - assertSame(elemType, bindings.get(0).getErasedType()); - bindings = supertype.typeParametersFor(Collection.class); - assertEquals(1, bindings.size()); - assertSame(elemType, bindings.get(0).getErasedType()); - } - - /* - /********************************************************************** - /* Unit tests, success, untyped/incomplete - /********************************************************************** - */ - - public void testValidUntypedSubtype() - { - // First, make a concrete type that extends specified generic interface: - ResolvedType supertype = typeResolver.resolve(HashMap.class, String.class, Integer.class); - ResolvedType subtype = typeResolver.resolveSubtype(supertype, StringIntMap.class); - assertSame(StringIntMap.class, subtype.getErasedType()); - - // but resolution can't cheat; we must be able to find parameterization... - List bindings = subtype.typeParametersFor(HashMap.class); - assertEquals(2, bindings.size()); - assertSame(String.class, bindings.get(0).getErasedType()); - assertSame(Integer.class, bindings.get(1).getErasedType()); - } - - /** - * Let's test that we can also resolve to incomplete types; might - * be useful occasionally - */ - public void testValidIncompleteSubtype() - { - ResolvedType supertype = typeResolver.resolve(Map.class, String.class, Long.class); - ResolvedType subtype = typeResolver.resolveSubtype(supertype, StringKeyMap.class); - assertSame(StringKeyMap.class, subtype.getErasedType()); - - TypeBindings bindings = subtype.getTypeBindings(); - assertEquals(1, bindings.size()); - assertSame(Long.class, bindings.getBoundType(0).getErasedType()); - - // And should see full types for Map - ResolvedType actualSupertype = subtype.findSupertype(Map.class); - assertSame(Map.class, actualSupertype.getErasedType()); - bindings = actualSupertype.getTypeBindings(); - assertEquals(2, bindings.size()); - assertSame(String.class, bindings.getBoundType(0).getErasedType()); - assertSame(Long.class, bindings.getBoundType(1).getErasedType()); - } - - /* - /********************************************************************** - /* Unit tests, success, generic - /********************************************************************** - */ - - public void testValidGenericSubClass() - { - // First, make a concrete type that extends specified generic interface: - ResolvedType supertype = typeResolver.resolve(Map.class, String.class, Long.class); - ResolvedType subtype = typeResolver.resolveSubtype(supertype, HashMap.class); - assertSame(HashMap.class, subtype.getErasedType()); - - // in this case it's direct class, so we do have bindings - TypeBindings bindings = subtype.getTypeBindings(); - assertEquals(2, bindings.size()); - assertSame(String.class, bindings.getBoundType(0).getErasedType()); - assertSame(Long.class, bindings.getBoundType(1).getErasedType()); - - // and must look the same in other respects too: - assertEquals("Ljava/util/HashMap;", subtype.getSignature()); - assertEquals("java.util.HashMap extends java.util.AbstractMap implements java.util.Map,java.lang.Cloneable,java.io.Serializable", - subtype.getFullDescription()); - } - - /** - * Unit test for verifying that we can "sub-class" from rather low-level secondary - * interfaces, too - */ - public void testValidGenericSubInterface() - { - ResolvedType supertype = typeResolver.resolve(Iterable.class, Byte.class); - ResolvedType subtype = typeResolver.resolveSubtype(supertype, LinkedHashSet.class); - assertSame(LinkedHashSet.class, subtype.getErasedType()); - assertEquals("java.util.LinkedHashSet", subtype.getBriefDescription()); - - ResolvedType collectionType = subtype.findSupertype(Collection.class); - assertNotNull(collectionType); - assertEquals("java.util.Collection", collectionType.getBriefDescription()); - ResolvedType setType = subtype.findSupertype(Set.class); - assertNotNull(setType); - assertEquals("java.util.Set", setType.getBriefDescription()); - } - - public void testValidGenericSubInterfaceWithMap() - { - ResolvedType supertype = typeResolver.resolve(Map.class, String.class, Long.class); - ResolvedType subtype = typeResolver.resolveSubtype(supertype, StringLongMap.class); - assertSame(StringLongMap.class, subtype.getErasedType()); - ResolvedType match = subtype.findSupertype(Map.class); - TypeBindings tb = match.getTypeBindings(); - assertEquals(2, tb.size()); - assertSame(String.class, tb.getBoundType(0).getErasedType()); - assertSame(Long.class, tb.getBoundType(1).getErasedType()); - } - - public void testValidNestedType() - { - // Let's try to get to ListWrapper, from Wrapper> - ResolvedType elemType = typeResolver.resolve(List.class, String.class); - ResolvedType wrapperType = typeResolver.resolve(Wrapper.class, elemType); - ResolvedType subtype = typeResolver.resolveSubtype(wrapperType, ListWrapper.class); - assertSame(ListWrapper.class, subtype.getErasedType()); - ResolvedType match = subtype.findSupertype(Wrapper.class); - TypeBindings tb = match.getTypeBindings(); - assertEquals(1, tb.size()); - ResolvedType listType = tb.getBoundType(0); - assertSame(List.class, listType.getErasedType()); - tb = listType.getTypeBindings(); - assertEquals(1, tb.size()); - assertSame(String.class, tb.getBoundType(0).getErasedType()); - } - - // inspired by [JACKSON-677] - public void testValidInnerType() - { - ResolvedType type = typeResolver.resolve(OuterType.Inner.class); - assertSame(OuterType.Inner.class, type.getErasedType()); - ResolvedType mapType = type.findSupertype(Map.class); - assertSame(Map.class, mapType.getErasedType()); - TypeBindings bindings = mapType.getTypeBindings(); - assertEquals(2, bindings.size()); - assertSame(Object.class, bindings.getBoundType(0).getErasedType()); - // value should be "Collection", which resolves to "Collection" - ResolvedType valueType = bindings.getBoundType(1); - assertSame(Collection.class, valueType.getErasedType()); - // directly Collection, no need to find, just get: - bindings = valueType.getTypeBindings(); - assertEquals(1, bindings.size()); - assertSame(Object.class, bindings.getBoundType(0).getErasedType()); - } - - /* - /********************************************************************** - /* Unit tests, failure cases - /********************************************************************** - */ - - // Test to verify that type erasures are compatible - public void testInvalidSubClass() - { - ResolvedType supertype = typeResolver.resolve(List.class, Integer.class); - try { - typeResolver.resolveSubtype(supertype, HashMap.class); - fail("Expected failure"); - } catch (IllegalArgumentException e) { - verifyException(e, "Can not sub-class java.util.List"); - } - } - - // Test to further verify that type parameters are compatible - public void testIncompatibleTypeParametersList() - { - ResolvedType supertype = typeResolver.resolve(ArrayList.class, String.class); - try { - typeResolver.resolveSubtype(supertype, IntArrayList.class); - fail("Expected failure"); - } catch (IllegalArgumentException e) { - verifyException(e, "Type parameter #1/1 differs; expected java.lang.String"); - } - } - - public void testIncompatibleTypeParametersMap() - { - ResolvedType supertype = typeResolver.resolve(Map.class, String.class, Integer.class); - try { - ResolvedType t = typeResolver.resolveSubtype(supertype, StringLongMap.class); - fail("Expected failure, got: "+t); - } catch (IllegalArgumentException e) { - verifyException(e, "Type parameter #2/2 differs; expected java.lang.Integer"); - } - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestTypeDescriptions.java b/src/test/java/com/fasterxml/classmate/TestTypeDescriptions.java deleted file mode 100644 index ae224ef..0000000 --- a/src/test/java/com/fasterxml/classmate/TestTypeDescriptions.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.*; - -/** - * Unit tests for verifying that resolved types give expected string description - * and signatures. - */ -public class TestTypeDescriptions extends BaseTest -{ - /* - /********************************************************************** - /* Unit tests - /********************************************************************** - */ - - protected TypeResolver typeResolver; - - @Override - protected void setUp() - { - // Let's use a single instance for all tests, to increase chance of seeing failures - typeResolver = new TypeResolver(); - } - - public void testSimpleTypes() - { - // let's check some default java types - ResolvedType objectType = typeResolver.resolve(Object.class); - assertEquals("java.lang.Object", objectType.getFullDescription()); - assertEquals("Ljava/lang/Object;", objectType.getErasedSignature()); - assertEquals("Ljava/lang/Object;", objectType.getSignature()); - - ResolvedType stringType = typeResolver.resolve(String.class); - // Interesting thing with "simple" type like java.lang.String is that - // it has recursive type self-reference (via Comparable) - - final String stringDesc = stringType.getFullDescription(); - - // 10-Oct-2023, tatu: With JDK 17, get even more stuff... Start with pre-17 desc: - if (stringDesc.equals("java.lang.String extends java.lang.Object" - +" implements java.io.Serializable,java.lang.Comparable,java.lang.CharSequence" - )) { - ; - // But then allow JDK 17 variant - } else if (stringDesc.equals("java.lang.String extends java.lang.Object" - +" implements java.io.Serializable,java.lang.Comparable,java.lang.CharSequence" - +",java.lang.constant.Constable,java.lang.constant.ConstantDesc" - )) { - } else { - fail("Full String description not matching one of expected signatures: "+stringDesc); - } - assertEquals("Ljava/lang/String;", stringType.getErasedSignature()); - assertEquals("Ljava/lang/String;", stringType.getSignature()); - } - - public void testPrimitiveTypes() - { - // let's check some default java types - ResolvedType intType = typeResolver.resolve(Integer.TYPE); - assertEquals("I", intType.getSignature()); - assertEquals("I", intType.getErasedSignature()); - assertEquals("int", intType.getFullDescription()); - - ResolvedType boolType = typeResolver.resolve(Boolean.TYPE); - assertEquals("Z", boolType.getSignature()); - assertEquals("Z", boolType.getErasedSignature()); - assertEquals("boolean", boolType.getFullDescription()); - } - - public void testGenericTypes() - { - ResolvedType mapType = typeResolver.resolve(new GenericType>() { }); - assertEquals("Ljava/util/Map;", mapType.getErasedSignature()); - assertEquals("Ljava/util/Map;", mapType.getSignature()); - assertEquals("java.util.Map", mapType.getFullDescription()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/TestTypeResolver.java b/src/test/java/com/fasterxml/classmate/TestTypeResolver.java deleted file mode 100644 index 6f4d710..0000000 --- a/src/test/java/com/fasterxml/classmate/TestTypeResolver.java +++ /dev/null @@ -1,520 +0,0 @@ -package com.fasterxml.classmate; - -import java.util.*; -import java.lang.reflect.*; - -import com.fasterxml.classmate.members.RawMethod; -import com.fasterxml.classmate.members.ResolvedMethod; -import com.fasterxml.classmate.types.*; -import com.fasterxml.classmate.util.ClassKey; -import com.fasterxml.classmate.util.ResolvedTypeKey; - -@SuppressWarnings("serial") -public class TestTypeResolver extends BaseTest -{ - /* - /********************************************************************** - /* Helper types - /********************************************************************** - */ - - // // Multi-level resolution needed - - static class MyStringLongMap extends MyStringKeyMap { } - static class MyStringKeyMap extends TreeMap { } - - // // Playing with GenericType using inheritance - - static class IndirectRef - extends GenericType> { } - - static class IndirectIndirectRef - extends IndirectRef { } - - // // For verifying "jdk type" resolution - - static class ListWrapper { - public List wrap() { return null; } - } - - static class StringListWrapper extends ListWrapper { - public long field; - } - - // and recursive types... - static abstract class SelfRefType implements Comparable { } - - // Also: need to ensure that fields and methods get resolved - - public static class LongValuedMap extends HashMap { } - - static class StringLongMapBean { - public LongValuedMap value; - } - - abstract static class IntermediateList implements List { } - static class StringListBean { - public IntermediateList value; - } - - // For testing failure in subtype resolution with generic parameters - - static class Params { } - - // For testing wildcards - - @SuppressWarnings("rawtypes") - static interface Wild, S extends List> { } - - // For testing type-parameters matching - - static interface MatchA, S extends Comparator> { } - - static interface MatchB> { } - - // From [https://github.com/FasterXML/jackson-databind/issues/76] - static class HashTree extends HashMap> { } - - /* - /********************************************************************** - /* setup - /********************************************************************** - */ - - // Let's use a single instance for all tests, to increase chance of seeing failures - protected final TypeResolver typeResolver = new TypeResolver(); - - /* - /********************************************************************** - /* Unit tests, normal operation - /********************************************************************** - */ - - public void testResolveWithEmptyTypeParameters() - { - ResolvedType reference = typeResolver.resolve(List.class); - - ResolvedType type = typeResolver.resolve(List.class, (Class[]) null); - assertSame(reference, type); - - Class[] typeParameters = new Class[0]; - type = typeResolver.resolve(List.class, typeParameters); - assertSame(reference, type); - - type = typeResolver.resolve(List.class, (ResolvedType[]) null); - assertSame(reference, type); - - ResolvedType[] resolvedTypeParameters = new ResolvedType[0]; - type = typeResolver.resolve(List.class, resolvedTypeParameters); - assertSame(reference, type); - } - - public void testResolveGenericWithFailures() - { - final GenericType type = new GenericType() { }; - // force failure - TypeResolver._primitiveTypes.put(new ClassKey(type.getClass()), new ResolvedObjectType(type.getClass(), null, (ResolvedType) null, ResolvedType.NO_TYPES) { - @Override public ResolvedType findSupertype(Class erasedSupertype) { - return null; - } - }); - try { - typeResolver.resolve(type); - fail("Should have thrown an IllegalArgumentException"); - } catch (IllegalArgumentException iae) { - // expected - } - - // now force failure on getting generic's parameterized type - TypeResolver._primitiveTypes.put(new ClassKey(type.getClass()), new ResolvedObjectType(type.getClass(), null, (ResolvedType) null, ResolvedType.NO_TYPES) { - @Override public ResolvedType findSupertype(Class erasedSupertype) { - return ResolvedObjectType.create(type.getClass(), null, null, null); - } - }); - try { - typeResolver.resolve(type); - fail("Should have thrown an IllegalArgumentException when getting the generic's parameterized types."); - } catch (IllegalArgumentException iae) { - // expected - } - } - - public void testSimpleTypes() - { - // let's check some default java types - ResolvedType objectType = _testSimpleConcrete(Object.class); - ResolvedType stringType = _testSimpleConcrete(String.class); - - // minor other thing; see that caching works - assertSame(stringType, _testSimpleConcrete(String.class)); - - ResolvedType stringParent = stringType.getParentClass(); - assertNotNull(stringParent); - // actually, should also resolve to same as direct lookup: - assertSame(objectType, stringParent); - } - - public void testArrayTypes() - { - ResolvedType arrayType = typeResolver.resolve(int[].class); - assertTrue(arrayType.isArray()); - ResolvedType elemType = arrayType.getArrayElementType(); - assertNotNull(elemType); - assertTrue(elemType.isPrimitive()); - assertSame(Integer.TYPE, elemType.getErasedType()); - - // And then alternate ways to construct - ResolvedType arrayType2 = typeResolver.resolve(new GenericType() { }); - assertTrue(arrayType2.isArray()); - assertSame(elemType, arrayType2.getArrayElementType()); - - ResolvedType arrayType3 = typeResolver.arrayType(typeResolver.resolve(Integer.TYPE)); - assertTrue(arrayType3.isArray()); - assertSame(elemType, arrayType3.getArrayElementType()); - } - - public void testGenericMap() - { - // First, direct ref - GenericType mapInput = new GenericType>() { }; - ResolvedType mapType = typeResolver.resolve(mapInput); - assertSame(Map.class, mapType.getErasedType()); - assertTrue(mapType.isAbstract()); - assertTrue(mapType.isInterface()); - assertTrue(mapType.isInstanceOf(Map.class)); - - // Which should have proper parameterization: - List params = mapType.typeParametersFor(Map.class); - assertEquals(2, params.size()); - assertSame(String.class, params.get(0).getErasedType()); - assertSame(Long.class, params.get(1).getErasedType()); - - // Then alternative methods - ResolvedType mapType2 = typeResolver.resolve(Map.class, Character.class, Boolean.class); - assertSame(Map.class, mapType.getErasedType()); - List params2 = mapType2.typeParametersFor(Map.class); - assertTrue(mapType2.isAbstract()); - assertTrue(mapType2.isInterface()); - assertEquals(2, params2.size()); - assertSame(Character.class, params2.get(0).getErasedType()); - assertSame(Boolean.class, params2.get(1).getErasedType()); - } - - public void testParametricMap() - { - ResolvedType mapType = typeResolver.resolve(MyStringLongMap.class); - assertSame(MyStringLongMap.class, mapType.getErasedType()); - // Ensure we can find parameters for Map - List params = mapType.typeParametersFor(Map.class); - assertEquals(2, params.size()); - assertSame(String.class, params.get(0).getErasedType()); - assertSame(Long.class, params.get(1).getErasedType()); - - ResolvedType wildcardMap = typeResolver.resolve(HashTree.class); - assertSame(HashTree.class, wildcardMap.getErasedType()); - // K becomes Object (unbound), V has lower bound of HashTree, so: - params = wildcardMap.typeParametersFor(Map.class); - assertEquals(2, params.size()); - assertSame(Object.class, params.get(0).getErasedType()); - assertSame(HashTree.class, params.get(1).getErasedType()); - } - - /** - * Unit test for verifying that it is ok to sub-class {@link GenericType} - */ - public void testIndirectGeneric() - { - ResolvedType type = typeResolver.resolve(new IndirectRef()); - assertSame(HashMap.class, type.getErasedType()); - assertTrue(type.isInstanceOf(Map.class)); - List mapParams = type.typeParametersFor(HashMap.class); - assertNotNull(mapParams); - assertEquals(2, mapParams.size()); - assertSame(String.class, mapParams.get(0).getErasedType()); - assertSame(Long.class, mapParams.get(1).getErasedType()); - // ditto when looking deeper: - mapParams = type.typeParametersFor(Map.class); - assertNotNull(mapParams); - assertEquals(2, mapParams.size()); - assertSame(String.class, mapParams.get(0).getErasedType()); - assertSame(Long.class, mapParams.get(1).getErasedType()); - - // and same with even more indirection... - type = typeResolver.resolve(new IndirectIndirectRef()); - assertSame(HashMap.class, type.getErasedType()); - mapParams = type.typeParametersFor(HashMap.class); - assertNotNull(mapParams); - assertEquals(2, mapParams.size()); - assertSame(String.class, mapParams.get(0).getErasedType()); - assertSame(Long.class, mapParams.get(1).getErasedType()); - mapParams = type.typeParametersFor(Map.class); - assertNotNull(mapParams); - assertEquals(2, mapParams.size()); - assertSame(String.class, mapParams.get(0).getErasedType()); - assertSame(Long.class, mapParams.get(1).getErasedType()); - } - - public void testJdkType() throws Exception - { - ResolvedType wrapperType = typeResolver.resolve(StringListWrapper.class); - assertTrue(wrapperType instanceof ResolvedObjectType); - Field f = StringListWrapper.class.getDeclaredField("field"); - assertNotNull(f); - // first; field has no generic stuff, should be simple - ResolvedType fieldType = typeResolver.resolve(wrapperType.getTypeBindings(), f.getGenericType()); - assertEquals(Long.TYPE, fieldType.getErasedType()); - assertTrue(fieldType.isPrimitive()); - // but method return type is templatized; and MUST be given correct type bindings! - Method m = ListWrapper.class.getDeclaredMethod("wrap"); - ResolvedType superType = wrapperType.getParentClass(); - assertSame(ListWrapper.class, superType.getErasedType()); - ResolvedType methodReturnType = typeResolver.resolve(superType.getTypeBindings(), - m.getGenericReturnType()); - // should be List - assertSame(List.class, methodReturnType.getErasedType()); - List tp = methodReturnType.getTypeParameters(); - assertEquals(1, tp.size()); - assertSame(String.class, tp.get(0).getErasedType()); - } - - public void testSimpleSelfRef() - { - ResolvedType type = typeResolver.resolve(SelfRefType.class); - assertSame(SelfRefType.class, type.getErasedType()); - List interfaces = type.getImplementedInterfaces(); - assertEquals(1, interfaces.size()); - ResolvedType compType = interfaces.get(0); - assertSame(Comparable.class, compType.getErasedType()); - List pts = compType.getTypeParameters(); - assertEquals(1, pts.size()); - ResolvedType compParam = pts.get(0); - // ok this ought to be self-ref - assertSame(ResolvedRecursiveType.class, compParam.getClass()); - assertSame(SelfRefType.class, compParam.getErasedType()); - assertNull(compParam.getParentClass()); - // but we should be able to find what it really is, too: - assertSame(type, compParam.getSelfReferencedType()); - } - - public void testTypesFromMapField() throws Exception - { - ResolvedType type = typeResolver.resolve(StringLongMapBean.class); - Field field = StringLongMapBean.class.getDeclaredField("value"); - ResolvedType fieldType = typeResolver.resolve(type.getTypeBindings(), field.getGenericType()); - assertSame(LongValuedMap.class, fieldType.getErasedType()); - List mapTypes = fieldType.typeParametersFor(Map.class); - assertEquals(2, mapTypes.size()); - assertSame(String.class, mapTypes.get(0).getErasedType()); - assertSame(Long.class, mapTypes.get(1).getErasedType()); - } - - public void testTypesFromListField() throws Exception - { - ResolvedType type = typeResolver.resolve(StringListBean.class); - Field field = StringListBean.class.getDeclaredField("value"); - ResolvedType fieldType = typeResolver.resolve(type.getTypeBindings(), field.getGenericType()); - assertSame(IntermediateList.class, fieldType.getErasedType()); - List listType = fieldType.typeParametersFor(List.class); - assertEquals(1, listType.size()); - assertSame(String.class, listType.get(0).getErasedType()); - } - - public void testResolvedTypeAsType() - { - ResolvedType t1 = typeResolver.resolve(getClass()); - ResolvedType t2 = typeResolver.resolve(t1); - assertSame(t1, t2); - } - - /* - /********************************************************************** - /* Unit tests, error cases - /********************************************************************** - */ - - /** - * Unit test to verify that discrepancies are properly detected - */ - public void testGenericParamMismatch() - { - // Maps require 2 type params: - try { - typeResolver.resolve(Map.class, Long.class); - fail("Expected failure"); - } catch (IllegalArgumentException e) { - verifyException(e, "1 type parameter: class expects 2"); - } - - // And Lists just 1 - try { - typeResolver.resolve(List.class, Integer.class, Long.class); - fail("Expected failure"); - } catch (IllegalArgumentException e) { - verifyException(e, "2 type parameters: class expects 1"); - } - } - - public void testInvalidSubtype() - { - ResolvedType supertype = typeResolver.resolve(String.class); - try { - // can't do equivalent of "ArrayType extends String" - typeResolver.resolveSubtype(supertype, ArrayList.class); - } catch (IllegalArgumentException e) { - verifyException(e, "Can not sub-class java.lang.String into java.util.ArrayList"); - } - supertype = typeResolver.resolve(boolean.class); - try { - typeResolver.resolveSubtype(supertype, Boolean.class); // autoboxing, clearly, isn't sub-classing - fail("Expecting an UnsupportedOperationException as boolean.class cannot be subclassed."); - } catch (UnsupportedOperationException uoe) { - verify(uoe, "Can not subtype primitive or array types (type %s)", supertype.getFullDescription()); - } - // add a mock class to force 'internal-error' case - Object subclass = new Object() { }; - typeResolver._resolvedTypes.put(new ResolvedTypeKey(subclass.getClass()), new ResolvedObjectType(subclass.getClass(), null, (ResolvedType) null, ResolvedType.NO_TYPES) { - @Override public ResolvedType findSupertype(Class erasedSupertype) { - return null; - } - }); - supertype = typeResolver.resolve(Object.class); - try { - typeResolver.resolveSubtype(supertype, subclass.getClass()); - fail("Expecting an IllegalArgumentException as supertype should not have been found for subtype."); - } catch (IllegalArgumentException iae) { - verify(iae, "Internal error: unable to locate supertype (%s) for type %s", subclass.getClass().getName(), - supertype.getBriefDescription()); - } - // add a mock class to force a failure of finding a type's parameters - subclass = new Params(); - final ResolvedType finalSuperType = supertype; - TypeBindings typeBindings = TypeBindings.emptyBindings(); // force failure of parameter resolution - typeResolver._resolvedTypes.put(new ResolvedTypeKey(subclass.getClass()), new ResolvedObjectType(subclass.getClass(), - typeBindings, (ResolvedType) null, ResolvedType.NO_TYPES) { - @Override public ResolvedType findSupertype(Class erasedSupertype) { - return finalSuperType; - } - }); - try { - typeResolver.resolveSubtype(supertype, subclass.getClass()); - fail("Expecting an IllegalArgumentException as boolean.class cannot be subclassed."); - } catch (IllegalArgumentException iae) { - verify(iae, "Failed to find type parameter #1/1 for %s", subclass.getClass().getName()); - } - } - - public void testResolveOfSelfReferencedType() - { - ResolvedType supertype = typeResolver.resolve(SelfRefType.class); - ResolvedType self = typeResolver.resolveSubtype(supertype, SelfRefType.class); - assertSame(self, supertype); - - assertFalse(TypeResolver.isSelfReference(self)); - assertFalse(TypeResolver.isSelfReference(supertype)); - - ResolvedRecursiveType selfSuperType = new ResolvedRecursiveType(SelfRefType.class, null); - selfSuperType.setReference(supertype); - self = typeResolver.resolveSubtype(selfSuperType, SelfRefType.class); - assertSame(self, supertype); - - assertTrue(TypeResolver.isSelfReference(selfSuperType)); - } - - public void testWildcardType() - { - @SuppressWarnings("rawtypes") - GenericType, List>> genericType = - new GenericType, List>>() { }; - ResolvedType resolvedType = typeResolver.resolve(genericType); - List typeParameters = resolvedType.getTypeParameters(); - assertEquals(2, typeParameters.size()); - // the wildcard gets collapsed to it's upper-bound - assertEquals(List.class, typeParameters.get(0).getErasedType()); - assertEquals(List.class, typeParameters.get(1).getErasedType()); - } - - public void testUnknownJdkType() - { - Type type = new Type() { }; - try { - typeResolver.resolve(type); - fail("Expected an IllegalArgumentException as concrete type of Type is unknown."); - } catch (IllegalArgumentException iae) { - verify(iae, "Unrecognized type class: %s", type.getClass().getName()); - } - } - - public void testMissingSuperclass() throws IllegalAccessException, InvocationTargetException - { - ResolvedType resolvedType = typeResolver.resolve(TypeResolver.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - @Override public boolean include(RawMethod element) { - return "_resolveSuperClass".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedMethod resolveSuperClassResolvedMethod = resolvedTypeWithMembers.getMemberMethods()[0]; - Method resolveSuperClassMethod = resolveSuperClassResolvedMethod.getRawMember(); - resolveSuperClassMethod.setAccessible(true); - assertNull(resolveSuperClassMethod.invoke(typeResolver, null, Comparator.class, null)); - } - - public void testTypesMatch() throws IllegalAccessException, InvocationTargetException - { - ResolvedType resolvedType = typeResolver.resolve(TypeResolver.class); - MemberResolver memberResolver = new MemberResolver(typeResolver); - memberResolver.setMethodFilter(new Filter() { - // 26-Oct-2015, tatu: Quite fragile, probably shouldn't use - @Override public boolean include(RawMethod element) { - return "_verifyAndResolve".equals(element.getName()); - } - }); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedMethod[] methods = resolvedTypeWithMembers.getMemberMethods(); - if (methods.length == 0) { - fail("Missing methods: should find one"); - } - ResolvedMethod typesMatchResolvedMethod = methods[0]; - Method typesMatchMethod = typesMatchResolvedMethod.getRawMember(); - typesMatchMethod.setAccessible(true); - - // first test equality - GenericType>> matchBList = new GenericType>>() { }; - ResolvedType matchBListResolved = typeResolver.resolve(matchBList); - assertTrue((Boolean) typesMatchMethod.invoke(typeResolver, matchBListResolved, matchBListResolved)); - GenericType, Comparator>>> matchASet = new GenericType, Comparator>>>() { }; - GenericType, Comparator>>> matchASet1 = new GenericType, Comparator>>>() { }; - ResolvedType matchASetResolved = typeResolver.resolve(matchASet); - ResolvedType matchASetResolved1 = typeResolver.resolve(matchASet1); - assertTrue((Boolean) typesMatchMethod.invoke(typeResolver, matchASetResolved, matchASetResolved1)); - - // now check inequality - GenericType, Comparator>>> matchAList = new GenericType, Comparator>>>() { }; - ResolvedType matchAListResolved = typeResolver.resolve(matchAList); - assertFalse((Boolean) typesMatchMethod.invoke(typeResolver, matchAListResolved, matchASetResolved)); - - // now ensure different number of type-parameters are handled correctly - assertFalse((Boolean) typesMatchMethod.invoke(typeResolver, matchAListResolved, matchBListResolved)); - assertFalse((Boolean) typesMatchMethod.invoke(typeResolver, matchBListResolved, matchAListResolved)); - } - - /* - /********************************************************************** - /* Helper methods - /********************************************************************** - */ - - private ResolvedType _testSimpleConcrete(Class cls) - { - ResolvedType type = typeResolver.resolve(cls); - assertTrue(type instanceof ResolvedObjectType); - assertSame(cls, type.getErasedType()); - assertFalse(type.isAbstract()); - assertFalse(type.isArray()); - assertFalse(type.isInterface()); - assertTrue(type.isConcrete()); - assertFalse(type.isPrimitive()); - return type; - } -} diff --git a/src/test/java/com/fasterxml/classmate/TypeBindingsTest.java b/src/test/java/com/fasterxml/classmate/TypeBindingsTest.java deleted file mode 100644 index 9da1422..0000000 --- a/src/test/java/com/fasterxml/classmate/TypeBindingsTest.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.fasterxml.classmate; - -import java.lang.reflect.Field; -import java.util.*; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import static junit.framework.Assert.*; - -@SuppressWarnings("deprecation") -public class TypeBindingsTest -{ - @Test - public void create() throws NoSuchFieldException, IllegalAccessException { - Field typesField = TypeBindings.class.getDeclaredField("_types"); - typesField.setAccessible(true); - - // test null/empty arguments - TypeBindings instance = TypeBindings.create(String.class, (List) null); - assertEquals(0, ((ResolvedType[]) typesField.get(instance)).length); - instance = TypeBindings.create(String.class, Collections.emptyList()); - assertEquals(0, ((ResolvedType[]) typesField.get(instance)).length); - } - - @Test - public void isEmpty() { - TypeBindings instance = TypeBindings.create(String.class, (List) null); - assertTrue(instance.isEmpty()); - List types = new ArrayList(); - types.add(ResolvedObjectType.create(Object.class, TypeBindings.emptyBindings(), null, null)); - instance = TypeBindings.create(Comparable.class, types); - assertFalse(instance.isEmpty()); - } - - @Test - public void getBoundName() { - // test index bounds - List types = new ArrayList(); - types.add(ResolvedObjectType.create(Object.class, TypeBindings.emptyBindings(), null, null)); - TypeBindings instance = TypeBindings.create(Comparable.class, types); - - assertNull(instance.getBoundName(-1)); - assertNull(instance.getBoundName(1)); - assertNull(instance.getBoundName(Integer.MIN_VALUE)); - assertNull(instance.getBoundName(Integer.MAX_VALUE)); - assertEquals("T", instance.getBoundName(0)); - - } - - @Test - public void getBoundType() { - // test index bounds - List types = new ArrayList(); - types.add(ResolvedObjectType.create(Object.class, TypeBindings.emptyBindings(), null, null)); - TypeBindings instance = TypeBindings.create(Comparable.class, types); - - assertNull(instance.getBoundType(-1)); - assertNull(instance.getBoundType(1)); - assertNull(instance.getBoundType(Integer.MIN_VALUE)); - assertNull(instance.getBoundType(Integer.MAX_VALUE)); - assertSame(types.get(0), instance.getBoundType(0)); - } - - @Test - public void typeBindingsToString() { - TypeBindings instance = TypeBindings.create(String.class, (List) null); - assertEquals("", instance.toString()); - - List types = new ArrayList(); - types.add(ResolvedObjectType.create(Object.class, TypeBindings.emptyBindings(), null, null)); - instance = TypeBindings.create(Comparable.class, types); - assertEquals("", instance.toString()); - - types.add(ResolvedObjectType.create(String.class, TypeBindings.emptyBindings(), null, null)); - instance = TypeBindings.create(Map.class, types); - assertEquals("", instance.toString()); - } - - @Test - public void equals() { - // test referential - TypeBindings instance = TypeBindings.create(String.class, (List) null); - assertTrue(instance.equals(instance)); - - // test null - assertFalse(instance.equals(null)); - - // test different classes - Object strKey = "not a TypeBindings"; - assertFalse(instance.equals(strKey)); - - // test no types - TypeBindings instance1 = TypeBindings.create(Object.class, (List) null); - assertTrue(instance.equals(instance1)); - assertTrue(instance1.equals(instance)); - - // test unequal types length - List types = new ArrayList(); - types.add(ResolvedObjectType.create(Object.class, TypeBindings.emptyBindings(), null, null)); - TypeBindings instance2 = TypeBindings.create(Comparable.class, types); - assertFalse(instance.equals(instance2)); - assertFalse(instance2.equals(instance)); - - // test equal types length (unequal values) - types = new ArrayList(); - types.add(ResolvedObjectType.create(String.class, TypeBindings.emptyBindings(), null, null)); - TypeBindings instance3 = TypeBindings.create(Comparable.class, types); - assertFalse(instance2.equals(instance3)); - assertFalse(instance3.equals(instance2)); - - // test equal types length (equal values) - types = new ArrayList(); - types.add(ResolvedObjectType.create(String.class, TypeBindings.emptyBindings(), null, null)); - TypeBindings instance4 = TypeBindings.create(Comparable.class, types); - assertTrue(instance3.equals(instance4)); - assertTrue(instance4.equals(instance3)); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/failing/TestTypeResolver53.java b/src/test/java/com/fasterxml/classmate/failing/TestTypeResolver53.java deleted file mode 100644 index 01eedd1..0000000 --- a/src/test/java/com/fasterxml/classmate/failing/TestTypeResolver53.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.fasterxml.classmate.failing; - -import java.util.Arrays; -import java.util.Comparator; -import java.util.List; - -import com.fasterxml.classmate.BaseTest; -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeResolver; - -// for [classmate#53]: Raw Comparator -public class TestTypeResolver53 extends BaseTest -{ - @SuppressWarnings("rawtypes") - static abstract class Comparator53 implements Comparator { } - - protected final TypeResolver RESOLVER = new TypeResolver(); - - // [classmate#53] Problem with Raw types - public void testResolvingRawType() { - ResolvedType rt = RESOLVER.resolve(Comparator53.class); - List params = rt.typeParametersFor(Comparator.class); - assertEquals(Arrays.asList(RESOLVER.resolve(Object.class)), - params); - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/GhostTypeParameterInFieldTest.java b/src/test/java/com/fasterxml/classmate/members/GhostTypeParameterInFieldTest.java deleted file mode 100644 index b5c0c5d..0000000 --- a/src/test/java/com/fasterxml/classmate/members/GhostTypeParameterInFieldTest.java +++ /dev/null @@ -1,112 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.util.Arrays; -import java.util.Comparator; -import java.util.List; - -import junit.framework.TestCase; - -import com.fasterxml.classmate.*; - -// for [#33]: "ghost" parameter -public class GhostTypeParameterInFieldTest - extends TestCase -{ - public static class GenericWithClass { - public List listOfT; - public T t; - public Integer i; - } - - public static class GenericWithInterface { - public List listOfT; - public T t; - public Number i; - } - - public void testGhostTypeParameterWithClass() - { - TypeResolver resolver = new TypeResolver(); - ResolvedType resolvedType = resolver.resolve(GenericWithClass.class, Integer.class); - MemberResolver memberResolver = new MemberResolver(resolver); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedField[] fields = resolvedTypeWithMembers.getMemberFields(); - Arrays.sort(fields, new Comparator(){ - @Override - public int compare(ResolvedField f1, ResolvedField f2) { - return (f1.toString()).compareTo(f2.toString()); - } - }); - - // test fields - assertEquals(3, fields.length); - - // field List listOfT - ResolvedField listOfT_Field = fields[1]; - assertEquals("listOfT", listOfT_Field.getName()); - ResolvedType listOfT_Type = listOfT_Field.getType(); - assertEquals(List.class, listOfT_Type.getErasedType()); - List listOfT_TypeParams = listOfT_Type.getTypeParameters(); - assertEquals("Expected 1 type parameter for listOfT, got " + listOfT_TypeParams.size() + ": " + listOfT_TypeParams, 1, listOfT_TypeParams.size()); - assertEquals(Integer.class, listOfT_TypeParams.get(0).getErasedType()); - - // field t - ResolvedField t_Field = fields[2]; - assertEquals("t", t_Field.getName()); - ResolvedType t_Type = t_Field.getType(); - assertEquals(Integer.class, t_Type.getErasedType()); - List t_TypeParams = t_Type.getTypeParameters(); - assertEquals("Expected 0 type parameter for t, got " + t_TypeParams.size() + ": " + t_TypeParams, 0, t_TypeParams.size()); - - // field i - ResolvedField i_Field = fields[0]; - assertEquals("i", i_Field.getName()); - ResolvedType i_Type = i_Field.getType(); - assertEquals(Integer.class, i_Type.getErasedType()); - List i_TypeParams = i_Type.getTypeParameters(); - assertEquals("Expected 0 type parameter for i, got " + i_TypeParams.size() + ": " + i_TypeParams, 0, i_TypeParams.size()); - } - - public void testGhostTypeParameterWithInterface() - { - TypeResolver resolver = new TypeResolver(); - ResolvedType resolvedType = resolver.resolve(GenericWithInterface.class, Integer.class); - MemberResolver memberResolver = new MemberResolver(resolver); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - ResolvedField[] fields = resolvedTypeWithMembers.getMemberFields(); - Arrays.sort(fields, new Comparator(){ - @Override - public int compare(ResolvedField f1, ResolvedField f2) { - return (f1.toString()).compareTo(f2.toString()); - } - }); - - // test fields - assertEquals(3, fields.length); - - // field List listOfT - ResolvedField listOfT_Field = fields[1]; - assertEquals("listOfT", listOfT_Field.getName()); - ResolvedType listOfT_Type = listOfT_Field.getType(); - assertEquals(List.class, listOfT_Type.getErasedType()); - List listOfT_TypeParams = listOfT_Type.getTypeParameters(); - assertEquals("Expected 1 type parameter for listOfT, got " + listOfT_TypeParams.size() + ": " + listOfT_TypeParams, 1, listOfT_TypeParams.size()); - assertEquals(Integer.class, listOfT_TypeParams.get(0).getErasedType()); - - // field t - ResolvedField t_Field = fields[2]; - assertEquals("t", t_Field.getName()); - ResolvedType t_Type = t_Field.getType(); - assertEquals(Integer.class, t_Type.getErasedType()); - List t_TypeParams = t_Type.getTypeParameters(); - assertEquals("Expected 0 type parameter for t, got " + t_TypeParams.size() + ": " + t_TypeParams, 0, t_TypeParams.size()); - - // field i - ResolvedField i_Field = fields[0]; - assertEquals("i", i_Field.getName()); - ResolvedType i_Type = i_Field.getType(); - assertEquals(Number.class, i_Type.getErasedType()); - List i_TypeParams = i_Type.getTypeParameters(); - assertEquals("Expected 0 type parameter for i, got " + i_TypeParams.size() + ": " + i_TypeParams, 0, i_TypeParams.size()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/HierarchicTypeTest.java b/src/test/java/com/fasterxml/classmate/members/HierarchicTypeTest.java deleted file mode 100644 index 8d23b96..0000000 --- a/src/test/java/com/fasterxml/classmate/members/HierarchicTypeTest.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import static junit.framework.Assert.*; - -/** - * @author blangel - */ -@SuppressWarnings("deprecation") -public class HierarchicTypeTest { - - @Test - public void hierarchicTypeToString() { - HierarchicType hierarchicType = new HierarchicType(null, false, 0); - try { - hierarchicType.toString(); - fail("Expected a NullPointerException as the type was not specified."); - } catch (NullPointerException npe) { - // expected - } - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - hierarchicType = new HierarchicType(stringType, false, 0); - assertEquals(stringType.toString(), hierarchicType.toString()); - } - - @Test - public void hierarchicTypeHashCode() { - HierarchicType hierarchicType = new HierarchicType(null, false, 0); - try { - int hashCode = hierarchicType.hashCode(); - fail(String.format("Expected a NullPointerException as the type was not specified [ got %d ].", hashCode)); - } catch (NullPointerException npe) { - // expected - } - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - hierarchicType = new HierarchicType(stringType, false, 0); - assertEquals(stringType.hashCode(), hierarchicType.hashCode()); - } - - @Test - public void equals() { - HierarchicType hierarchicType = new HierarchicType(null, false, 0); - // test referential - assertTrue(hierarchicType.equals(hierarchicType)); - - // test null - assertFalse(hierarchicType.equals(null)); - - // test different class - assertFalse(hierarchicType.equals("not a HierarchicType")); - - // test NPE - HierarchicType hierarchicType1 = new HierarchicType(null, false, 0); - try { - boolean result = hierarchicType.equals(hierarchicType1); - fail(String.format("Expected a NullPointerException as the type was not specified [ got %b ].", result)); - } catch (NullPointerException npe) { - // expected - } - - // test unequal types - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, null, null); - hierarchicType = new HierarchicType(stringType, false, 0); - ResolvedObjectType objectType = ResolvedObjectType.create(Object.class, null, null, null); - hierarchicType1 = new HierarchicType(objectType, false, 0); - assertFalse(hierarchicType.equals(hierarchicType1)); - assertFalse(hierarchicType1.equals(hierarchicType)); - - // test equal - HierarchicType hierarchicType2 = new HierarchicType(stringType, false, 0); - HierarchicType hierarchicType3 = new HierarchicType(objectType, false, 0); - - assertTrue(hierarchicType.equals(hierarchicType2)); - assertTrue(hierarchicType2.equals(hierarchicType)); - - assertTrue(hierarchicType1.equals(hierarchicType3)); - assertTrue(hierarchicType3.equals(hierarchicType1)); - - // test equal even though mixin and priority are different - hierarchicType2 = new HierarchicType(stringType, true, 0); - assertTrue(hierarchicType.equals(hierarchicType2)); - assertTrue(hierarchicType2.equals(hierarchicType)); - hierarchicType2 = new HierarchicType(stringType, false, 1); - assertTrue(hierarchicType.equals(hierarchicType2)); - assertTrue(hierarchicType2.equals(hierarchicType)); - hierarchicType2 = new HierarchicType(stringType, false, 1); - assertTrue(hierarchicType.equals(hierarchicType2)); - assertTrue(hierarchicType2.equals(hierarchicType)); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/members/Issue28Test.java b/src/test/java/com/fasterxml/classmate/members/Issue28Test.java deleted file mode 100644 index c6eecef..0000000 --- a/src/test/java/com/fasterxml/classmate/members/Issue28Test.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.fasterxml.classmate.members; - -import java.util.List; - -import junit.framework.TestCase; - -import com.fasterxml.classmate.*; - -// for issue #28, "ghost" type parameter: -public class Issue28Test - extends TestCase -{ - class A { - public void foo(T t) { - } - } - - public void testIssue28() - { - TypeResolver resolver = new TypeResolver(); - ResolvedType resolvedType = resolver.resolve(A.class); - MemberResolver memberResolver = new MemberResolver(resolver); - ResolvedTypeWithMembers resolvedTypeWithMembers = memberResolver.resolve(resolvedType, null, null); - - ResolvedMethod[] members = resolvedTypeWithMembers.getMemberMethods(); - assertEquals(1, members.length); - - ResolvedMethod fooMethod = members[0]; - assertEquals("foo", fooMethod.getName()); - assertEquals(1, fooMethod.getArgumentCount()); - ResolvedType arg = fooMethod.getArgumentType(0); - - assertEquals(Number.class, arg.getErasedType()); - List tps = arg.getTypeParameters(); - if (tps.size() != 0) { - fail("Expected 0 type parameters, got "+tps.size()+": "+tps); - } - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/RawConstructorTest.java b/src/test/java/com/fasterxml/classmate/members/RawConstructorTest.java deleted file mode 100644 index f49cbee..0000000 --- a/src/test/java/com/fasterxml/classmate/members/RawConstructorTest.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; -import com.fasterxml.classmate.util.MethodKey; - -import java.lang.reflect.Constructor; - -import junit.framework.TestCase; - -/** - * @author blangel - */ -public class RawConstructorTest - extends TestCase -{ - - private static final Constructor stringConstructor; - static { - try { - stringConstructor = String.class.getDeclaredConstructor(); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } - } - - public void testCreateKey() { - RawConstructor rawConstructor = new RawConstructor(ResolvedObjectType.create(Object.class, null, null, null), stringConstructor); - MethodKey methodKey = rawConstructor.createKey(); - assertNotNull(methodKey); - assertEquals("()", methodKey.toString()); - } - - public void testEquals() { - // referential equality - RawConstructor rawConstructor = new RawConstructor(ResolvedObjectType.create(Object.class, null, null, null), stringConstructor); - assertTrue(rawConstructor.equals(rawConstructor)); - - // null - assertFalse(rawConstructor.equals(null)); - - // unequal class - assertFalse(rawConstructor.equals("not a RawConstructor")); - - // equality via delegation to Method - RawConstructor rawConstructor1 = new RawConstructor(ResolvedObjectType.create(String.class, null, null, null), stringConstructor); - assertTrue(rawConstructor.equals(rawConstructor1)); - assertTrue(rawConstructor1.equals(rawConstructor)); - - RawConstructor rawConstructor2 = new RawConstructor(ResolvedObjectType.create(String.class, null, null, null), null); - assertFalse(rawConstructor.equals(rawConstructor2)); - assertFalse(rawConstructor2.equals(rawConstructor)); - assertFalse(rawConstructor1.equals(rawConstructor2)); - assertFalse(rawConstructor2.equals(rawConstructor1)); - } - - public void testRawConstructorHashCode() { - RawConstructor rawConstructor = new RawConstructor(ResolvedObjectType.create(Object.class, null, null, null), stringConstructor); - assertEquals(stringConstructor.getName().hashCode(), rawConstructor.hashCode()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/members/RawFieldTest.java b/src/test/java/com/fasterxml/classmate/members/RawFieldTest.java deleted file mode 100644 index f909c32..0000000 --- a/src/test/java/com/fasterxml/classmate/members/RawFieldTest.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import java.lang.reflect.Field; - -import static junit.framework.Assert.assertFalse; -import static junit.framework.Assert.assertTrue; -import static junit.framework.Assert.fail; - -@SuppressWarnings("deprecation") -public class RawFieldTest { - - @SuppressWarnings("unused") - private static class ModifiersClass { - private static String test; - private transient String transientField; - private volatile String volatileField; - } - - private static final Field serialVersionUIDField; - private static final Field testField; - private static final Field transientFieldField; - private static final Field volatileFieldField; - static { - try { - serialVersionUIDField = String.class.getDeclaredField("serialVersionUID"); - testField = ModifiersClass.class.getDeclaredField("test"); - transientFieldField = ModifiersClass.class.getDeclaredField("transientField"); - volatileFieldField = ModifiersClass.class.getDeclaredField("volatileField"); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - } - - @Test - @SuppressWarnings("unused") - public void init() { - try { - new RawField(null, null); - } catch (NullPointerException npe) { - fail(npe.getMessage()); - } - } - - @Test - public void isTransient() { - RawField rawField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), transientFieldField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertTrue(rawField.isTransient()); - assertFalse(rawField1.isTransient()); - } - - @Test - public void isVolatile() { - RawField rawField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), volatileFieldField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertTrue(rawField.isVolatile()); - assertFalse(rawField1.isVolatile()); - } - - @Test - public void equals() { - // test referential equality - RawField rawField = new RawField(ResolvedObjectType.create(String.class, null, null, null), serialVersionUIDField); - assertTrue(rawField.equals(rawField)); - - // test null - assertFalse(rawField.equals(null)); - - // test different class - assertFalse(rawField.equals("not a RawField")); - - // test unequal fields - RawField rawField1 = new RawField(ResolvedObjectType.create(String.class, null, null, null), testField); - assertFalse(rawField.equals(rawField1)); - assertFalse(rawField1.equals(rawField)); - - RawField rawField2 = new RawField(ResolvedObjectType.create(String.class, null, null, null), testField); - RawField rawField3 = new RawField(ResolvedObjectType.create(String.class, null, null, null), serialVersionUIDField); - assertTrue(rawField.equals(rawField3)); - assertTrue(rawField3.equals(rawField)); - assertTrue(rawField1.equals(rawField2)); - assertTrue(rawField2.equals(rawField1)); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/members/RawMemberTest.java b/src/test/java/com/fasterxml/classmate/members/RawMemberTest.java deleted file mode 100644 index 2aeaf90..0000000 --- a/src/test/java/com/fasterxml/classmate/members/RawMemberTest.java +++ /dev/null @@ -1,191 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import java.lang.reflect.*; - -import junit.framework.TestCase; - -/** - * @author blangel - */ -public class RawMemberTest - extends TestCase -{ - - @SuppressWarnings("unused") - private static class ModifiersClass { - private static String test; - public final String finalField = "something"; - protected String protectedField; - private static String getTest() { - return test; - } - public final void finalMethod() { } - protected void protectedMethod() { } - } - - private static final Method toStringMethod; - private static final Method getRawMemberMethod; - private static final Method getTestMethod; - private static final Method finalMethodMethod; - private static final Method protectedMethodMethod; - private static final Field serialVersionUIDField; - private static final Field testField; - private static final Field finalFieldField; - private static final Field protectedFieldField; - private static final Constructor objectConstructor; - static { - try { - toStringMethod = Object.class.getDeclaredMethod("toString"); - getRawMemberMethod = RawMember.class.getDeclaredMethod("getRawMember"); - getTestMethod = ModifiersClass.class.getDeclaredMethod("getTest"); - finalMethodMethod = ModifiersClass.class.getDeclaredMethod("finalMethod"); - protectedMethodMethod = ModifiersClass.class.getDeclaredMethod("protectedMethod"); - objectConstructor = Object.class.getDeclaredConstructor(); - finalFieldField = ModifiersClass.class.getDeclaredField("finalField"); - protectedFieldField = ModifiersClass.class.getDeclaredField("protectedField"); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - try { - serialVersionUIDField = String.class.getDeclaredField("serialVersionUID"); - testField = ModifiersClass.class.getDeclaredField("test"); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - } - - public void testIsStatic() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(RawMember.class, null, null, null), getRawMemberMethod); - RawMethod rawStaticMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(Object.class, null, null, null), serialVersionUIDField); - RawField rawStaticField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertFalse(rawMethod.isStatic()); - assertFalse(rawMethod1.isStatic()); - - assertTrue(rawField.isStatic()); - assertTrue(rawStaticMethod.isStatic()); - assertTrue(rawStaticField.isStatic()); - } - - public void testIsFinal() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalMethodMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(Object.class, null, null, null), serialVersionUIDField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalFieldField); - RawField rawField2 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertFalse(rawMethod.isFinal()); - assertTrue(rawMethod1.isFinal()); - - assertTrue(rawField.isFinal()); - assertTrue(rawField1.isFinal()); - assertFalse(rawField2.isFinal()); - } - - public void testIsPrivate() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalMethodMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalFieldField); - - assertTrue(rawMethod.isPrivate()); - assertFalse(rawMethod1.isPrivate()); - - assertTrue(rawField.isPrivate()); - assertFalse(rawField1.isPrivate()); - } - - public void testIsProtected() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalMethodMethod); - RawMethod rawMethod2 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), protectedMethodMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalFieldField); - RawField rawField2 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), protectedFieldField); - - assertFalse(rawMethod.isProtected()); - assertFalse(rawMethod1.isProtected()); - assertTrue(rawMethod2.isProtected()); - - assertFalse(rawField.isProtected()); - assertFalse(rawField1.isProtected()); - assertTrue(rawField2.isProtected()); - } - - public void testIsPublic() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalMethodMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - RawField rawField1 = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), finalFieldField); - - assertFalse(rawMethod.isPublic()); - assertTrue(rawMethod1.isPublic()); - - assertFalse(rawField.isPublic()); - assertTrue(rawField1.isPublic()); - } - - public void testRawMemberHashCode() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(RawMember.class, null, null, null), getRawMemberMethod); - RawMethod rawStaticMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(Object.class, null, null, null), serialVersionUIDField); - RawField rawStaticField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertEquals(toStringMethod.hashCode(), rawMethod.hashCode()); - assertEquals(getRawMemberMethod.hashCode(), rawMethod1.hashCode()); - assertEquals(getTestMethod.hashCode(), rawStaticMethod.hashCode()); - - assertEquals(serialVersionUIDField.hashCode(), rawField.hashCode()); - assertEquals(testField.hashCode(), rawStaticField.hashCode()); - } - - public void testGetModifiers() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(RawMember.class, null, null, null), getRawMemberMethod); - RawMethod rawStaticMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(Object.class, null, null, null), serialVersionUIDField); - RawField rawStaticField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - RawConstructor rawConstructor = new RawConstructor(ResolvedObjectType.create(Object.class, null, null, null), - objectConstructor); - - assertEquals(toStringMethod.getModifiers(), rawMethod.getModifiers()); - assertEquals(getRawMemberMethod.getModifiers(), rawMethod1.getModifiers()); - assertEquals(getTestMethod.getModifiers(), rawStaticMethod.getModifiers()); - - assertEquals(serialVersionUIDField.getModifiers(), rawField.getModifiers()); - assertEquals(testField.getModifiers(), rawStaticField.getModifiers()); - - assertEquals(objectConstructor.hashCode(), rawConstructor.hashCode()); - } - - public void testRawMemberToString() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(RawMember.class, null, null, null), getRawMemberMethod); - RawMethod rawStaticMethod = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), getTestMethod); - - RawField rawField = new RawField(ResolvedObjectType.create(Object.class, null, null, null), serialVersionUIDField); - RawField rawStaticField = new RawField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), testField); - - assertEquals(toStringMethod.getName(), rawMethod.toString()); - assertEquals(getRawMemberMethod.getName(), rawMethod1.toString()); - assertEquals(getTestMethod.getName(), rawStaticMethod.toString()); - - assertEquals(serialVersionUIDField.getName(), rawField.toString()); - assertEquals(testField.getName(), rawStaticField.toString()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/RawMethodTest.java b/src/test/java/com/fasterxml/classmate/members/RawMethodTest.java deleted file mode 100644 index bd0145b..0000000 --- a/src/test/java/com/fasterxml/classmate/members/RawMethodTest.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; -import com.fasterxml.classmate.util.MethodKey; - -import org.junit.Test; - -import java.lang.reflect.Method; - -import static junit.framework.Assert.*; - -/** - * @author blangel - */ -@SuppressWarnings("deprecation") -public class RawMethodTest { - - private static class ModifiersClass { - private strictfp void strictfpMethod() { } - private native void nativeMethod(); - private synchronized void synchronizedMethod() { } - } - - private static final Method toStringMethod; - private static final Method getRawMemberMethod; - private static final Method strictfpMethodMethod; - private static final Method nativeMethodMethod; - private static final Method synchronizedMethodMethod; - static { - try { - toStringMethod = Object.class.getDeclaredMethod("toString"); - getRawMemberMethod = RawMember.class.getDeclaredMethod("getRawMember"); - strictfpMethodMethod = ModifiersClass.class.getDeclaredMethod("strictfpMethod"); - nativeMethodMethod = ModifiersClass.class.getDeclaredMethod("nativeMethod"); - synchronizedMethodMethod = ModifiersClass.class.getDeclaredMethod("synchronizedMethod"); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } - } - - @SuppressWarnings("unused") - @Test - public void init() { - try { - new RawMethod(null, null); - } catch (NullPointerException npe) { - fail(npe.getMessage()); - } - } - - @Test - public void isAbstract() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(RawMember.class, null, null, null), getRawMemberMethod); - - assertFalse(rawMethod.isAbstract()); - assertTrue(rawMethod1.isAbstract()); - } - - @Test - public void isStrict() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), strictfpMethodMethod); - - assertFalse(rawMethod.isStrict()); - assertTrue(rawMethod1.isStrict()); - } - - @Test - public void isNative() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), nativeMethodMethod); - - assertFalse(rawMethod.isNative()); - assertTrue(rawMethod1.isNative()); - } - - @Test - public void isSynchronized() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), synchronizedMethodMethod); - - assertFalse(rawMethod.isSynchronized()); - assertTrue(rawMethod1.isSynchronized()); - } - - @Test - public void createKey() { - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - MethodKey methodKey = rawMethod.createKey(); - assertNotNull(methodKey); - } - - @SuppressWarnings("unlikely-arg-type") - @Test - public void testEquals() { - // referential equality - RawMethod rawMethod = new RawMethod(ResolvedObjectType.create(Object.class, null, null, null), toStringMethod); - assertTrue(rawMethod.equals(rawMethod)); - - // null - assertFalse(rawMethod.equals(null)); - - // unequal class - assertFalse(rawMethod.equals("not a RawMethod")); - - // equality via delegation to Method - RawMethod rawMethod1 = new RawMethod(ResolvedObjectType.create(String.class, null, null, null), toStringMethod); - assertTrue(rawMethod.equals(rawMethod1)); - assertTrue(rawMethod1.equals(rawMethod)); - - RawMethod rawMethod2 = new RawMethod(ResolvedObjectType.create(String.class, null, null, null), null); - assertFalse(rawMethod.equals(rawMethod2)); - assertFalse(rawMethod2.equals(rawMethod)); - assertFalse(rawMethod1.equals(rawMethod2)); - assertFalse(rawMethod2.equals(rawMethod1)); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/members/ResolvedConstructorTest.java b/src/test/java/com/fasterxml/classmate/members/ResolvedConstructorTest.java deleted file mode 100644 index 211803d..0000000 --- a/src/test/java/com/fasterxml/classmate/members/ResolvedConstructorTest.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import java.lang.reflect.Constructor; - -import static org.junit.Assert.*; - -/** - * @author blangel - */ -public class ResolvedConstructorTest { - - private static final Constructor stringConstructor; - private static final Constructor objectConstructor; - static { - try { - stringConstructor = String.class.getDeclaredConstructor(); - objectConstructor = Object.class.getDeclaredConstructor(); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } - } - - @Test - public void init() { - try { - new ResolvedConstructor(null, null, null, null); - } catch (NullPointerException npe) { - fail(npe.getMessage()); - } - } - - @Test - public void getRawMember() { - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - assertSame(stringConstructor, resolvedConstructor.getRawMember()); - } - - @Test - public void getType() { - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - assertNull(resolvedConstructor.getType()); - } - - @Test - public void getArgumentType() { - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - - assertNull(resolvedConstructor.getArgumentType(Integer.MIN_VALUE)); - assertNull(resolvedConstructor.getArgumentType(-1)); - assertNull(resolvedConstructor.getArgumentType(0)); - assertNull(resolvedConstructor.getArgumentType(1)); - assertNull(resolvedConstructor.getArgumentType(Integer.MAX_VALUE)); - } - - @Test - public void resolvedConstructorHashCode() { - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - assertEquals(stringConstructor.getName().hashCode(), resolvedConstructor.hashCode()); - } - - @Test - public void equals() { - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - // referential equality - assertTrue(resolvedConstructor.equals(resolvedConstructor)); - - // null - assertFalse(resolvedConstructor.equals(null)); - - // different class - assertFalse(resolvedConstructor.equals("not a ResolvedConstructor")); - - // unequal constructors - ResolvedConstructor resolvedConstructor1 = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, objectConstructor, null); - assertFalse(resolvedConstructor.equals(resolvedConstructor1)); - assertFalse(resolvedConstructor1.equals(resolvedConstructor)); - - // equal constructors - ResolvedConstructor resolvedConstructor2 = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, objectConstructor, null); - ResolvedConstructor resolvedConstructor3 = new ResolvedConstructor(ResolvedObjectType.create(String.class, null, null, null), - null, stringConstructor, null); - - assertTrue(resolvedConstructor1.equals(resolvedConstructor2)); - assertTrue(resolvedConstructor2.equals(resolvedConstructor1)); - - assertTrue(resolvedConstructor.equals(resolvedConstructor3)); - assertTrue(resolvedConstructor3.equals(resolvedConstructor)); - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/ResolvedFieldTest.java b/src/test/java/com/fasterxml/classmate/members/ResolvedFieldTest.java deleted file mode 100644 index 34d6c5f..0000000 --- a/src/test/java/com/fasterxml/classmate/members/ResolvedFieldTest.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import java.lang.reflect.Field; - -import static junit.framework.Assert.assertFalse; -import static junit.framework.Assert.assertTrue; - -@SuppressWarnings("deprecation") -public class ResolvedFieldTest { - - @SuppressWarnings("unused") - private static class ModifiersClass { - private static String test; - private transient String transientField; - private volatile String volatileField; - } - - private static final Field serialVersionUIDField; - private static final Field testField; - private static final Field transientFieldField; - private static final Field volatileFieldField; - static { - try { - serialVersionUIDField = String.class.getDeclaredField("serialVersionUID"); - testField = ModifiersClass.class.getDeclaredField("test"); - transientFieldField = ModifiersClass.class.getDeclaredField("transientField"); - volatileFieldField = ModifiersClass.class.getDeclaredField("volatileField"); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - } - - @Test - public void isTransient() { - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, transientFieldField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - - assertTrue(rawField.isTransient()); - assertFalse(rawField1.isTransient()); - } - - @Test - public void isVolatile() { - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, volatileFieldField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - - assertTrue(rawField.isVolatile()); - assertFalse(rawField1.isVolatile()); - } - - @Test - public void equals() { - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(String.class, null, null, null), null, serialVersionUIDField, null); - // referential equality - assertTrue(resolvedField.equals(resolvedField)); - - // null test - assertFalse(resolvedField.equals(null)); - - // invalid class - assertFalse(resolvedField.equals("not a ResolvedField")); - - // test inequality of field - ResolvedField resolvedField1 = new ResolvedField(ResolvedObjectType.create(String.class, null, null, null), null, testField, null); - assertFalse(resolvedField.equals(resolvedField1)); - assertFalse(resolvedField1.equals(resolvedField)); - - // test equality of field - ResolvedField resolvedField2 = new ResolvedField(ResolvedObjectType.create(String.class, null, null, null), null, testField, null); - ResolvedField resolvedField3 = new ResolvedField(ResolvedObjectType.create(String.class, null, null, null), null, serialVersionUIDField, null); - - assertTrue(resolvedField.equals(resolvedField3)); - assertTrue(resolvedField3.equals(resolvedField)); - - assertTrue(resolvedField1.equals(resolvedField2)); - assertTrue(resolvedField2.equals(resolvedField1)); - - } - -} diff --git a/src/test/java/com/fasterxml/classmate/members/ResolvedMemberTest.java b/src/test/java/com/fasterxml/classmate/members/ResolvedMemberTest.java deleted file mode 100644 index 3555fc9..0000000 --- a/src/test/java/com/fasterxml/classmate/members/ResolvedMemberTest.java +++ /dev/null @@ -1,304 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.Annotations; -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import java.lang.annotation.Annotation; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.reflect.Constructor; -import java.lang.reflect.Field; -import java.lang.reflect.Method; - -import static junit.framework.Assert.*; - -/** - * @author blangel - */ -@SuppressWarnings("deprecation") -public class ResolvedMemberTest { - - @Retention(RetentionPolicy.RUNTIME) - private static @interface Decorate { } - - @SuppressWarnings("unused") - private static class HasStaticFieldMethod { - private static String test; - private static String getTest() { - return test; - } - } - - @SuppressWarnings("unused") - private static class ModifiersClass { - private static String test; - public final String finalField = "something"; - protected String protectedField; - private static String getTest() { - return test; - } - public final void finalMethod() { } - protected void protectedMethod() { } - } - - private static final Method toStringMethod; - private static final Method getRawMemberMethod; - private static final Method getTestMethod; - private static final Method finalMethodMethod; - private static final Method protectedMethodMethod; - private static final Field serialVersionUIDField; - private static final Field testField; - private static final Field finalFieldField; - private static final Field protectedFieldField; - private static final Constructor objectConstructor; - static { - try { - toStringMethod = Object.class.getDeclaredMethod("toString"); - getRawMemberMethod = RawMember.class.getDeclaredMethod("getRawMember"); - finalMethodMethod = ModifiersClass.class.getDeclaredMethod("finalMethod"); - protectedMethodMethod = ModifiersClass.class.getDeclaredMethod("protectedMethod"); - getTestMethod = HasStaticFieldMethod.class.getDeclaredMethod("getTest"); - finalFieldField = ModifiersClass.class.getDeclaredField("finalField"); - protectedFieldField = ModifiersClass.class.getDeclaredField("protectedField"); - objectConstructor = Object.class.getDeclaredConstructor(); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - try { - serialVersionUIDField = String.class.getDeclaredField("serialVersionUID"); - testField = HasStaticFieldMethod.class.getDeclaredField("test"); - } catch (NoSuchFieldException nsfe) { - throw new AssertionError(nsfe); - } - } - - @Test - public void isFinal() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalMethodMethod, null, null); - - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), null, serialVersionUIDField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalFieldField, null); - ResolvedField rawField2 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - - assertFalse(rawMethod.isFinal()); - assertTrue(rawMethod1.isFinal()); - - assertTrue(rawField.isFinal()); - assertTrue(rawField1.isFinal()); - assertFalse(rawField2.isFinal()); - } - - @Test - public void isPrivate() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, getTestMethod, null, null); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalMethodMethod, null, null); - - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalFieldField, null); - - assertTrue(rawMethod.isPrivate()); - assertFalse(rawMethod1.isPrivate()); - - assertTrue(rawField.isPrivate()); - assertFalse(rawField1.isPrivate()); - } - - @Test - public void isProtected() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, getTestMethod, null, null); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalMethodMethod, null, null); - ResolvedMethod rawMethod2 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, protectedMethodMethod, null, null); - - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalFieldField, null); - ResolvedField rawField2 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, protectedFieldField, null); - - assertFalse(rawMethod.isProtected()); - assertFalse(rawMethod1.isProtected()); - assertTrue(rawMethod2.isProtected()); - - assertFalse(rawField.isProtected()); - assertFalse(rawField1.isProtected()); - assertTrue(rawField2.isProtected()); - } - - @Test - public void isPublic() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, getTestMethod, null, null); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalMethodMethod, null, null); - - ResolvedField rawField = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, testField, null); - ResolvedField rawField1 = new ResolvedField(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, finalFieldField, null); - - assertFalse(rawMethod.isPublic()); - assertTrue(rawMethod1.isPublic()); - - assertFalse(rawField.isPublic()); - assertTrue(rawField1.isPublic()); - } - - @Test - public void applyOverride() throws NoSuchMethodException { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - Annotations annotations = new Annotations(); - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(String.class, null, null, null), - annotations, toStringMethod, string, null); - Method thisMethod = ResolvedMemberTest.class.getDeclaredMethod("applyOverride"); - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - assertNull(annotations.get(Test.class)); - resolvedMethod.applyOverride(testAnnotation); - assertNotNull(annotations.get(Test.class)); - } - - @Test @Decorate - public void applyOverrides() throws NoSuchMethodException { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - Annotations annotations = new Annotations(); - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(String.class, null, null, null), - annotations, toStringMethod, string, null); - Method thisMethod = ResolvedMemberTest.class.getDeclaredMethod("applyOverrides"); - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - Annotation decorateAnnotation = thisMethod.getAnnotation(Decorate.class); - assertNull(annotations.get(Test.class)); - assertNull(annotations.get(Decorate.class)); - Annotations addAll = new Annotations(); - addAll.add(testAnnotation); - addAll.add(decorateAnnotation); - resolvedMethod.applyOverrides(addAll); - assertNotNull(annotations.get(Test.class)); - assertNotNull(annotations.get(Decorate.class)); - } - - @Test - public void applyDefault() throws NoSuchMethodException { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - Annotations annotations = new Annotations(); - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(String.class, null, null, null), - annotations, toStringMethod, string, null); - Method thisMethod = ResolvedMemberTest.class.getDeclaredMethod("applyDefault"); - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - assertNull(annotations.get(Test.class)); - resolvedMethod.applyDefault(testAnnotation); - assertNotNull(annotations.get(Test.class)); - // get different Test annotation and try to add - Method otherMethod = ResolvedMemberTest.class.getDeclaredMethod("applyOverrides"); - Annotation otherTestAnnotation = otherMethod.getAnnotation(Test.class); - assertNotSame(testAnnotation, otherTestAnnotation); - resolvedMethod.applyDefault(otherTestAnnotation); - assertSame(testAnnotation, annotations.get(Test.class)); - } - - @Test - public void isStatic() { - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), null, getRawMemberMethod, null, null); - ResolvedMethod resolvedStaticMethod = new ResolvedMethod(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, getTestMethod, null, null); - - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), null, serialVersionUIDField, null); - ResolvedField resolvedStaticField = new ResolvedField(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, testField, null); - - assertFalse(resolvedMethod.isStatic()); - assertFalse(resolvedMethod1.isStatic()); - - assertTrue(resolvedField.isStatic()); - assertTrue(resolvedStaticMethod.isStatic()); - assertTrue(resolvedStaticField.isStatic()); - } - - @Test - public void resolvedMemberHashCode() { - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), null, getRawMemberMethod, null, null); - ResolvedMethod resolvedStaticMethod = new ResolvedMethod(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, getTestMethod, null, null); - - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), null, serialVersionUIDField, null); - ResolvedField resolvedStaticField = new ResolvedField(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, testField, null); - - ResolvedConstructor resolvedConstructor = new ResolvedConstructor(ResolvedObjectType.create(Object.class, null, null, null), null, objectConstructor, null); - - assertEquals(toStringMethod.hashCode(), resolvedMethod.hashCode()); - assertEquals(getRawMemberMethod.hashCode(), resolvedMethod1.hashCode()); - assertEquals(getTestMethod.hashCode(), resolvedStaticMethod.hashCode()); - - assertEquals(serialVersionUIDField.hashCode(), resolvedField.hashCode()); - assertEquals(testField.hashCode(), resolvedStaticField.hashCode()); - - assertEquals(objectConstructor.hashCode(), resolvedConstructor.hashCode()); - } - - @Test - public void resolvedMemberToString() { - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), null, getRawMemberMethod, null, null); - ResolvedMethod resolvedStaticMethod = new ResolvedMethod(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, getTestMethod, null, null); - - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), null, serialVersionUIDField, null); - ResolvedField resolvedStaticField = new ResolvedField(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, testField, null); - - assertEquals(toStringMethod.getName(), resolvedMethod.toString()); - assertEquals(getRawMemberMethod.getName(), resolvedMethod1.toString()); - assertEquals(getTestMethod.getName(), resolvedStaticMethod.toString()); - - assertEquals(serialVersionUIDField.getName(), resolvedField.toString()); - assertEquals(testField.getName(), resolvedStaticField.toString()); - } - - @Test - public void getModifiers() { - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), null, getRawMemberMethod, null, null); - ResolvedMethod resolvedStaticMethod = new ResolvedMethod(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, getTestMethod, null, null); - - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), null, serialVersionUIDField, null); - ResolvedField resolvedStaticField = new ResolvedField(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), null, testField, null); - - assertEquals(toStringMethod.getModifiers(), resolvedMethod.getModifiers()); - assertEquals(getRawMemberMethod.getModifiers(), resolvedMethod1.getModifiers()); - assertEquals(getTestMethod.getModifiers(), resolvedStaticMethod.getModifiers()); - - assertEquals(serialVersionUIDField.getModifiers(), resolvedField.getModifiers()); - assertEquals(testField.getModifiers(), resolvedStaticField.getModifiers()); - } - - @Test - public void get() throws NoSuchMethodException { - // test NPE first - try { - ResolvedMethod npeMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - npeMethod.get(Test.class); - fail("Expecting a NullPointerException; haven't passed in an Annotations object reference to the constructor."); - } catch (NullPointerException npe) { - // expected - } - - Annotations annotations = new Annotations(); - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), annotations, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), annotations, getRawMemberMethod, null, null); - ResolvedMethod resolvedStaticMethod = new ResolvedMethod(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), annotations, getTestMethod, null, null); - - ResolvedField resolvedField = new ResolvedField(ResolvedObjectType.create(Object.class, null, null, null), annotations, serialVersionUIDField, null); - ResolvedField resolvedStaticField = new ResolvedField(ResolvedObjectType.create(HasStaticFieldMethod.class, null, null, null), annotations, testField, null); - - assertNull(resolvedMethod.get(Test.class)); - assertNull(resolvedMethod1.get(Test.class)); - assertNull(resolvedStaticMethod.get(Test.class)); - assertNull(resolvedField.get(Test.class)); - assertNull(resolvedStaticField.get(Test.class)); - - Method thisMethod = ResolvedMemberTest.class.getDeclaredMethod("get"); - Annotation testAnnotation = thisMethod.getAnnotation(Test.class); - - annotations.add(testAnnotation); - - assertSame(testAnnotation, resolvedMethod.get(Test.class)); - assertSame(testAnnotation, resolvedMethod1.get(Test.class)); - assertSame(testAnnotation, resolvedStaticMethod.get(Test.class)); - assertSame(testAnnotation, resolvedField.get(Test.class)); - assertSame(testAnnotation, resolvedStaticField.get(Test.class)); - } -} diff --git a/src/test/java/com/fasterxml/classmate/members/ResolvedMethodTest.java b/src/test/java/com/fasterxml/classmate/members/ResolvedMethodTest.java deleted file mode 100644 index cd3e726..0000000 --- a/src/test/java/com/fasterxml/classmate/members/ResolvedMethodTest.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.fasterxml.classmate.members; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.types.ResolvedObjectType; - -import org.junit.Test; - -import java.lang.reflect.Method; - -import static junit.framework.Assert.*; - -/** - * @author blangel - */ -@SuppressWarnings("deprecation") -public class ResolvedMethodTest { - private static abstract class ModifiersClass { - private strictfp void strictfpMethod() { } - private native void nativeMethod(); - protected abstract void abstractMethod(); - private synchronized void synchronizedMethod() { } - } - - private static final Method toStringMethod; - private static final Method abstractMethodMethod; - @SuppressWarnings("unused") - private static final Method getRawMemberMethod; - private static final Method strictfpMethodMethod; - private static final Method nativeMethodMethod; - private static final Method synchronizedMethodMethod; - static { - try { - toStringMethod = Object.class.getDeclaredMethod("toString"); - getRawMemberMethod = RawMember.class.getDeclaredMethod("getRawMember"); - strictfpMethodMethod = ModifiersClass.class.getDeclaredMethod("strictfpMethod"); - nativeMethodMethod = ModifiersClass.class.getDeclaredMethod("nativeMethod"); - synchronizedMethodMethod = ModifiersClass.class.getDeclaredMethod("synchronizedMethod"); - abstractMethodMethod = ModifiersClass.class.getDeclaredMethod("abstractMethod"); - } catch (NoSuchMethodException nsme) { - throw new AssertionError(nsme); - } - } - - @Test - public void isAbstract() { - ResolvedMethod resolvedMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(ResolvedObjectType.create(RawMember.class, null, null, null), null, abstractMethodMethod, null, null); - - assertFalse(resolvedMethod.isAbstract()); - assertTrue(resolvedMethod1.isAbstract()); - } - - @Test - public void isStrict() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, ResolvedType.NO_TYPES); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, strictfpMethodMethod, null, ResolvedType.NO_TYPES); - - assertFalse(rawMethod.isStrict()); - assertTrue(rawMethod1.isStrict()); - } - - @Test - public void isNative() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, ResolvedType.NO_TYPES); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, nativeMethodMethod, null, ResolvedType.NO_TYPES); - - assertFalse(rawMethod.isNative()); - assertTrue(rawMethod1.isNative()); - } - - @Test - public void isSynchronized() { - ResolvedMethod rawMethod = new ResolvedMethod(ResolvedObjectType.create(Object.class, null, null, null), null, toStringMethod, null, ResolvedType.NO_TYPES); - ResolvedMethod rawMethod1 = new ResolvedMethod(ResolvedObjectType.create(ModifiersClass.class, null, null, null), null, synchronizedMethodMethod, null, ResolvedType.NO_TYPES); - - assertFalse(rawMethod.isSynchronized()); - assertTrue(rawMethod1.isSynchronized()); - } - - @Test - public void getReturnType() { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - ResolvedMethod resolvedMethod = new ResolvedMethod(string, null, toStringMethod, string, null); - assertEquals(string, resolvedMethod.getReturnType()); - } - - @Test - public void getType() { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - ResolvedMethod resolvedMethod = new ResolvedMethod(string, null, toStringMethod, string, null); - assertEquals(string, resolvedMethod.getType()); - assertEquals(resolvedMethod.getReturnType(), resolvedMethod.getType()); - } - - @Test - public void getArgumentType() { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - ResolvedMethod resolvedMethod = new ResolvedMethod(string, null, toStringMethod, string, null); - assertNull(resolvedMethod.getArgumentType(-1)); - assertNull(resolvedMethod.getArgumentType(0)); - assertNull(resolvedMethod.getArgumentType(1)); - } - - @Test - public void equals() { - ResolvedObjectType string = ResolvedObjectType.create(String.class, null, null, null); - ResolvedMethod resolvedMethod = new ResolvedMethod(string, null, toStringMethod, string, null); - - // test referential equals - assertTrue(resolvedMethod.equals(resolvedMethod)); - - // test null - assertFalse(resolvedMethod.equals(null)); - - // test unequal class - assertFalse(resolvedMethod.equals("not a ResolvedMethod")); - - ResolvedObjectType object = ResolvedObjectType.create(Object.class, null, null, null); - ResolvedMethod resolvedMethod1 = new ResolvedMethod(object, null, toStringMethod, string, null); - assertTrue(resolvedMethod.equals(resolvedMethod1)); - - ResolvedMethod resolvedMethod2 = new ResolvedMethod(object, null, null, string, null); - assertFalse(resolvedMethod.equals(resolvedMethod2)); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedArrayType51Test.java b/src/test/java/com/fasterxml/classmate/types/ResolvedArrayType51Test.java deleted file mode 100644 index 2ae1cc6..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedArrayType51Test.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.fasterxml.classmate.types; - -import com.fasterxml.classmate.BaseTest; -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeResolver; - -public class ResolvedArrayType51Test extends BaseTest -{ - protected final TypeResolver RESOLVER = new TypeResolver(); - - // [classmate#51]: parent type for Array classes - public void testResolvingRawType() { - ResolvedType rt = RESOLVER.resolve(Long[].class); - ResolvedType parent = rt.getParentClass(); - assertNotNull(parent); - assertEquals(Object.class, parent.getErasedType()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedArrayTypeTest.java b/src/test/java/com/fasterxml/classmate/types/ResolvedArrayTypeTest.java deleted file mode 100644 index efb8384..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedArrayTypeTest.java +++ /dev/null @@ -1,186 +0,0 @@ -package com.fasterxml.classmate.types; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; - -import org.junit.Test; - -import java.util.Collection; - -import static org.junit.Assert.*; - -/** - * User: blangel - */ -public class ResolvedArrayTypeTest { - - @Test - public void getArrayElementType() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertNull(arrayType.getArrayElementType()); - - ResolvedArrayType arrayType1 = new ResolvedArrayType(Object.class, null, arrayType); - assertEquals(arrayType, arrayType1.getArrayElementType()); - } - - @Test - public void canCreateSubtypes() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertFalse(arrayType.canCreateSubtypes()); - } - - @Test - public void getParentClass() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - // With [classmate#51]: - assertNotNull(arrayType.getParentClass()); - assertEquals(Object.class, arrayType.getParentClass().getErasedType()); - } - - @Test - public void getSelfReferencedType() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertNull(arrayType.getSelfReferencedType()); - } - - @Test - public void getImplementedInterfaces() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertEquals(0, arrayType.getImplementedInterfaces().size()); - - arrayType = new ResolvedArrayType(Collection.class, TypeBindings.create(String.class, (ResolvedType[]) null), ResolvedObjectType.create(String.class, null, null, null)); - assertEquals(0, arrayType.getImplementedInterfaces().size()); - } - - @Test - public void isAbstract() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertFalse(arrayType.isAbstract()); - } - - @Test - public void isArray() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertTrue(arrayType.isArray()); - } - - @Test - public void isPrimitive() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertFalse(arrayType.isPrimitive()); - } - - @Test - public void isInterface() { - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, null); - assertFalse(arrayType.isInterface()); - } - - @Test - public void appendSignature() { - ResolvedArrayType npeType = new ResolvedArrayType(Object.class, null, null); - try { - npeType.appendSignature(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - try { - npeType.appendSignature(new StringBuilder()); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, ResolvedObjectType.create(Object.class, null, null, null)); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = arrayType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("[Ljava/lang/Object;", returned.toString()); - buffer = new StringBuilder("Existing "); - returned = arrayType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing [Ljava/lang/Object;", returned.toString()); - } - - @Test - public void appendErasedSignature() { - ResolvedArrayType npeType = new ResolvedArrayType(Object.class, null, null); - try { - npeType.appendErasedSignature(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - try { - npeType.appendErasedSignature(new StringBuilder()); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, ResolvedObjectType.create(Object.class, null, null, null)); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = arrayType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("[Ljava/lang/Object;", returned.toString()); - buffer = new StringBuilder("Existing "); - returned = arrayType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing [Ljava/lang/Object;", returned.toString()); - } - - @Test - public void appendBriefDescription() { - ResolvedArrayType npeType = new ResolvedArrayType(Object.class, null, null); - try { - npeType.appendBriefDescription(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - try { - npeType.appendBriefDescription(new StringBuilder()); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, ResolvedObjectType.create(Object.class, null, null, null)); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = arrayType.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("java.lang.Object[]", returned.toString()); - buffer = new StringBuilder("Existing "); - returned = arrayType.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("Existing java.lang.Object[]", returned.toString()); - } - - @Test - public void appendFullDescription() { - ResolvedArrayType npeType = new ResolvedArrayType(Object.class, null, null); - try { - npeType.appendFullDescription(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - try { - npeType.appendFullDescription(new StringBuilder()); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - - ResolvedArrayType arrayType = new ResolvedArrayType(Object.class, null, ResolvedObjectType.create(Object.class, null, null, null)); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = arrayType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("java.lang.Object[]", returned.toString()); - buffer = new StringBuilder("Existing "); - returned = arrayType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("Existing java.lang.Object[]", returned.toString()); - } -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedInterfaceTypeTest.java b/src/test/java/com/fasterxml/classmate/types/ResolvedInterfaceTypeTest.java deleted file mode 100644 index 7aa1d22..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedInterfaceTypeTest.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.fasterxml.classmate.types; - -import com.fasterxml.classmate.ResolvedType; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * @author blangel - */ -public class ResolvedInterfaceTypeTest { - - private static interface Parent { } - - private static interface Child extends Parent { - @SuppressWarnings("unused") - static final String test = "test"; - void getTest(); - } - - protected static interface GrandChild extends Child { } - - @Test - public void getParentClass() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Comparable.class, null, null); - assertNull(interfaceType.getParentClass()); - } - - @Test - public void getImplementedInterfaces() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Parent.class, null, null); - assertEquals(0, interfaceType.getImplementedInterfaces().size()); - - interfaceType = new ResolvedInterfaceType(Parent.class, null, new ResolvedType[] { }); - assertEquals(0, interfaceType.getImplementedInterfaces().size()); - - ResolvedInterfaceType childInterfaceType = new ResolvedInterfaceType(Child.class, null, new ResolvedType[] { interfaceType }); - assertEquals(1, childInterfaceType.getImplementedInterfaces().size()); - assertEquals(Parent.class, childInterfaceType.getImplementedInterfaces().get(0).getErasedType()); - } - - @Test - public void getArrayElementType() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Comparable.class, null, null); - assertNull(interfaceType.getArrayElementType()); - } - - @Test - public void isArray() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Comparable.class, null, null); - assertFalse(interfaceType.isArray()); - } - - @Test - public void isPrimitive() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Comparable.class, null, null); - assertFalse(interfaceType.isPrimitive()); - } - - @Test - public void getStaticFields() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Parent.class, null, null); - assertEquals(0, interfaceType.getStaticFields().size()); - assertEquals(0, interfaceType.getStaticFields().size()); // cached copy should be the same - - interfaceType = new ResolvedInterfaceType(Child.class, null, null); - assertEquals(1, interfaceType.getStaticFields().size()); - assertEquals(1, interfaceType.getStaticFields().size()); // cached copy should be the same - } - - @Test - public void getMemberMethods() { - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Parent.class, null, null); - assertEquals(0, interfaceType.getMemberMethods().size()); - assertEquals(0, interfaceType.getMemberMethods().size()); // cached copy should be the same - - interfaceType = new ResolvedInterfaceType(Child.class, null, null); - assertEquals(1, interfaceType.getMemberMethods().size()); - assertEquals(1, interfaceType.getMemberMethods().size()); // cached copy should be the same - } - - @Test - public void appendFullDescription() { - - ResolvedInterfaceType interfaceType = new ResolvedInterfaceType(Parent.class, null, null); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = interfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent", buffer.toString()); - buffer = new StringBuilder("Interface = "); // existing data - returned = interfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("Interface = com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent", buffer.toString()); - - ResolvedInterfaceType childInterfaceType = new ResolvedInterfaceType(Child.class, null, new ResolvedType[] { interfaceType }); - buffer = new StringBuilder(); - returned = childInterfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Child extends com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent", buffer.toString()); - buffer = new StringBuilder("Interface = "); // existing data - returned = childInterfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("Interface = com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Child extends com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent", buffer.toString()); - - ResolvedInterfaceType grandChildInterfaceType = new ResolvedInterfaceType(GrandChild.class, null, new ResolvedType[] { interfaceType, childInterfaceType }); - buffer = new StringBuilder(); - returned = grandChildInterfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$GrandChild extends com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent,com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Child", buffer.toString()); - buffer = new StringBuilder("Interface = "); // existing data - returned = grandChildInterfaceType.appendFullDescription(buffer); - assertSame(returned, buffer); - assertEquals("Interface = com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$GrandChild extends com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Parent,com.fasterxml.classmate.types.ResolvedInterfaceTypeTest$Child", buffer.toString()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedObjectTypeTest.java b/src/test/java/com/fasterxml/classmate/types/ResolvedObjectTypeTest.java deleted file mode 100644 index 2cc3b52..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedObjectTypeTest.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.fasterxml.classmate.types; - -import java.util.*; - -import com.fasterxml.classmate.BaseTest; -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.TypeBindings; -import com.fasterxml.classmate.members.RawConstructor; -import com.fasterxml.classmate.members.RawField; - -import org.junit.Test; - -/** - * @author blangel - */ -public class ResolvedObjectTypeTest extends BaseTest -{ - private static class NoExplicitConstructor { } - - private static abstract class AbstractClass { } - - private static interface NoConstructor { } - - @Test - public void testConstructors() - { - ResolvedObjectType resolvedObjectType = ResolvedObjectType.create(String.class, null, null, (List) null); - assertNotNull(resolvedObjectType._superInterfaces); - - resolvedObjectType = ResolvedObjectType.create(String.class, null, null, Collections.emptyList()); - assertNotNull(resolvedObjectType._superInterfaces); - - List types = new ArrayList(); - types.add(resolvedObjectType); - ResolvedObjectType resolvedObjectType1 = ResolvedObjectType.create(String.class, null, null, types); - assertNotNull(resolvedObjectType1._superInterfaces); - assertSame(resolvedObjectType, resolvedObjectType1._superInterfaces[0]); - } - - @Test - public void testGetArrayElementType() { - ResolvedObjectType resolvedObjectType = ResolvedObjectType.create(String.class, null, null, (List) null); - assertNull(resolvedObjectType.getArrayElementType()); - - ResolvedObjectType resolvedObjectType1 = ResolvedObjectType.create(String.class, TypeBindings.emptyBindings(), resolvedObjectType, - Collections.emptyList()); - assertNull(resolvedObjectType1.getArrayElementType()); - } - - @Test - public void testGetStaticFields() { - ResolvedObjectType objectType = ResolvedObjectType.create(Object.class, null, null, Collections.emptyList()); - List staticFields = objectType.getStaticFields(); - assertEquals(0, staticFields.size()); - - ResolvedObjectType stringType = ResolvedObjectType.create(String.class, null, objectType, Collections.emptyList()); - staticFields = stringType.getStaticFields(); - // 13-May-2013, tatu: Looks like Java 7 will add fourth, "HASHING_SEED"? - - // serialVersionUID & serialPersistentFields & CASE_INSENSITIVE_ORDER - int count = staticFields.size(); - - switch (count) { - case 3: // Java 8 - matchRawMembers(staticFields, new String[] { - "serialVersionUID", "serialPersistentFields", "CASE_INSENSITIVE_ORDER" - }); - break; - case 6: // Java 9 - matchRawMembers(staticFields, new String[] { - "serialVersionUID", "serialPersistentFields", "CASE_INSENSITIVE_ORDER", - "COMPACT_STRINGS", "LATIN1", "UTF16" - }); - break; - case 7: // Java 17 - matchRawMembers(staticFields, new String[] { - "serialVersionUID", "serialPersistentFields", "REPL", "CASE_INSENSITIVE_ORDER", - "COMPACT_STRINGS", "LATIN1", "UTF16" - }); - break; - default: - fail("Expected 4 (1.7/1.8), 7 (Java 9/11/14) or 7 (17+) static fields, got "+count+"; fields: "+staticFields); - } - } - - @Test - public void testGetConstructors() { - ResolvedObjectType noExplicitConstructorType = ResolvedObjectType.create(NoExplicitConstructor.class, null, null, Collections.emptyList()); - List constructors = noExplicitConstructorType.getConstructors(); - - assertEquals(1, constructors.size()); - - // abstract classes have constructors...they just can't be instantiated except via a sub-class instantiation - ResolvedObjectType abstractClass = ResolvedObjectType.create(AbstractClass.class, null, null, Collections.emptyList()); - constructors = abstractClass.getConstructors(); - assertEquals(1, constructors.size()); - - ResolvedObjectType primitiveType = ResolvedObjectType.create(boolean.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(void.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(int.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(long.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(short.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(double.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(float.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - primitiveType = ResolvedObjectType.create(byte.class, null, null, Collections.emptyList()); - constructors = primitiveType.getConstructors(); - assertEquals(0, constructors.size()); - - ResolvedObjectType arrayType = ResolvedObjectType.create(Object[].class, null, null, Collections.emptyList()); - constructors = arrayType.getConstructors(); - assertEquals(0, constructors.size()); - - ResolvedObjectType interfaceClass = ResolvedObjectType.create(NoConstructor.class, null, null, Collections.emptyList()); - constructors = interfaceClass.getConstructors(); - assertEquals(0, constructors.size()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedPrimitiveTypeTest.java b/src/test/java/com/fasterxml/classmate/types/ResolvedPrimitiveTypeTest.java deleted file mode 100644 index 5f8090c..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedPrimitiveTypeTest.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.fasterxml.classmate.types; - -import org.junit.Test; - -import static junit.framework.Assert.*; - -@SuppressWarnings("deprecation") -public class ResolvedPrimitiveTypeTest { - - private static interface Callback { - void test(ResolvedPrimitiveType primitiveType); - } - - @Test - public void canCreateSubtypes() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertFalse(primitiveType.canCreateSubtypes()); - } - }); - } - - @Test - public void getSelfReferencedType() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertNull(primitiveType.getSelfReferencedType()); - } - }); - } - - @Test - public void getParentClass() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertNull(primitiveType.getParentClass()); - } - }); - } - - @Test - public void getArrayElementType() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertNull(primitiveType.getArrayElementType()); - } - }); - } - - @Test - public void isInterface() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertFalse(primitiveType.isInterface()); - } - }); - } - - @Test - public void isAbstract() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertFalse(primitiveType.isAbstract()); - } - }); - } - - @Test - public void isArray() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertFalse(primitiveType.isArray()); - } - }); - } - - @Test - public void getImplementedInterfaces() { - runAgainstAllTypes(new Callback() { - @Override public void test(ResolvedPrimitiveType primitiveType) { - assertEquals(0, primitiveType.getImplementedInterfaces().size()); - } - }); - } - - @Test - public void appendSignature() { - ResolvedPrimitiveType primitiveType = new ResolvedPrimitiveType(boolean.class, 'Z', "boolean"); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = primitiveType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Z", returned.toString()); - buffer = new StringBuilder("something already "); - returned = primitiveType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("something already Z", returned.toString()); - } - - @Test - public void appendErasedSignature() { - ResolvedPrimitiveType primitiveType = new ResolvedPrimitiveType(boolean.class, 'Z', "boolean"); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = primitiveType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Z", returned.toString()); - buffer = new StringBuilder("something already "); - returned = primitiveType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("something already Z", returned.toString()); - } - - @Test - public void appendFullDescription() { - ResolvedPrimitiveType primitiveType = new ResolvedPrimitiveType(boolean.class, 'Z', "boolean"); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = primitiveType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("boolean", returned.toString()); - buffer = new StringBuilder("something already "); - returned = primitiveType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("something already boolean", returned.toString()); - } - - @Test - public void appendBriefDescription() { - ResolvedPrimitiveType primitiveType = new ResolvedPrimitiveType(boolean.class, 'Z', "boolean"); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = primitiveType.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("boolean", returned.toString()); - buffer = new StringBuilder("something already "); - returned = primitiveType.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("something already boolean", returned.toString()); - } - - private void runAgainstAllTypes(Callback callback) { - ResolvedPrimitiveType primitiveType = new ResolvedPrimitiveType(boolean.class, 'Z', "boolean"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Byte.TYPE, 'B', "byte"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Short.TYPE, 'S', "short"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Character.TYPE, 'C', "char"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Integer.TYPE, 'I', "int"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Long.TYPE, 'J', "long"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Float.TYPE, 'F', "float"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Double.TYPE, 'D', "double"); - callback.test(primitiveType); - primitiveType = new ResolvedPrimitiveType(Void.TYPE, 'V', "void"); - callback.test(primitiveType); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/types/ResolvedRecursiveTypeTest.java b/src/test/java/com/fasterxml/classmate/types/ResolvedRecursiveTypeTest.java deleted file mode 100644 index 3865272..0000000 --- a/src/test/java/com/fasterxml/classmate/types/ResolvedRecursiveTypeTest.java +++ /dev/null @@ -1,218 +0,0 @@ -package com.fasterxml.classmate.types; - -import org.junit.Test; - -import static junit.framework.Assert.*; - -@SuppressWarnings("deprecation") -public class ResolvedRecursiveTypeTest { - - private static abstract class AbstractClass { } - - @SuppressWarnings("unused") - private static class Mock { - private static final String staticMemberField = "test"; - private final String memberField = "test"; - - private static void staticMethod() { } - private void memberMethod() { } - } - - @Test - public void canCreateSubtypes() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.canCreateSubtypes(); - fail("Expected a NullPointerException; _referencedType is not yet set."); - } catch (NullPointerException npe) { - // expected : TODO - for now? likely shouldn't be expected - } - - recursiveType.setReference(ResolvedObjectType.create(Object.class, null, null,null)); - assertTrue(recursiveType.canCreateSubtypes()); - - // TODO - currently fails for final-classes, likely should not, need to ask cowtowncoder about intent of canCreateSubtypes() -// recursiveType = new ResolvedRecursiveType(String.class, null); -// recursiveType.setReference(ResolvedObjectType.create(String.class, null, null, (ResolvedType[]) null)); -// assertFalse(recursiveType.canCreateSubtypes()); // String is final - } - - @Test - public void setReference() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - recursiveType.setReference(ResolvedObjectType.create(Object.class, null, null, null)); - try { - recursiveType.setReference(ResolvedObjectType.create(Object.class, null, null, null)); - fail("Expecting an IllegalStateException; reference was already set"); - } catch (IllegalStateException ise) { - // expected - } - - recursiveType = new ResolvedRecursiveType(String.class, null); - recursiveType.setReference(null); // can continuously set to null - recursiveType.setReference(null); - recursiveType.setReference(ResolvedObjectType.create(Object.class, null, null, null)); - try { - recursiveType.setReference(ResolvedObjectType.create(Object.class, null, null, null)); - fail("Expecting an IllegalStateException; reference was already set"); - } catch (IllegalStateException ise) { - // expected - } - } - - @Test - public void getImplementedInterfaces() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertEquals(0, recursiveType.getImplementedInterfaces().size()); - } - - @Test - public void getArrayElementType() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertNull(recursiveType.getArrayElementType()); - } - - @Test - public void isInterface() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertFalse(recursiveType.isInterface()); - recursiveType = new ResolvedRecursiveType(Comparable.class, null); - assertTrue(recursiveType.isInterface()); - } - - @Test - public void isAbstract() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertFalse(recursiveType.isAbstract()); - recursiveType = new ResolvedRecursiveType(AbstractClass.class, null); - assertTrue(recursiveType.isAbstract()); - } - - @Test - public void isArray() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertFalse(recursiveType.isArray()); - recursiveType = new ResolvedRecursiveType(String[].class, null); - assertTrue(recursiveType.isArray()); - recursiveType = new ResolvedRecursiveType(Object[].class, null); - assertTrue(recursiveType.isArray()); - recursiveType = new ResolvedRecursiveType(boolean[].class, null); - assertTrue(recursiveType.isArray()); - } - - @Test - public void isPrimitive() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - assertFalse(recursiveType.isPrimitive()); - recursiveType = new ResolvedRecursiveType(boolean.class, null); - assertFalse(recursiveType.isPrimitive()); // is a primitive but passing boolean is incorrect usage and so this should return false - } - - @Test - public void getMemberFields() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.getMemberFields(); - fail("Reference not set, NullPointerException expected."); - } catch (NullPointerException npe) { - // expected - } - recursiveType.setReference(ResolvedObjectType.create(Mock.class, null, null, null)); - assertEquals(1, recursiveType.getMemberFields().size()); - } - - @Test - public void getStaticFields() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.getStaticFields(); - fail("Reference not set, NullPointerException expected."); - } catch (NullPointerException npe) { - // expected - } - recursiveType.setReference(ResolvedObjectType.create(Mock.class, null, null, null)); - assertEquals(1, recursiveType.getStaticFields().size()); - } - - @Test - public void getMemberMethods() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.getMemberMethods(); - fail("Reference not set, NullPointerException expected."); - } catch (NullPointerException npe) { - // expected - } - recursiveType.setReference(ResolvedObjectType.create(Mock.class, null, null, null)); - assertEquals(1, recursiveType.getMemberMethods().size()); - } - - @Test - public void getStaticMethods() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.getStaticMethods(); - fail("Reference not set, NullPointerException expected."); - } catch (NullPointerException npe) { - // expected - } - recursiveType.setReference(ResolvedObjectType.create(Mock.class, null, null, null)); - assertEquals(1, recursiveType.getStaticMethods().size()); - } - - @Test - public void getConstructors() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - try { - recursiveType.getConstructors(); - fail("Reference not set, NullPointerException expected."); - } catch (NullPointerException npe) { - // expected - } - recursiveType.setReference(ResolvedObjectType.create(Mock.class, null, null, null)); - assertEquals(1, recursiveType.getConstructors().size()); - } - - @Test - public void appendSignature() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = recursiveType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Ljava/lang/String;", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = recursiveType.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing Ljava/lang/String;", returned.toString()); - } - - @Test - public void appendErasedSignature() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = recursiveType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Ljava/lang/String;", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = recursiveType.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing Ljava/lang/String;", returned.toString()); - } - - @Test - public void appendFullDescription() { - ResolvedRecursiveType recursiveType = new ResolvedRecursiveType(String.class, null); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = recursiveType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("java.lang.String", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = recursiveType.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("Existing java.lang.String", returned.toString()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/types/TypePlaceHolderTest.java b/src/test/java/com/fasterxml/classmate/types/TypePlaceHolderTest.java deleted file mode 100644 index 3b59bf2..0000000 --- a/src/test/java/com/fasterxml/classmate/types/TypePlaceHolderTest.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.fasterxml.classmate.types; - -import org.junit.Test; - -import static junit.framework.Assert.*; - -@SuppressWarnings("deprecation") -public class TypePlaceHolderTest { - - @Test - public void canCreateSubtypes() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertFalse(placeHolder.canCreateSubtypes()); - } - - @Test - public void getParentClass() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertNull(placeHolder.getParentClass()); - } - - @Test - public void getSelfReferencedType() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertNull(placeHolder.getSelfReferencedType()); - } - - @Test - public void getImplementedInterfaces() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertEquals(0, placeHolder.getImplementedInterfaces().size()); - } - - @Test - public void getArrayElementType() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertNull(placeHolder.getArrayElementType()); - } - - @Test - public void isInterface() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertFalse(placeHolder.isInterface()); - } - - @Test - public void isAbstract() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertTrue(placeHolder.isAbstract()); - } - - @Test - public void isArray() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertFalse(placeHolder.isArray()); - } - - @Test - public void isPrimitive() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - assertFalse(placeHolder.isPrimitive()); - } - - @Test - public void appendSignature() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = placeHolder.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Ljava/lang/Object;", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing Ljava/lang/Object;", returned.toString()); - } - - @Test - public void appendErasedSignature() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = placeHolder.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Ljava/lang/Object;", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendErasedSignature(buffer); - assertSame(buffer, returned); - assertEquals("Existing Ljava/lang/Object;", returned.toString()); - } - - @Test - public void appendBriefDescription() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("<0>", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals("Existing <0>", returned.toString()); - - placeHolder = new TypePlaceHolder(Integer.MAX_VALUE); - buffer = new StringBuilder(); - returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("<%d>", Integer.MAX_VALUE), returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("Existing <%d>", Integer.MAX_VALUE), returned.toString()); - - placeHolder = new TypePlaceHolder(Integer.MIN_VALUE); - buffer = new StringBuilder(); - returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("<%d>", Integer.MIN_VALUE), returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendBriefDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("Existing <%d>", Integer.MIN_VALUE), returned.toString()); - } - - @Test - public void appendFullDescription() { - TypePlaceHolder placeHolder = new TypePlaceHolder(0); - StringBuilder buffer = new StringBuilder(); - StringBuilder returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("<0>", returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals("Existing <0>", returned.toString()); - - placeHolder = new TypePlaceHolder(Integer.MAX_VALUE); - buffer = new StringBuilder(); - returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("<%d>", Integer.MAX_VALUE), returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("Existing <%d>", Integer.MAX_VALUE), returned.toString()); - - placeHolder = new TypePlaceHolder(Integer.MIN_VALUE); - buffer = new StringBuilder(); - returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("<%d>", Integer.MIN_VALUE), returned.toString()); - - buffer = new StringBuilder("Existing "); - returned = placeHolder.appendFullDescription(buffer); - assertSame(buffer, returned); - assertEquals(String.format("Existing <%d>", Integer.MIN_VALUE), returned.toString()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/util/ClassKeyTest.java b/src/test/java/com/fasterxml/classmate/util/ClassKeyTest.java deleted file mode 100644 index 2d36d92..0000000 --- a/src/test/java/com/fasterxml/classmate/util/ClassKeyTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.fasterxml.classmate.util; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * @author blangel - */ -@SuppressWarnings({ "serial" }) -public class ClassKeyTest -{ - static class ClassKeySubclass extends ClassKey { - ClassKeySubclass(Class clz) { - super(clz); - } - } - - @Test - public void nullClass() { - try { - new ClassKey(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - } - - @Test - public void equals() { - ClassKey key = new ClassKey(String.class); - - // test referential equality - assertTrue(key.equals(key)); - - // test null - assertFalse(key.equals(null)); - - // test unequal class - assertFalse(key.equals("test")); - - // test subclass - assertFalse(key.equals(new ClassKeySubclass(String.class))); - - // test not equals classes - assertFalse(key.equals(new ClassKey(Object.class))); - - // test equal classes - assertTrue(key.equals(new ClassKey(String.class))); - - // classes loaded by different class-loaders are not equal! - // TODO - } - - @Test - public void classKeyToString() { - ClassKey key = new ClassKey(String.class); - assertEquals(String.class.getName(), key.toString()); - } - - @Test - public void compareTo() { - ClassKey key = new ClassKey(String.class); - ClassKey key1 = new ClassKey(Object.class); - - assertEquals(0, key.compareTo(key)); - - assertTrue(key.compareTo(key1) > 0); - - assertTrue(key1.compareTo(key) < 0); - } -} diff --git a/src/test/java/com/fasterxml/classmate/util/MethodKeyTest.java b/src/test/java/com/fasterxml/classmate/util/MethodKeyTest.java deleted file mode 100644 index 4385bbb..0000000 --- a/src/test/java/com/fasterxml/classmate/util/MethodKeyTest.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.fasterxml.classmate.util; - -import org.junit.Test; - -import static org.junit.Assert.*; - -public class MethodKeyTest { - - @SuppressWarnings("serial") - private static class MethodKeySubclass extends MethodKey { - MethodKeySubclass(String name) { - super(name); - } - } - - @Test - public void equals() { - - // test referential equality - MethodKey key1 = new MethodKey("test"); - assertTrue(key1.equals(key1)); - - // test null - assertFalse(key1.equals(null)); - - // test unequal class - assertFalse(key1.equals((Object) "test")); - - // test subclass - MethodKeySubclass methodKeySubclass = new MethodKeySubclass("test"); - assertFalse(key1.equals(methodKeySubclass)); - - // test name equals - MethodKey key2 = new MethodKey("test"); - assertTrue(key1.equals(key2)); - - // test name not equals - MethodKey key3 = new MethodKey("test3"); - assertFalse(key1.equals(key3)); - - // test arguments not equal - MethodKey key4 = new MethodKey("test", new Class[] { String.class }); - assertFalse(key1.equals(key4)); - - // test arguments equal (non-zero) - MethodKey key5 = new MethodKey("test", new Class[] { String.class }); - assertTrue(key4.equals(key5)); - - // test arguments not equal (length-wise) - MethodKey key6 = new MethodKey("test", new Class[] { String.class, Object.class}); - assertFalse(key5.equals(key6)); - - // test arguments not equal (type-wise) - MethodKey key7 = new MethodKey("test", new Class[] { Object.class, String.class}); - assertFalse(key6.equals(key7)); - - // test equals (with arguments) - MethodKey key8 = new MethodKey("test", new Class[] { Object.class, String.class}); - assertEquals(key7, key8); - - } - - @Test - public void methodKeyToString() { - MethodKey key = new MethodKey("test"); - assertEquals("test()", key.toString()); - - key = new MethodKey("test", new Class[] { String.class }); - assertEquals("test(java.lang.String)", key.toString()); - - key = new MethodKey("test", new Class[] { String.class, Object[].class }); - assertEquals("test(java.lang.String,[Ljava.lang.Object;)", key.toString()); - - key = new MethodKey("test", new Class[] { boolean.class }); - assertEquals("test(boolean)", key.toString()); - - key = new MethodKey("test", new Class[] { void.class }); - assertEquals("test(void)", key.toString()); - } - -} diff --git a/src/test/java/com/fasterxml/classmate/util/TestResolvedTypeCache.java b/src/test/java/com/fasterxml/classmate/util/TestResolvedTypeCache.java deleted file mode 100644 index 39f9135..0000000 --- a/src/test/java/com/fasterxml/classmate/util/TestResolvedTypeCache.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.fasterxml.classmate.util; - -import com.fasterxml.classmate.ResolvedType; -import com.fasterxml.classmate.types.ResolvedInterfaceType; -import com.fasterxml.classmate.types.ResolvedObjectType; - -import junit.framework.TestCase; - -import java.util.List; -import java.util.Map; -import java.util.Set; - -public class TestResolvedTypeCache extends TestCase -{ - static class KeySubclass extends ResolvedTypeKey { - KeySubclass(Class simpleType) { - super(simpleType); - } - } - - public void testSimpleLRUCaching() - { - LRUTypeCache cache = (LRUTypeCache) ResolvedTypeCache.lruCache(2); - _testSimple(cache, true); - } - - public void testSimpleConcurrentCaching() - { - ConcurrentTypeCache cache = (ConcurrentTypeCache) ResolvedTypeCache.concurrentCache(2); - _testSimple(cache, false); - } - - private void _testSimple(ResolvedTypeCache cache, boolean lru) { - assertEquals(0, cache.size()); - // bogus, just needed for testing: - ResolvedType type1 = new ResolvedInterfaceType(Map.class, null, null); - cache._addForTest(type1); - assertEquals(1, cache.size()); - // re-adding won't change anything: - cache._addForTest(type1); - assertEquals(1, cache.size()); - ResolvedType type2 = new ResolvedInterfaceType(Set.class, null, null); - cache._addForTest(type2); - assertEquals(2, cache.size()); - ResolvedType type3 = new ResolvedInterfaceType(List.class, null, null); - cache._addForTest(type3); - - // when full, behavior varies - if (lru) { - // will just replace oldest - assertEquals(2, cache.size()); - } else { - assertEquals(1, cache.size()); - } - - // should now only have types 2 and 3 available - ResolvedType found1 = cache.find(cache.key(Map.class)); - ResolvedType found2 = cache.find(cache.key(Set.class)); - ResolvedType found3 = cache.find(cache.key(List.class)); - - assertNull(found1); - if (lru) { - assertSame(type2, found2); - assertSame(type3, found3); - } else { - assertNull(found2); - assertSame(type3, found3); - } - } - - public void testKeyEquals() - { - try { - new ResolvedTypeKey(null); - fail("Expecting a NullPointerException."); - } catch (NullPointerException npe) { - // expected - } - - ResolvedTypeKey key = new ResolvedTypeKey(String.class); - - // test referential equality - assertTrue(key.equals(key)); - - // test null - assertFalse(key.equals(null)); - - // test unequal class - Object strKey = "test"; - assertFalse(key.equals(strKey)); - - // test subclass - assertFalse(key.equals(new KeySubclass(String.class))); - - // test unequal resolve-class - ResolvedTypeKey key1 = new ResolvedTypeKey(Object.class); - assertFalse(key.equals(key1)); - - // test equal resolve-class - ResolvedTypeKey key2 = new ResolvedTypeKey(String.class); - assertTrue(key.equals(key2)); - - // test equal, 0-length resolved-type array change to null - ResolvedTypeKey key3 = new ResolvedTypeKey(String.class, new ResolvedType[] { }); - assertTrue(key.equals(key3)); - - // test unequal, null other type-parameters - ResolvedTypeKey key4 = new ResolvedTypeKey(String.class, new ResolvedType[] { ResolvedObjectType.create(String.class, null, null, null)} ); - assertFalse(key.equals(key4)); - assertFalse(key4.equals(key)); - - // test unequal, type-parameters length - ResolvedTypeKey key5 = new ResolvedTypeKey(String.class, new ResolvedType[] { - ResolvedObjectType.create(String.class, null, null, null), - ResolvedObjectType.create(Object.class, null, null, null) - }); - assertFalse(key4.equals(key5)); - - // test unequal type-parameters - ResolvedTypeKey key6 = new ResolvedTypeKey(String.class, new ResolvedType[] { - ResolvedObjectType.create(Object.class, null, null, null), - ResolvedObjectType.create(String.class, null, null, null) - }); - assertFalse(key5.equals(key6)); - - // test equal type-parameters - ResolvedTypeKey key7 = new ResolvedTypeKey(String.class, new ResolvedType[] { - ResolvedObjectType.create(Object.class, null, null, null), - ResolvedObjectType.create(String.class, null, null, null) - }); - assertTrue(key6.equals(key7)); - } -}