diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/bridge/jni/JavaMethod.h | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/bridge/jni/JavaMethod.h')
-rw-r--r-- | Source/WebCore/bridge/jni/JavaMethod.h | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/Source/WebCore/bridge/jni/JavaMethod.h b/Source/WebCore/bridge/jni/JavaMethod.h index 39d04c9..f15b653 100644 --- a/Source/WebCore/bridge/jni/JavaMethod.h +++ b/Source/WebCore/bridge/jni/JavaMethod.h @@ -30,9 +30,9 @@ #if ENABLE(JAVA_BRIDGE) #include "Bridge.h" -#include "JNIUtility.h" +#include "JavaType.h" -#include "JavaString.h" +#include <wtf/text/WTFString.h> namespace JSC { @@ -42,29 +42,12 @@ typedef const char* RuntimeType; class JavaMethod : public Method { public: - JavaMethod(JNIEnv*, jobject aMethod); - ~JavaMethod(); - - const JavaString& name() const { return m_name; } - RuntimeType returnType() const { return m_returnType.utf8(); } - const WTF::String& parameterAt(int i) const { return m_parameters[i]; } - int numParameters() const { return m_parameters.size(); } - - const char* signature() const; - JNIType JNIReturnType() const; - - jmethodID methodID(jobject obj) const; - - bool isStatic() const { return m_isStatic; } - -private: - Vector<WTF::String> m_parameters; - JavaString m_name; - mutable char* m_signature; - JavaString m_returnType; - JNIType m_JNIReturnType; - mutable jmethodID m_methodID; - bool m_isStatic; + virtual String name() const = 0; + virtual RuntimeType returnTypeClassName() const = 0; + virtual String parameterAt(int) const = 0; + virtual const char* signature() const = 0; + virtual JavaType returnType() const = 0; + virtual bool isStatic() const = 0; }; } // namespace Bindings |