Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/JavaMethod.java @ 6539:2463eb24b644
Cleanup of Graal API: Rename methods so that it follows the getXxx naming convention and so that they are similar to the names of the java.lang.reflect classes. Remove unused methods.
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 09 Oct 2012 15:23:38 -0700 |
parents | b4c406861c33 |
children | 5e3d1a68664e |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/JavaMethod.java Tue Oct 09 14:06:26 2012 +0200 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/JavaMethod.java Tue Oct 09 15:23:38 2012 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,26 +23,23 @@ package com.oracle.graal.api.meta; /** - * Represents resolved and unresolved Java methods. Methods, like fields and types, are resolved through - * {@link ConstantPool constant pools}. + * Represents a reference to a Java method, either resolved or unresolved. Methods, like fields and types, are resolved + * through {@link ConstantPool constant pools}. */ public interface JavaMethod { /** - * Gets the name of the method as a string. - * @return the name of the method + * Returns the name of this method. */ - String name(); + String getName(); /** - * Gets the type in which this method is declared. - * @return the type in which this method is declared + * Returns the {@link JavaType} object representing the class or interface that declares this method. */ - JavaType holder(); + JavaType getDeclaringClass(); /** - * Gets the signature of the method. - * @return the signature of the method + * Returns the signature of this method. */ - Signature signature(); + Signature getSignature(); }