java-gobject-introspection r68 - trunk/src/org/gnome/gir/repository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r68 - trunk/src/org/gnome/gir/repository
- Date: Mon, 29 Sep 2008 01:11:47 +0000 (UTC)
Author: walters
Date: Mon Sep 29 01:11:47 2008
New Revision: 68
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=68&view=rev
Log:
Add better getIdentifier function
Modified:
trunk/src/org/gnome/gir/repository/CallableInfo.java
trunk/src/org/gnome/gir/repository/FunctionInfo.java
trunk/src/org/gnome/gir/repository/TypeInfo.java
Modified: trunk/src/org/gnome/gir/repository/CallableInfo.java
==============================================================================
--- trunk/src/org/gnome/gir/repository/CallableInfo.java (original)
+++ trunk/src/org/gnome/gir/repository/CallableInfo.java Mon Sep 29 01:11:47 2008
@@ -50,4 +50,8 @@
ret[i] = getArg(i);
return ret;
}
+
+ public String getIdentifier() {
+ return getNamespace() + '/' + getName();
+ }
}
\ No newline at end of file
Modified: trunk/src/org/gnome/gir/repository/FunctionInfo.java
==============================================================================
--- trunk/src/org/gnome/gir/repository/FunctionInfo.java (original)
+++ trunk/src/org/gnome/gir/repository/FunctionInfo.java Mon Sep 29 01:11:47 2008
@@ -35,4 +35,9 @@
public int getFlags() {
return Repository.getNativeLibrary().g_function_info_get_flags(this);
}
+
+ @Override
+ public String getIdentifier() {
+ return getSymbol();
+ }
}
\ No newline at end of file
Modified: trunk/src/org/gnome/gir/repository/TypeInfo.java
==============================================================================
--- trunk/src/org/gnome/gir/repository/TypeInfo.java (original)
+++ trunk/src/org/gnome/gir/repository/TypeInfo.java Mon Sep 29 01:11:47 2008
@@ -50,4 +50,8 @@
public ErrorDomainInfo getErrorDomainInfo(int n) {
return Repository.getNativeLibrary().g_type_info_get_error_domain(this, n);
}
+
+ public String toString() {
+ return String.format("<TypeInfo tag=%s pointer=%s>", getTag(), isPointer());
+ }
}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]