repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
caligin/tinytypes
meta/src/test/java/tech/anima/tinytypes/meta/IntTinyTypesTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import tech.anima.tinytypes.Samples; import org.junit.Test; import org.junit.Assert; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith;
package tech.anima.tinytypes.meta; @RunWith(Enclosed.class) public class IntTinyTypesTest { public static class IsMetaOf { @Test public void yieldsTrueWhenCandidateSuperclassIsIntTT() {
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
final boolean got = new IntTinyTypes().isMetaOf(Samples.Integer.class);
caligin/tinytypes
jersey/src/test/java/tech/anima/tinytypes/jersey/TinyTypesHeaderDelegateProviderTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import tech.anima.tinytypes.Samples; import org.junit.Test; import org.junit.Assert; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.DataPoints; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith;
package tech.anima.tinytypes.jersey; @RunWith(Enclosed.class) public class TinyTypesHeaderDelegateProviderTest { @RunWith(Theories.class) public static class Ctor { @DataPoints public static final Class<?>[] tinyTypesSamples = new Class<?>[]{
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
Samples.Str.class,
caligin/tinytypes
meta/src/test/java/tech/anima/tinytypes/meta/ShortTinyTypesTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import tech.anima.tinytypes.Samples; import tech.anima.tinytypes.Samples.ShortIndirectAncestor; import org.junit.Test; import org.junit.Assert; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith;
package tech.anima.tinytypes.meta; @RunWith(Enclosed.class) public class ShortTinyTypesTest { public static class IsMetaOf { @Test public void yieldsTrueWhenCandidateSuperclassIsShortTT() {
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
final boolean got = new ShortTinyTypes().isMetaOf(Samples.Short.class);
caligin/tinytypes
meta/src/test/java/tech/anima/tinytypes/meta/ShortTinyTypesTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import tech.anima.tinytypes.Samples; import tech.anima.tinytypes.Samples.ShortIndirectAncestor; import org.junit.Test; import org.junit.Assert; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith;
package tech.anima.tinytypes.meta; @RunWith(Enclosed.class) public class ShortTinyTypesTest { public static class IsMetaOf { @Test public void yieldsTrueWhenCandidateSuperclassIsShortTT() { final boolean got = new ShortTinyTypes().isMetaOf(Samples.Short.class); Assert.ass...
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
final boolean got = new ShortTinyTypes().isMetaOf(ShortIndirectAncestor.class);
caligin/tinytypes
meta/src/test/java/tech/anima/tinytypes/meta/StringTinyTypesTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import tech.anima.tinytypes.Samples; import org.junit.Test; import org.junit.Assert; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith;
package tech.anima.tinytypes.meta; @RunWith(Enclosed.class) public class StringTinyTypesTest { public static class IsMetaOf { @Test public void yieldsTrueWhenCandidateSuperclassIsStringTT() {
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
final boolean got = new StringTinyTypes().isMetaOf(Samples.Str.class);
caligin/tinytypes
jackson/src/main/java/tech/anima/tinytypes/jackson/TinyTypesKeySerializers.java
// Path: meta/src/main/java/tech/anima/tinytypes/meta/MetaTinyType.java // public interface MetaTinyType<T> { // // /** // * Checks whether this implementation can operate on the given TinyType // * class type. // * // * @param candidate the TInyType type to check for compatibility // * @r...
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.BeanDescription; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializationConf...
package tech.anima.tinytypes.jackson; public class TinyTypesKeySerializers extends Serializers.Base { @Override public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) { Class<?> candidateTT = type.getRawClass();
// Path: meta/src/main/java/tech/anima/tinytypes/meta/MetaTinyType.java // public interface MetaTinyType<T> { // // /** // * Checks whether this implementation can operate on the given TinyType // * class type. // * // * @param candidate the TInyType type to check for compatibility // * @r...
if (MetaTinyTypes.isTinyType(candidateTT)) {
caligin/tinytypes
jackson/src/main/java/tech/anima/tinytypes/jackson/TinyTypesKeySerializers.java
// Path: meta/src/main/java/tech/anima/tinytypes/meta/MetaTinyType.java // public interface MetaTinyType<T> { // // /** // * Checks whether this implementation can operate on the given TinyType // * class type. // * // * @param candidate the TInyType type to check for compatibility // * @r...
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.BeanDescription; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializationConf...
package tech.anima.tinytypes.jackson; public class TinyTypesKeySerializers extends Serializers.Base { @Override public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) { Class<?> candidateTT = type.getRawClass(); if (MetaTinyTypes.isTinyTyp...
// Path: meta/src/main/java/tech/anima/tinytypes/meta/MetaTinyType.java // public interface MetaTinyType<T> { // // /** // * Checks whether this implementation can operate on the given TinyType // * class type. // * // * @param candidate the TInyType type to check for compatibility // * @r...
private final MetaTinyType<T> meta;
caligin/tinytypes
jackson/src/test/java/tech/anima/tinytypes/jackson/TinyTypesKeySerializersTest.java
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.Module; import com.fasterxml.jackson.databind.ObjectMapper; import com.faster...
package tech.anima.tinytypes.jackson; @RunWith(Enclosed.class) public class TinyTypesKeySerializersTest { @RunWith(Theories.class) public static class FindKeySerializer { @Test public void delegatesToOtherWhenTypeIsNotATinyType() throws JsonMappingException { final JavaType typeF...
// Path: tinytypes/src/test/java/tech/anima/tinytypes/Samples.java // public class Samples { // // public static class Integer extends IntTinyType { // // public Integer(int value) { // super(value); // } // // public static Integer of(int value) { // return new In...
Samples.Str.class,
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/preferences/PreferenceConstants.java
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/Activator.java // public class Activator extends AbstractUIPlugin { // // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.ui"; // // /** // * The shared instance. // */ ...
import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.ui.preferences.ScopedPreferenceStore; import de.urszeidler.eclipse.solidity.ui.Activator;
public static final String GENERATION_JAVA_2_SOLIDITY_TYPES = "GENERATION_JAVA_2_SOLIDITY_TYPES"; public static final String GENERATION_JAVA_2_SOLIDITY_TYPE_PREFIX = "GENERATION_JAVA_2_SOLIDITY_TYPE_"; public static final String GENERATE_JAVA_TESTS = "GENERATE_JAVA_TESTS"; public static final String GENERATION_JAVA...
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/Activator.java // public class Activator extends AbstractUIPlugin { // // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.ui"; // // /** // * The shared instance. // */ ...
IPreferenceStore store = new ScopedPreferenceStore(new ProjectScope(project), Activator.PLUGIN_ID);
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/preferences/SolcBuilderPreferencePage.java
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
import java.io.File; import java.util.List; import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; i...
getFieldEditorParent()) { @Override protected String changePressed() { Path srcDir = new Path(getStringValue()); IResource member = project.findMember(srcDir); if (member == null) member = ResourcesPlugin.getWorkspace().getRoot().findMember(srcDir); ContainerSelectionDialog cont...
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
final List<SolC> parsePreferences = PreferenceConstants
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/preferences/SolcBuilderPreferencePage.java
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
import java.io.File; import java.util.List; import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; i...
setDescription( "The project solidity builder preferences. " + "The builder compiles to a combine json format. " + "All *.sol files of the source directory are selected. Add/remove the builder via configure project."); }else setDescription( "The solidity builder preferences. " + "The b...
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
return Activator.PLUGIN_ID;
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/util/Uml2Service.java
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/preferences/PreferenceConstants.java // public class PreferenceConstants { // // public static final String GENERATE_CONTRACT_FILES = "GENERATE_CONTRACT_FILES"; // public static final String GENERATION_TARGET = "GENERATION_TARGET"; // ...
import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EObject; import org.eclipse....
} } catch (IllegalArgumentException e) { } } return new ArrayList<Object>(); } /** * Get the index of the given {@link NamedElement} of its container. * * @param clazz * @return */ public static int getIndexInContainer(Element clazz) { EObject eContainer = clazz.eContainer(); EStructur...
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/preferences/PreferenceConstants.java // public class PreferenceConstants { // // public static final String GENERATE_CONTRACT_FILES = "GENERATE_CONTRACT_FILES"; // public static final String GENERATION_TARGET = "GENERATION_TARGET"; // ...
return store.getString(PreferenceConstants.CONTRACT_FILE_HEADER);
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/preferences/SolcCompilerPreferencePage.java
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.StringFieldEditor; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import de.urszeidler.eclipse.solidity.compiler.support.Activator;
addField(new BooleanFieldEditor(PreferenceConstants.COMPILER_ASM, "generate asm", BooleanFieldEditor.DEFAULT, getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.COMPILER_ASM_JSON, "generate asm json", BooleanFieldEditor.DEFAULT, getFieldEditorParent())); addField(new BooleanFiel...
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
return Activator.PLUGIN_ID;
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/preferences/PreferenceConstants.java
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.ui.preferences.ScopedPreferenceStore; import ...
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; SolC other = (SolC) obj; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) ...
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/support/Activator.java // public class Activator extends AbstractUIPlugin { // // // The plug-in ID // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.compiler.support"; //$NON-NLS-1$ // // /...
IPreferenceStore store = new ScopedPreferenceStore(new ProjectScope(project), Activator.PLUGIN_ID);
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/preferences/PreferenceInitializer.java
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/Activator.java // public class Activator extends AbstractUIPlugin { // // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.ui"; // // /** // * The shared instance. // */ ...
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.ui.preferences.ScopedPreferenceStore; import de.urszeidler.eclipse.solidity.ui.Activator;
package de.urszeidler.eclipse.solidity.ui.preferences; /** * Class used to initialize default preference values. */ public class PreferenceInitializer extends AbstractPreferenceInitializer { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPre...
// Path: de.urszeidler.eclipse.solidity.ui/src/de/urszeidler/eclipse/solidity/ui/Activator.java // public class Activator extends AbstractUIPlugin { // // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.ui"; // // /** // * The shared instance. // */ ...
IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, Activator.PLUGIN_ID);
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/propertytester/HasBuilderTester.java
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/handler/AddBuilder.java // public class AddBuilder extends AbstractHandler implements IHandler { // // @Override // public Object execute(final ExecutionEvent event) { // final IProject project = getProject(event);...
import de.urszeidler.eclipse.solidity.compiler.handler.AddBuilder; import org.eclipse.core.expressions.PropertyTester; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.Platform;
/** * */ package de.urszeidler.eclipse.solidity.compiler.propertytester; /** * @author urs * */ public class HasBuilderTester extends PropertyTester { private static final String IS_ENABLED = "isEnabled"; /* * (non-Javadoc) * * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, ...
// Path: de.urszeidler.eclipse.solidity.compiler.support/src/de/urszeidler/eclipse/solidity/compiler/handler/AddBuilder.java // public class AddBuilder extends AbstractHandler implements IHandler { // // @Override // public Object execute(final ExecutionEvent event) { // final IProject project = getProject(event);...
return AddBuilder.hasBuilder(project);
UrsZeidler/uml2solidity
de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/ui/Uml2SolidityLaunchConfigurationTabGroup.java
// Path: de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/Activator.java // public class Activator extends AbstractUIPlugin { // // private static Activator plugin; // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.lau...
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.Platform; import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; import org.eclipse.debug.ui.CommonTab; import or...
* */ public Uml2SolidityLaunchConfigurationTabGroup() { } /* (non-Javadoc) * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String) */ @Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { IConfig...
// Path: de.urszeidler.eclipse.solidity.laucher.ui/src/de/urszeidler/eclipse/solidity/laucher/Activator.java // public class Activator extends AbstractUIPlugin { // // private static Activator plugin; // /** // * The plug-in ID. // */ // public static final String PLUGIN_ID = "de.urszeidler.eclipse.solidity.lau...
Activator.logError("Error instanciate the tab.", e);
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import java.util.Collections; import com.github.vineey.rql.core.util.StringUtils; import com.github.vineey.rql.select.SelectContext; import com.github.vineey.rql.select.SelectParam; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.github.vineey.rql.select.parser.ast.SelectTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
public <T, E extends SelectParam> T parse(String selectExpression, SelectContext<T, E> selectContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import java.util.Collections; import com.github.vineey.rql.core.util.StringUtils; import com.github.vineey.rql.select.SelectContext; import com.github.vineey.rql.select.SelectParam; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.github.vineey.rql.select.parser.ast.SelectTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
public <T, E extends SelectParam> T parse(String selectExpression, SelectContext<T, E> selectContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import java.util.Collections; import com.github.vineey.rql.core.util.StringUtils; import com.github.vineey.rql.select.SelectContext; import com.github.vineey.rql.select.SelectParam; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.github.vineey.rql.select.parser.ast.SelectTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
SelectNodeList selectNodeList = StringUtils.isNotEmpty(selectExpression) ? new SelectTokenParserAdapter().parse(selectExpression) : new SelectNodeList(Collections.EMPTY_LIST);
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import java.util.Collections; import com.github.vineey.rql.core.util.StringUtils; import com.github.vineey.rql.select.SelectContext; import com.github.vineey.rql.select.SelectParam; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.github.vineey.rql.select.parser.ast.SelectTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
SelectNodeList selectNodeList = StringUtils.isNotEmpty(selectExpression) ? new SelectTokenParserAdapter().parse(selectExpression) : new SelectNodeList(Collections.EMPTY_LIST);
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import java.util.Collections; import com.github.vineey.rql.core.util.StringUtils; import com.github.vineey.rql.select.SelectContext; import com.github.vineey.rql.select.SelectParam; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.github.vineey.rql.select.parser.ast.SelectTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
SelectNodeList selectNodeList = StringUtils.isNotEmpty(selectExpression) ? new SelectTokenParserAdapter().parse(selectExpression) : new SelectNodeList(Collections.EMPTY_LIST);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-select/src/test/java/com/github/vineey/rql/querydsl/select/QuerydslSelectContextTest.java
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java // public class DefaultSelectParser implements SelectParser { // @Override // public <T, E extends SelectParam> T parse(String selectExpression, SelectContext<T, E> selectContext) { // E s...
import com.querydsl.core.types.Projections; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.Map; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.querydsl.test.jpa.QEmployee; import com.githu...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/DefaultSelectParser.java // public class DefaultSelectParser implements SelectParser { // @Override // public <T, E extends SelectParam> T parse(String selectExpression, SelectContext<T, E> selectContext) { // E s...
DefaultSelectParser selectParser = new DefaultSelectParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import com.github.vineey.rql.core.util.StringUtils; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.format.DateTimeFormatter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
if (StringUtils.isEmpty(time)) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-page/src/main/java/com/github/vineey/rql/querydsl/page/QuerydslPageParser.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
import com.github.vineey.rql.page.parser.DefaultPageParser; import com.querydsl.core.QueryModifiers; import static com.github.vineey.rql.querydsl.page.QuerydslPageContext.withDefault;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
return super.parse(limitExpression, withDefault());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-sort/src/test/java/com/github/vineey/rql/querydsl/sort/QuerydslSortContextTest.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/DefaultSortParser.java // public class DefaultSortParser implements SortParser { // // @Override // public <T, E extends SortParam> T parse(String sortExpression, SortContext<T, E> sortContext) { // E sortParam = sor...
import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.List; import java.util.Map; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.querydsl.test.jpa.QEmployee; import com.github.vineey.rql.sort.par...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/DefaultSortParser.java // public class DefaultSortParser implements SortParser { // // @Override // public <T, E extends SortParam> T parse(String sortExpression, SortContext<T, E> sortContext) { // E sortParam = sor...
DefaultSortParser sortParser = new DefaultSortParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/StringPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import static cz.jirutka.rsql.parser.ast.RSQLOperators.*; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.StringExpression; import com.querydsl.core.types.dsl.StringPath; import cz.jirutka.rsql.parser....
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
vineey/archelix-rsql
rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/ast/SortTokenParserAdapter.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/exception/SortParsingException.java // public class SortParsingException extends RuntimeException { // // public SortParsingException(Throwable cause) { // super(cause); // } // // }
import com.github.vineey.rql.sort.parser.exception.SortParsingException; import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/exception/SortParsingException.java // public class SortParsingException extends RuntimeException { // // public SortParsingException(Throwable cause) { // super(cause); // } // // } // Path: rsql-api-parent/rsql-...
throw new SortParsingException(e);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/NumberPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import static cz.jirutka.rsql.parser.ast.RSQLOperators.*; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.github.vineey.rql.querydsl.filter.util.ConverterUtil; import com.google.common.collect.Lists; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core....
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/NumberPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import static cz.jirutka.rsql.parser.ast.RSQLOperators.*; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.github.vineey.rql.querydsl.filter.util.ConverterUtil; import com.google.common.collect.Lists; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core....
} else if (NOT_EQUAL.equals(comparisonOperator)) { return firstNumberArg == null ? path.isNotNull() : path.ne(firstNumberArg); } else if (IN.equals(comparisonOperator)) { return path.in(convertToNumberArguments(path, arguments)); } else if (NOT_IN.equals(comparisonOperato...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
: ConverterUtil.convertToNumber(path.getType(), firstArg);
vineey/archelix-rsql
rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/DefaultSortParser.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
import com.github.vineey.rql.sort.SortContext; import com.github.vineey.rql.sort.SortParam; import com.github.vineey.rql.sort.parser.ast.SortTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
public <T, E extends SortParam> T parse(String sortExpression, SortContext<T, E> sortContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/DefaultSortParser.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
import com.github.vineey.rql.sort.SortContext; import com.github.vineey.rql.sort.SortParam; import com.github.vineey.rql.sort.parser.ast.SortTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
public <T, E extends SortParam> T parse(String sortExpression, SortContext<T, E> sortContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/DefaultSortParser.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
import com.github.vineey.rql.sort.SortContext; import com.github.vineey.rql.sort.SortParam; import com.github.vineey.rql.sort.parser.ast.SortTokenParserAdapter;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortContext.java // public class SortContext<T, E extends SortParam> { // private SortBuilder<T, E> sortBuilder; // private E sortParam; // // public static <T, E extends SortParam> SortContext<T, E> withBuilderAndParam(SortBui...
return sortContext.getSortBuilder().visit(new SortTokenParserAdapter().parse(sortExpression), sortParam);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-select/src/main/java/com/github/vineey/rql/querydsl/select/QuerydslSelectBuilder.java
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/SelectBuilder.java // public interface SelectBuilder<T, E extends SelectParam> { // T visit(SelectNodeList node, E selectParam); // } // // Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/ast...
import java.util.ArrayList; import java.util.List; import java.util.Map; import com.github.vineey.rql.select.SelectBuilder; import com.github.vineey.rql.select.parser.ast.SelectNodeList; import com.querydsl.core.types.EntityPath; import com.querydsl.core.types.Expression; import com.querydsl.core.types.Path; import com...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/SelectBuilder.java // public interface SelectBuilder<T, E extends SelectParam> { // T visit(SelectNodeList node, E selectParam); // } // // Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/ast...
public Expression visit(SelectNodeList node, QuerydslSelectParam selectParam) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/StringUtilsTest.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import com.github.vineey.rql.core.util.StringUtils; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
new StringUtils();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/TimePathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
import com.querydsl.core.types.dsl.TimePath; import java.time.LocalTime; import com.github.vineey.rql.querydsl.filter.util.DateUtil;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
else if (pathFieldType.equals(LocalTime.class)) return DateUtil.parseLocalTime(argument);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_StringPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import cz.jirutka.rsql.parser.ast.RSQLOperators; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.HashMap; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
FilterParser filterParser = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_StringPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import cz.jirutka.rsql.parser.ast.RSQLOperators; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.HashMap; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
FilterParser filterParser = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_StringPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import cz.jirutka.rsql.parser.ast.RSQLOperators; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.HashMap; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
Predicate predicate = filterParser.parse(rqlFilter, withBuilderAndParam(new QuerydslFilterBuilder(), createFilterParam("name")));
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_StringPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import cz.jirutka.rsql.parser.ast.RSQLOperators; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.HashMap; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static...
String rqlFilter = "(firstName==KHIEL;familyName==Rustia),middleName==Laid"; FilterParser filterParser = new DefaultFilterParser(); Predicate predicate = filterParser.parse(rqlFilter, withBuilderAndParam(new QuerydslFilterBuilder(), createFilterParam("firstName", "middleName", "familyName"))); ...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
String rqlFilter = RSQLUtil.build(selector, RSQLOperators.GREATER_THAN_OR_EQUAL, argument);
vineey/archelix-rsql
rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
import com.github.vineey.rql.page.PageParam; import com.github.vineey.rql.page.parser.ast.LimitParserAdapter; import com.github.vineey.rql.page.parser.ast.PageNode; import com.github.vineey.rql.page.PageContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
public <T, E extends PageParam> T parse(String limitExpression, PageContext<T, E> pageContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
import com.github.vineey.rql.page.PageParam; import com.github.vineey.rql.page.parser.ast.LimitParserAdapter; import com.github.vineey.rql.page.parser.ast.PageNode; import com.github.vineey.rql.page.PageContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
public <T, E extends PageParam> T parse(String limitExpression, PageContext<T, E> pageContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
import com.github.vineey.rql.page.PageParam; import com.github.vineey.rql.page.parser.ast.LimitParserAdapter; import com.github.vineey.rql.page.parser.ast.PageNode; import com.github.vineey.rql.page.PageContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageContext.java // public class PageContext<T, E extends PageParam> { // private PageBuilder<T, E> pageBuilder; // private E pageParam; // // public static <T, E extends PageParam> PageContext<T, E> withBuilderAndParam(PageBui...
PageNode parsedPageNode = limitParserAdapter.parse(limitExpression);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-integrationtest/src/test/java/com/github/vineey/rql/querydsl/test/mongo/FongoConfig.java
// Path: rsql-querydsl-parent/rsql-querydsl-integrationtest/src/main/java/com/github/vineey/rql/querydsl/test/mongo/config/MongoUtil.java // public class MongoUtil { // // private static Mongo mongo; // // @Autowired // public MongoUtil(Mongo mongo) { // MongoUtil.mongo = mongo; // } // // ...
import com.github.fakemongo.Fongo; import com.github.vineey.rql.querydsl.test.mongo.config.MongoUtil; import com.mongodb.Mongo; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-integrationtest/src/main/java/com/github/vineey/rql/querydsl/test/mongo/config/MongoUtil.java // public class MongoUtil { // // private static Mongo mongo; // // @Autowired // public MongoUtil(Mongo mongo) { // MongoUtil.mongo = mongo; // } // // ...
public MongoUtil mongoUtil(Mongo mongo) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_CollectionPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.test.jpa.QEmployee.employee; import static org.junit.Assert.assertE...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
private final static DefaultFilterParser DEFAULT_FILTER_PARSER = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_CollectionPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.test.jpa.QEmployee.employee; import static org.junit.Assert.assertE...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
withBuilderAndParam(new QuerydslFilterBuilder(), new QuerydslFilterParam()
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_CollectionPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.test.jpa.QEmployee.employee; import static org.junit.Assert.assertE...
assertNotNull(predicate); BooleanOperation sizeExpression = (BooleanOperation) predicate; assertEquals("size(employee.nameCollection) = 0", sizeExpression.toString()); } @Test public void collectionSizeEquals() { Map<String, Path> pathHashMap = ImmutableMap.<String, Path>b...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
String rqlFilter = RSQLUtil.build("employee.nameCollection", RSQLOperators.IN, "test");
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/AbstractCollectionPathConverter.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
import com.github.vineey.rql.core.util.CollectionUtils; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.CollectionPathBase; import com.querydsl.core.types.dsl.SimpleExpression; import cz.jirutka.rsql.p...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
if (SIZE_EQ.equals(comparisonOperator)) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/AbstractCollectionPathConverter.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
import com.github.vineey.rql.core.util.CollectionUtils; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.CollectionPathBase; import com.querydsl.core.types.dsl.SimpleExpression; import cz.jirutka.rsql.p...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
} else if (SIZE_NOT_EQ.equals(comparisonOperator)) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/AbstractCollectionPathConverter.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
import com.github.vineey.rql.core.util.CollectionUtils; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.CollectionPathBase; import com.querydsl.core.types.dsl.SimpleExpression; import cz.jirutka.rsql.p...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/AbstractCollectionPathConverter.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
import com.github.vineey.rql.core.util.CollectionUtils; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.CollectionPathBase; import com.querydsl.core.types.dsl.SimpleExpression; import cz.jirutka.rsql.p...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
return CollectionUtils.isNotEmpty(arguments) ? arguments.get(0) : null;
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-sort/src/main/java/com/github/vineey/rql/querydsl/sort/QuerydslSortBuilder.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortBuilder.java // public interface SortBuilder<T, E extends SortParam> { // T visit(SortNodeList node, E filterParam); // } // // Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/ast/SortNode.java /...
import java.util.ArrayList; import java.util.List; import java.util.Map; import com.github.vineey.rql.sort.SortBuilder; import com.github.vineey.rql.sort.parser.ast.SortNode; import com.github.vineey.rql.sort.parser.ast.SortNodeList; import com.querydsl.core.types.Order; import com.querydsl.core.types.OrderSpecifier; i...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortBuilder.java // public interface SortBuilder<T, E extends SortParam> { // T visit(SortNodeList node, E filterParam); // } // // Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/ast/SortNode.java /...
public OrderSpecifierList visit(SortNodeList node, QuerydslSortParam filterParam) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-sort/src/main/java/com/github/vineey/rql/querydsl/sort/QuerydslSortBuilder.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortBuilder.java // public interface SortBuilder<T, E extends SortParam> { // T visit(SortNodeList node, E filterParam); // } // // Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/ast/SortNode.java /...
import java.util.ArrayList; import java.util.List; import java.util.Map; import com.github.vineey.rql.sort.SortBuilder; import com.github.vineey.rql.sort.parser.ast.SortNode; import com.github.vineey.rql.sort.parser.ast.SortNodeList; import com.querydsl.core.types.Order; import com.querydsl.core.types.OrderSpecifier; i...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/SortBuilder.java // public interface SortBuilder<T, E extends SortParam> { // T visit(SortNodeList node, E filterParam); // } // // Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/ast/SortNode.java /...
List<SortNode> sortNodes = node.getNodes();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/DateUtilTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.LocalDateTime; import com.github.vineey.rql.querydsl.filter.util.DateUtil; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
new DateUtil();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/ConverterUtilTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.math.BigDecimal; import java.math.BigInteger; import java.time.Month; import com.github.vineey.rql.querydsl.filter.CustomNumber; import com.github.vineey.rql.querydsl.filter.converter.ConverterConstant; import com.github.vineey.rql.querydsl.f...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
new ConverterUtil();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/ConverterUtilTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.math.BigDecimal; import java.math.BigInteger; import java.time.Month; import com.github.vineey.rql.querydsl.filter.CustomNumber; import com.github.vineey.rql.querydsl.filter.converter.ConverterConstant; import com.github.vineey.rql.querydsl.f...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
ConverterUtil.convert(CustomNumber.class, "1");
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/ConverterUtilTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.math.BigDecimal; import java.math.BigInteger; import java.time.Month; import com.github.vineey.rql.querydsl.filter.CustomNumber; import com.github.vineey.rql.querydsl.filter.converter.ConverterConstant; import com.github.vineey.rql.querydsl.f...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/CustomNumber.java // public class CustomNumber extends Number implements Comparable { // @Override // public double doubleValue() { // return 0; // } // // @Override // public int intValue...
Assert.assertNull(ConverterUtil.convert(Month.class, ConverterConstant.NULL));
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/BooleanPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.BooleanPath; import cz.jirutka.rsql.parser.ast.ComparisonNode; import cz.jirutka.rsql.parser.ast.ComparisonOperator; import static cz.jirutka.rsql.parser...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/QuerydslRsqlVisitor.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java // public final class PathConverterContext { // private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter(); // private static final EnumPathC...
import com.github.vineey.rql.querydsl.filter.converter.PathConverterContext; import com.google.common.collect.Lists; import com.querydsl.core.types.Ops; import com.querydsl.core.types.Path; import com.querydsl.core.types.Predicate; import com.querydsl.core.types.dsl.BooleanExpression; import cz.jirutka.rsql.parser.ast....
List<Node> children = Lists.newArrayList(node.getChildren()); Node firstNode = children.remove(0); BooleanExpression predicate = (BooleanExpression) firstNode.accept(this, param); for (Node subNode : children) { BooleanExpression subPredicate = (BooleanExpression) subNode.ac...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java // public final class PathConverterContext { // private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter(); // private static final EnumPathC...
return PathConverterContext.getOperator(path).evaluate(path, node);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/PathConverterContextTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java // public final class PathConverterContext { // private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter(); // private static final EnumPathC...
import com.github.vineey.rql.querydsl.filter.converter.PathConverterContext; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java // public final class PathConverterContext { // private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter(); // private static final EnumPathC...
new PathConverterContext();
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/test/java/com/github/vineey/rql/select/parser/ast/SelectTokenParserAdapterTest.java
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/exception/SelectParsingException.java // public class SelectParsingException extends RuntimeException { // public SelectParsingException(Throwable throwable) { // super(throwable); // } // }
import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.select.parser.exception.SelectParsingException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import o...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/exception/SelectParsingException.java // public class SelectParsingException extends RuntimeException { // public SelectParsingException(Throwable throwable) { // super(throwable); // } // } // Path: rsql-api-pa...
thrown.expect(SelectParsingException.class);
vineey/archelix-rsql
rsql-api-parent/rsql-api-sort/src/test/java/com/github/vineey/rql/sort/parser/ast/SortTokenParserAdapterTest.java
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/exception/SortParsingException.java // public class SortParsingException extends RuntimeException { // // public SortParsingException(Throwable cause) { // super(cause); // } // // }
import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.sort.parser.exception.SortParsingException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.j...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-sort/src/main/java/com/github/vineey/rql/sort/parser/exception/SortParsingException.java // public class SortParsingException extends RuntimeException { // // public SortParsingException(Throwable cause) { // super(cause); // } // // } // Path: rsql-api-parent/rsql-...
thrown.expect(SortParsingException.class);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/DatePathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
import com.github.vineey.rql.querydsl.filter.util.DateUtil; import com.querydsl.core.types.dsl.DatePath; import java.time.LocalDate;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
else if (pathFieldType.equals(LocalDate.class)) return DateUtil.parseLocalDate(argument);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/DateTimePathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
import com.querydsl.core.types.dsl.DateTimePath; import java.time.LocalDateTime; import com.github.vineey.rql.querydsl.filter.util.DateUtil;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/DateUtil.java // public final class DateUtil { // public static final String DATE_FORMAT = "yyyy-MM-dd"; // public static final String TIME_FORMAT = "HH:mm:ss"; // public static final String DATETIME_...
else if (pathFieldType.equals(LocalDateTime.class)) return DateUtil.parseLocalDateTime(argument);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-page/src/main/java/com/github/vineey/rql/querydsl/page/QuerydslPageBuilder.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageBuilder.java // public interface PageBuilder<T, E extends PageParam> { // T visit(PageNode pageNode, E pageParam); // } // // Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/ast/PageNode.java // ...
import com.github.vineey.rql.page.PageBuilder; import com.github.vineey.rql.page.parser.ast.PageNode; import com.querydsl.core.QueryModifiers;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/PageBuilder.java // public interface PageBuilder<T, E extends PageParam> { // T visit(PageNode pageNode, E pageParam); // } // // Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/ast/PageNode.java // ...
public QueryModifiers visit(PageNode pageNode, QuerydslPageParam pageParam) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_ListPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.filter.parser.DefaultFilterParser; import com.github.vineey.rql.querydsl.test.jpa.QEmployee; import ...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
private final static DefaultFilterParser DEFAULT_FILTER_PARSER = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_ListPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.filter.parser.DefaultFilterParser; import com.github.vineey.rql.querydsl.test.jpa.QEmployee; import ...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
withBuilderAndParam(new QuerydslFilterBuilder(), new QuerydslFilterParam()
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_SetPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.test.jpa.QEmployee.employee; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.filter.parser.DefaultFilte...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
private final static DefaultFilterParser DEFAULT_FILTER_PARSER = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_SetPath_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import java.util.Map; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.test.jpa.QEmployee.employee; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.filter.parser.DefaultFilte...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
withBuilderAndParam(new QuerydslFilterBuilder(), new QuerydslFilterParam()
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/EnumsTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/Enums.java // public final class Enums { // public static <E extends Enum<E>> E getEnum(Class<E> enumClass, String enumName) { // if (enumName == null) { // return null; // } // ...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.Month; import com.github.vineey.rql.querydsl.filter.util.Enums; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/Enums.java // public final class Enums { // public static <E extends Enum<E>> E getEnum(Class<E> enumClass, String enumName) { // if (enumName == null) { // return null; // } // ...
new Enums();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_Multiple_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.LocalDate; import java.util.LinkedHashMap; import java.util.List; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.util.FilterAssertUtil.withFilterParam; import st...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
private final static FilterParser FILTER_PARSER = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_Multiple_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.LocalDate; import java.util.LinkedHashMap; import java.util.List; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.util.FilterAssertUtil.withFilterParam; import st...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
private final static FilterParser FILTER_PARSER = new DefaultFilterParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_Multiple_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.LocalDate; import java.util.LinkedHashMap; import java.util.List; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.util.FilterAssertUtil.withFilterParam; import st...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
withBuilderAndParam(new QuerydslFilterBuilder(),
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/QuerydslFilterBuilder_Multiple_Test.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.time.LocalDate; import java.util.LinkedHashMap; import java.util.List; import static com.github.vineey.rql.filter.FilterContext.withBuilderAndParam; import static com.github.vineey.rql.querydsl.util.FilterAssertUtil.withFilterParam; import st...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java // public class DefaultFilterParser implements FilterParser { // private RSQLParser rsqlParser; // // public DefaultFilterParser() { // rsqlParser = new RSQLParser(QRSQLOperators.getOpera...
withFilterParam(new LinkedHashMap.SimpleEntry<>("name", String.class),
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/RSQLUtil.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
import com.github.vineey.rql.core.util.StringUtils; import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import cz.jirutka.rsql.parser.ast.ComparisonOperator; import cz.jirutka.rsql.parser.ast.RSQLOperators;
public static String build(String selector, ComparisonOperator op, String... args) { validateArgument(args); if (singleArgOps.contains(op)) { return selector + op.getSymbol() + args[0]; } else { return selector + op.getSymbol() + buildArguments(args); } } ...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/StringUtils.java // public class StringUtils { // public static boolean isEmpty(String time) { // return time == null || time.isEmpty(); // } // // public static boolean isNotEmpty(String time) { // return !i...
Preconditions.checkArgument(StringUtils.isNotEmpty(arg), "Argument should not be empty!");
vineey/archelix-rsql
rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/ast/SelectTokenParserAdapter.java
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/exception/SelectParsingException.java // public class SelectParsingException extends RuntimeException { // public SelectParsingException(Throwable throwable) { // super(throwable); // } // }
import com.github.vineey.rql.select.parser.exception.SelectParsingException; import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-select/src/main/java/com/github/vineey/rql/select/parser/exception/SelectParsingException.java // public class SelectParsingException extends RuntimeException { // public SelectParsingException(Throwable throwable) { // super(throwable); // } // } // Path: rsql-api-pa...
throw new SelectParsingException(e);
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/EnumPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import static cz.jirutka.rsql.parser.ast.RSQLOperators.*; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.github.vineey.rql.querydsl.filter.util.Enums; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.EnumPath; import cz.jirutka.rsql.parse...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/EnumPathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import static cz.jirutka.rsql.parser.ast.RSQLOperators.*; import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.github.vineey.rql.querydsl.filter.util.Enums; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.EnumPath; import cz.jirutka.rsql.parse...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
Enum enumArg = equalsNullConstant ? null : Enums.getEnum(path.getType(), argument);
vineey/archelix-rsql
rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
import com.github.vineey.rql.filter.FilterParam; import com.github.vineey.rql.filter.operator.QRSQLOperators; import cz.jirutka.rsql.parser.RSQLParser; import com.github.vineey.rql.filter.FilterContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
rsqlParser = new RSQLParser(QRSQLOperators.getOperators());
vineey/archelix-rsql
rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
import com.github.vineey.rql.filter.FilterParam; import com.github.vineey.rql.filter.operator.QRSQLOperators; import cz.jirutka.rsql.parser.RSQLParser; import com.github.vineey.rql.filter.FilterContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
public <T, E extends FilterParam> T parse(String rqlFilter, FilterContext<T, E> filterContext) {
vineey/archelix-rsql
rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/parser/DefaultFilterParser.java
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
import com.github.vineey.rql.filter.FilterParam; import com.github.vineey.rql.filter.operator.QRSQLOperators; import cz.jirutka.rsql.parser.RSQLParser; import com.github.vineey.rql.filter.FilterContext;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
// Path: rsql-api-parent/rsql-api-filter/src/main/java/com/github/vineey/rql/filter/FilterContext.java // public class FilterContext<T, E extends FilterParam> { // private FilterBuilder<T, E> filterBuilder; // private E filterParam; // // public static <T, E extends FilterParam> FilterContext<T, E> withBui...
public <T, E extends FilterParam> T parse(String rqlFilter, FilterContext<T, E> filterContext) {
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/RSQLUtilTest.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/RSQLUtil.java // public final class RSQLUtil { // private final static ImmutableList<ComparisonOperator> singleArgOps = ImmutableList.<ComparisonOperator>builder() // .add(RSQLOperators.EQUAL, // ...
import com.github.vineey.rql.querydsl.filter.util.RSQLUtil; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/util/RSQLUtil.java // public final class RSQLUtil { // private final static ImmutableList<ComparisonOperator> singleArgOps = ImmutableList.<ComparisonOperator>builder() // .add(RSQLOperators.EQUAL, // ...
new RSQLUtil();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/util/CollectionUtilTest.java
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
import org.junit.runners.JUnit4; import java.util.ArrayList; import com.github.vineey.rql.core.util.CollectionUtils; import com.google.common.collect.Lists; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith;
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-core/src/main/java/com/github/vineey/rql/core/util/CollectionUtils.java // public class CollectionUtils { // public static boolean isNotEmpty(Collection collection) { // return !isEmpty(collection); // } // // public static boolean isEmpty(Collection collection) { ...
new CollectionUtils();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-page/src/test/java/com/github/vineey/rql/querydsl/page/QuerydslPageContextTest.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
import static com.github.vineey.rql.querydsl.page.QuerydslPageContext.withDefault; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.page.parser.DefaultPageParser; import com.querydsl.core.QueryModifiers; import org.junit.Test; import org.junit.runne...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
DefaultPageParser defaultPageParser = new DefaultPageParser();
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-page/src/test/java/com/github/vineey/rql/querydsl/page/QuerydslPageContextTest.java
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
import static com.github.vineey.rql.querydsl.page.QuerydslPageContext.withDefault; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.github.vineey.rql.page.parser.DefaultPageParser; import com.querydsl.core.QueryModifiers; import org.junit.Test; import org.junit.runne...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Path: rsql-api-parent/rsql-api-page/src/main/java/com/github/vineey/rql/page/parser/DefaultPageParser.java // public class DefaultPageParser implements PageParser { // // private LimitParserAdapter limitParserAdapter = new LimitParserAdapter(); // // @Override // public <T, E extends PageParam> T parse...
QueryModifiers querydslPage = defaultPageParser.parse("limit(10, 5)", withDefault());
vineey/archelix-rsql
rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/AbstractTimeRangePathConverter.java
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
import com.github.vineey.rql.querydsl.filter.UnsupportedRqlOperatorException; import com.google.common.collect.Lists; import com.querydsl.core.types.dsl.BooleanExpression; import com.querydsl.core.types.dsl.TemporalExpression; import cz.jirutka.rsql.parser.ast.ComparisonNode; import cz.jirutka.rsql.parser.ast.Compariso...
/* * MIT License * * Copyright (c) 2016 John Michael Vincent S. Rustia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/UnsupportedRqlOperatorException.java // public class UnsupportedRqlOperatorException extends UnsupportedOperationException { // public UnsupportedRqlOperatorException(ComparisonNode comparisonNode, Class<? extends...
throw new UnsupportedRqlOperatorException(comparisonNode, path.getClass());
shibing624/crf-seg
src/main/java/org/xm/xmnlp/seg/domain/Term.java
// Path: src/main/java/org/xm/xmnlp/Xmnlp.java // public class Xmnlp { // /** // * 日志组件 // */ // private static Logger logger = LogManager.getLogger(); // // public static final class Config { // /** // * 默认关闭调试 // */ // public static boolean DEBUG = false; // ...
import org.xm.xmnlp.Xmnlp;
package org.xm.xmnlp.seg.domain; /** * Created by xuming on 2016/7/22. */ public class Term { /** * 词语 */ public String word; /** * 词性 */ public Nature nature; /** * 在文本中的起始位置(需开启分词器的offset选项) */ public int offset; /** * 长度 */ public int le...
// Path: src/main/java/org/xm/xmnlp/Xmnlp.java // public class Xmnlp { // /** // * 日志组件 // */ // private static Logger logger = LogManager.getLogger(); // // public static final class Config { // /** // * 默认关闭调试 // */ // public static boolean DEBUG = false; // ...
if (Xmnlp.Config.ShowTermNature)
shibing624/crf-seg
src/main/java/org/xm/xmnlp/collection/trie/ITrie.java
// Path: src/main/java/org/xm/xmnlp/dictionary/io/ByteArray.java // public class ByteArray { // byte[] bytes; // int offset; // // public ByteArray(byte[] bytes) { // this.bytes = bytes; // } // // /** // * 从文件读取一个字节数组 // * // * @param path // * @return // */ // ...
import org.xm.xmnlp.dictionary.io.ByteArray; import java.io.DataOutputStream; import java.util.TreeMap;
package org.xm.xmnlp.collection.trie; /** * trie树接口 */ public interface ITrie<V> { int build(TreeMap<String, V> keyValueMap); boolean save(DataOutputStream out);
// Path: src/main/java/org/xm/xmnlp/dictionary/io/ByteArray.java // public class ByteArray { // byte[] bytes; // int offset; // // public ByteArray(byte[] bytes) { // this.bytes = bytes; // } // // /** // * 从文件读取一个字节数组 // * // * @param path // * @return // */ // ...
boolean load(ByteArray byteArray, V[] value);
shibing624/crf-seg
src/main/java/org/xm/xmnlp/corpus/document/Sentence.java
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/IWord.java // public interface IWord extends Serializable { // String getValue(); // // String getLabel(); // // void setLabel(String label); // // void setValue(String value); // } // // Path: src/main/java/org/xm/xmnlp/corpus/document/word/W...
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.xm.xmnlp.corpus.document.word.IWord; import org.xm.xmnlp.corpus.document.word.WordFactory; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.rege...
package org.xm.xmnlp.corpus.document; /** * 句子,指的是以。,:!结尾的句子 */ public class Sentence implements Serializable { private static Logger logger = LogManager.getLogger();
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/IWord.java // public interface IWord extends Serializable { // String getValue(); // // String getLabel(); // // void setLabel(String label); // // void setValue(String value); // } // // Path: src/main/java/org/xm/xmnlp/corpus/document/word/W...
public List<IWord> wordList;
shibing624/crf-seg
src/main/java/org/xm/xmnlp/corpus/document/Sentence.java
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/IWord.java // public interface IWord extends Serializable { // String getValue(); // // String getLabel(); // // void setLabel(String label); // // void setValue(String value); // } // // Path: src/main/java/org/xm/xmnlp/corpus/document/word/W...
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.xm.xmnlp.corpus.document.word.IWord; import org.xm.xmnlp.corpus.document.word.WordFactory; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.rege...
package org.xm.xmnlp.corpus.document; /** * 句子,指的是以。,:!结尾的句子 */ public class Sentence implements Serializable { private static Logger logger = LogManager.getLogger(); public List<IWord> wordList; public Sentence(List<IWord> wordList) { this.wordList = wordList; } @Override publi...
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/IWord.java // public interface IWord extends Serializable { // String getValue(); // // String getLabel(); // // void setLabel(String label); // // void setValue(String value); // } // // Path: src/main/java/org/xm/xmnlp/corpus/document/word/W...
IWord word = WordFactory.create(single);
shibing624/crf-seg
src/main/java/org/xm/xmnlp/corpus/document/Document.java
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/CompoundWord.java // public class CompoundWord implements IWord { // private static Logger logger = LogManager.getLogger(); // /** // * 由这些词复合而来 // */ // public List<Word> innerList; // // public String label; // // @Override // ...
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.xm.xmnlp.corpus.document.word.CompoundWord; import org.xm.xmnlp.corpus.document.word.IWord; import org.xm.xmnlp.corpus.document.word.Word; import java.io.Serializable; import java.util.LinkedList; import java.util.List; impor...
List<Sentence> sentenceList = new LinkedList<Sentence>(); while (matcher.find()) { String single = matcher.group(); Sentence sentence = Sentence.create(single); if (sentence == null) { logger.warn("使用" + single + "构建句子失败"); return null;...
// Path: src/main/java/org/xm/xmnlp/corpus/document/word/CompoundWord.java // public class CompoundWord implements IWord { // private static Logger logger = LogManager.getLogger(); // /** // * 由这些词复合而来 // */ // public List<Word> innerList; // // public String label; // // @Override // ...
if (word instanceof CompoundWord) {
wangjiegulu/RapidRouter
app/src/main/java/com/wangjie/rapidrouter/example/ThisRapidRouterMapping.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.target.RouterTarget; import com.wangjie.rapidrouter.example.activity.AActivity; import com.wangjie.rapidrouter.example.activity.BActivity; import com.wangjie.rapidrouter.example.activity.CActivity; import java.util.HashMap;
package com.wangjie.rapidrouter.example; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/8/17. */ public class ThisRapidRouterMapping extends RapidRouterMapping { @Override
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
public HashMap<String, HashMap<String, RouterTarget>> calcSimpleRouterMapper(HashMap<String, HashMap<String, RouterTarget>> routerMapper) {
wangjiegulu/RapidRouter
app/src/main/java/com/wangjie/rapidrouter/example/ThisRapidRouterMapping.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.target.RouterTarget; import com.wangjie.rapidrouter.example.activity.AActivity; import com.wangjie.rapidrouter.example.activity.BActivity; import com.wangjie.rapidrouter.example.activity.CActivity; import java.util.HashMap;
package com.wangjie.rapidrouter.example; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/8/17. */ public class ThisRapidRouterMapping extends RapidRouterMapping { @Override public HashMap<String, HashMap<String, RouterTarget>> calcSimpleRouterMapper(HashMap<String, HashMap<String, RouterTar...
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
getEnsureMap(routerMapper, "rr").put("rapidrouter.a", new RouterTarget(AActivity.class, params));
wangjiegulu/RapidRouter
app/src/main/java/com/wangjie/rapidrouter/example/ThisRapidRouterMapping.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.target.RouterTarget; import com.wangjie.rapidrouter.example.activity.AActivity; import com.wangjie.rapidrouter.example.activity.BActivity; import com.wangjie.rapidrouter.example.activity.CActivity; import java.util.HashMap;
package com.wangjie.rapidrouter.example; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/8/17. */ public class ThisRapidRouterMapping extends RapidRouterMapping { @Override public HashMap<String, HashMap<String, RouterTarget>> calcSimpleRouterMapper(HashMap<String, HashMap<String, RouterTar...
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
getEnsureMap(routerMapper, "rr").put("rapidrouter.b", new RouterTarget(BActivity.class, params));
wangjiegulu/RapidRouter
library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/base/BaseAbstractProcessor.java
// Path: library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/util/GlobalEnvironment.java // public class GlobalEnvironment { // private static ProcessingEnvironment processingEnv; // // public static void init(ProcessingEnvironment processingEnv){ // GlobalEnvironment.processingEnv = proces...
import com.google.auto.common.MoreElements; import com.wangjie.rapidrouter.compiler.util.GlobalEnvironment; import com.wangjie.rapidrouter.compiler.util.LogUtil; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Filer; import javax.annotation.processing.ProcessingEnvironment; impo...
package com.wangjie.rapidrouter.compiler.base; /** * Author: wangjie * Email: tiantian.china.2@gmail.com * Date: 3/15/16. */ public abstract class BaseAbstractProcessor extends AbstractProcessor { protected Elements elementUtils; protected Types typeUtils; protected Filer filer; @Override p...
// Path: library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/util/GlobalEnvironment.java // public class GlobalEnvironment { // private static ProcessingEnvironment processingEnv; // // public static void init(ProcessingEnvironment processingEnv){ // GlobalEnvironment.processingEnv = proces...
GlobalEnvironment.init(processingEnv);
wangjiegulu/RapidRouter
library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/base/BaseAbstractProcessor.java
// Path: library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/util/GlobalEnvironment.java // public class GlobalEnvironment { // private static ProcessingEnvironment processingEnv; // // public static void init(ProcessingEnvironment processingEnv){ // GlobalEnvironment.processingEnv = proces...
import com.google.auto.common.MoreElements; import com.wangjie.rapidrouter.compiler.util.GlobalEnvironment; import com.wangjie.rapidrouter.compiler.util.LogUtil; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Filer; import javax.annotation.processing.ProcessingEnvironment; impo...
package com.wangjie.rapidrouter.compiler.base; /** * Author: wangjie * Email: tiantian.china.2@gmail.com * Date: 3/15/16. */ public abstract class BaseAbstractProcessor extends AbstractProcessor { protected Elements elementUtils; protected Types typeUtils; protected Filer filer; @Override p...
// Path: library-compiler/src/main/java/com/wangjie/rapidrouter/compiler/util/GlobalEnvironment.java // public class GlobalEnvironment { // private static ProcessingEnvironment processingEnv; // // public static void init(ProcessingEnvironment processingEnv){ // GlobalEnvironment.processingEnv = proces...
LogUtil.loggerE(throwable);
wangjiegulu/RapidRouter
library/src/main/java/com/wangjie/rapidrouter/core/strategy/RapidRouterStrategySimple.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.target.RouterTarget; import java.util.HashMap;
package com.wangjie.rapidrouter.core.strategy; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/10/17. */ public class RapidRouterStrategySimple extends RapidRouterAbstractStrategy { /** * HashMap<{scheme}, HashMap<{host}, {router target}>> */ private HashMap<String, HashMap<Strin...
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
public void onRapidRouterMappings(RapidRouterMapping[] rapidRouterMappings) {
wangjiegulu/RapidRouter
app/src/main/java/com/wangjie/rapidrouter/example/router/ThisOnRapidRouterListener.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RouterStuff.java // public class RouterStuff { // private WeakReference<Context> contextRef; // private Intent intent; // private String uriStr; // // private RouterErrorCallback error; // private RouterTargetNotFoundCallback targetNotFoun...
import android.util.Log; import com.wangjie.rapidrouter.core.RouterStuff; import com.wangjie.rapidrouter.core.listener.OnRapidRouterListener;
package com.wangjie.rapidrouter.example.router; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/8/17. */ public class ThisOnRapidRouterListener implements OnRapidRouterListener { private static final String TAG = ThisOnRapidRouterListener.class.getSimpleName(); @Override
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RouterStuff.java // public class RouterStuff { // private WeakReference<Context> contextRef; // private Intent intent; // private String uriStr; // // private RouterErrorCallback error; // private RouterTargetNotFoundCallback targetNotFoun...
public void onRouterTargetNotFound(RouterStuff routerStuff) {
wangjiegulu/RapidRouter
library/src/main/java/com/wangjie/rapidrouter/core/strategy/RapidRouterStrategy.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.target.RouterTarget;
package com.wangjie.rapidrouter.core.strategy; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/10/17. */ public interface RapidRouterStrategy { void onRapidRouterMappings(RapidRouterMapping[] rapidRouterMappings); @Nullable
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
RouterTarget findRouterTarget(@NonNull Uri uri);
wangjiegulu/RapidRouter
library/src/main/java/com/wangjie/rapidrouter/core/config/RapidRouterConfiguration.java
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.wangjie.rapidrouter.core.RapidRouterMapping; import com.wangjie.rapidrouter.core.strategy.RapidRouterStrategy;
package com.wangjie.rapidrouter.core.config; /** * Author: wangjie Email: tiantian.china.2@gmail.com Date: 2/10/17. */ public interface RapidRouterConfiguration { /** * 配置路由策略 */ @NonNull
// Path: library/src/main/java/com/wangjie/rapidrouter/core/RapidRouterMapping.java // public abstract class RapidRouterMapping { // // protected HashMap<String, RouterTarget> getEnsureMap(HashMap<String, HashMap<String, RouterTarget>> routerMapper, String key) { // HashMap<String, RouterTarget> map = rout...
RapidRouterStrategy[] configRapidRouterStrategies();