Home | History | Annotate | Download | only in reference

Lines Matching defs:of

9  *     * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * copyright notice, this list of conditions and the following disclaimer
15 * * Neither the name of Google Inc. nor the names of its
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 public static ImmutableReference of(Reference reference) {
44 return ImmutableStringReference.of((StringReference)reference);
47 return ImmutableTypeReference.of((TypeReference)reference);
50 return ImmutableFieldReference.of((FieldReference)reference);
53 return ImmutableMethodReference.of((MethodReference)reference);
56 return ImmutableMethodProtoReference.of((MethodProtoReference) reference);
62 public static ImmutableReference of(int referenceType, Reference reference) {
65 return ImmutableStringReference.of((StringReference)reference);
67 return ImmutableTypeReference.of((TypeReference)reference);
69 return ImmutableFieldReference.of((FieldReference)reference);
71 return ImmutableMethodReference.of((MethodReference)reference);
73 return ImmutableMethodProtoReference.of((MethodProtoReference)reference);