[jruby-joni] 50/223: Introduce Regex.userObject.

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:21:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit c7063bf0bd8e3b3de1fce7471e96bd72114e264d
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date:   Sat Jan 10 17:45:38 2009 +0000

    Introduce Regex.userObject.
    
    git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@8691 961051c9-f516-0410-bf72-c9f7e237a7b7
---
 src/org/joni/Regex.java | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/org/joni/Regex.java b/src/org/joni/Regex.java
index 2e7118b..d6308de 100644
--- a/src/org/joni/Regex.java
+++ b/src/org/joni/Regex.java
@@ -63,6 +63,7 @@ public final class Regex implements RegexState {
     final Encoding enc;
     int options;
     int userOptions;
+    Object userObject;
     //final Syntax syntax;
     final int caseFoldFlag;
     
@@ -403,6 +404,10 @@ public final class Regex implements RegexState {
         return s;
     }
 
+    public Encoding getEncoding() {
+        return enc;
+    }
+
     public int getOptions() {
         return options;
     }
@@ -415,7 +420,11 @@ public final class Regex implements RegexState {
         return userOptions;
     }
 
-    public Encoding getEncoding() {
-        return enc;
+    public void setUserObject(Object object) {
+        this.userObject = object;
+    }
+
+    public Object getUserObject() {
+        return userObject;
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list