Skip to main content
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/FieldPredicate.java6
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/MethodPredicate.java14
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/NullCheckPredicateWrapper.java10
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/PredicateWrapper.java4
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/TransformerPredicate.java6
5 files changed, 36 insertions, 4 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/FieldPredicate.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/FieldPredicate.java
index 811bb35504..35249f3070 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/FieldPredicate.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/FieldPredicate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -48,6 +48,10 @@ public class FieldPredicate<V>
return (Boolean) ObjectTools.get(variable, this.fieldName);
}
+ public String getFieldName() {
+ return this.fieldName;
+ }
+
@Override
public boolean equals(Object o) {
if ( ! (o instanceof FieldPredicate<?>)) {
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/MethodPredicate.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/MethodPredicate.java
index 566dc4e0d0..02d0e7c648 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/MethodPredicate.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/MethodPredicate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -54,6 +54,18 @@ public class MethodPredicate<V>
return (Boolean) ObjectTools.execute(variable, this.methodName, this.parameterTypes, this.arguments);
}
+ public String getMethodName() {
+ return this.methodName;
+ }
+
+ public Class<?>[] getParameterTypes() {
+ return this.parameterTypes;
+ }
+
+ public Object[] getArguments() {
+ return this.arguments;
+ }
+
@Override
public boolean equals(Object o) {
if ( ! (o instanceof MethodPredicate<?>)) {
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/NullCheckPredicateWrapper.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/NullCheckPredicateWrapper.java
index e641fc91a3..ef0630282a 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/NullCheckPredicateWrapper.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/NullCheckPredicateWrapper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -39,6 +39,14 @@ public class NullCheckPredicateWrapper<V>
return (variable == null) ? this.nullValue : this.predicate.evaluate(variable);
}
+ public Predicate<? super V> getPredicate() {
+ return this.predicate;
+ }
+
+ public boolean getNullValue() {
+ return this.nullValue;
+ }
+
@Override
public boolean equals(Object o) {
if ( ! (o instanceof NullCheckPredicateWrapper)) {
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/PredicateWrapper.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/PredicateWrapper.java
index fbf552ae2c..4e7a540551 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/PredicateWrapper.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/PredicateWrapper.java
@@ -35,6 +35,10 @@ public class PredicateWrapper<V>
return this.predicate.evaluate(variable);
}
+ public Predicate<? super V> getPredicate() {
+ return this.predicate;
+ }
+
public void setPredicate(Predicate<? super V> predicate) {
if (predicate == null) {
throw new NullPointerException();
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/TransformerPredicate.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/TransformerPredicate.java
index 7ad8a574af..babe8a438a 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/TransformerPredicate.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/TransformerPredicate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -43,6 +43,10 @@ public class TransformerPredicate<V>
return this.transformer.transform(variable).booleanValue();
}
+ public Transformer<? super V, Boolean> getTransformer() {
+ return this.transformer;
+ }
+
@Override
public boolean equals(Object o) {
if ( ! (o instanceof TransformerPredicate)) {

Back to the top