@Test public void testCreatePreanalyzedTokenForTokenSequence() { List<IToken> list = new ArrayList<>(); PreanalyzedToken token = createPreanalyzedTokenInTokenSequence(list, "aterm", 0, 0, 0, null, null, 0); assertEquals(1, token.positionIncrement); list.add(token); token = createPreanalyzedTokenInTokenSequence(list, "aterm", 0, 0, 0, null, null, 0); assertEquals(0, token.positionIncrement); }
public PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start, int end, int posIncr, byte[] payload, String type, int flags) { int effectivePosIncr = posIncr; if (fieldValueList.isEmpty() && posIncr == 0) effectivePosIncr = 1; PreanalyzedToken token = createPreanalyzedToken(term, start, end, effectivePosIncr, payload, type, flags); return token; }
AbstractFieldGenerator { public PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start, int end, int posIncr, byte[] payload, String type, int flags) { int effectivePosIncr = posIncr; if (fieldValueList.isEmpty() && posIncr == 0) effectivePosIncr = 1; PreanalyzedToken token = createPreanalyzedToken(term, start, end, effectivePosIncr, payload, type, flags); return token; } }
AbstractFieldGenerator { public PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start, int end, int posIncr, byte[] payload, String type, int flags) { int effectivePosIncr = posIncr; if (fieldValueList.isEmpty() && posIncr == 0) effectivePosIncr = 1; PreanalyzedToken token = createPreanalyzedToken(term, start, end, effectivePosIncr, payload, type, flags); return token; } @Deprecated  AbstractFieldGenerator(String fieldname); @Deprecated  AbstractFieldGenerator(String fieldname, FilterRegistry filterRegistry);  AbstractFieldGenerator();  AbstractFieldGenerator(FilterRegistry filterRegistry); }
AbstractFieldGenerator { public PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start, int end, int posIncr, byte[] payload, String type, int flags) { int effectivePosIncr = posIncr; if (fieldValueList.isEmpty() && posIncr == 0) effectivePosIncr = 1; PreanalyzedToken token = createPreanalyzedToken(term, start, end, effectivePosIncr, payload, type, flags); return token; } @Deprecated  AbstractFieldGenerator(String fieldname); @Deprecated  AbstractFieldGenerator(String fieldname, FilterRegistry filterRegistry);  AbstractFieldGenerator();  AbstractFieldGenerator(FilterRegistry filterRegistry); void setFilterRegistry(FilterRegistry filterRegistry); @SuppressWarnings("unchecked") List<T> getTokensForAnnotationIndexes(FeaturePathSets featurePathSets,
			Filter filterForField, boolean sort, Class<T> tokenClass, AnnotationFS coveringAnnotation,
			DistributedField<? extends IToken> distributedFields, JCas aJCas); @SuppressWarnings("unchecked") T createRawFieldValueForString(String input, Filter f); ArrayFieldValue createRawArrayFieldValue(Collection<T> fieldValues); @SuppressWarnings("unchecked") ArrayFieldValue createRawArrayFieldValue(Collection<T> fieldValues, Filter filter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath, Filter filter,
			Filter overallFilter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath, Filter filter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] a, String[] featurePaths); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] a, String[] featurePaths,
			Filter[] filters); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fss, String[] featurePaths,
			Filter[] filters, Filter overallFilter); ArrayFieldValue createRawFieldValueForAnnotation(FeatureStructure annotation, String[] featurePaths,
			Filter[] filters); IFieldValue createRawFieldValueForAnnotation(FeatureStructure fs, String featurePath, Filter f); PreanalyzedFieldValue createPreanalyzedFieldValue(String stringValue, List<PreanalyzedToken> tokens); PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start,
			int end, int posIncr, byte[] payload, String type, int flags); String getFieldname(); void setFieldname(String fieldname); void addFieldSubgenerator(FieldGenerator subgenerator); FieldGenerator getFieldSubgenerator(Class<? extends FieldGenerator> generatorClass); void addInnerDocumentGenerator(FieldValueGenerator subgenerator); FieldValueGenerator getInnerDocumentGenerator(Class<? extends FieldValueGenerator> generatorClass); @Deprecated void addSubgeneratorFeatureStructure(Object key, TOP featureStructure); Map<Class<?>, List<TOP>> getSubgeneratorFS(); }
AbstractFieldGenerator { public PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start, int end, int posIncr, byte[] payload, String type, int flags) { int effectivePosIncr = posIncr; if (fieldValueList.isEmpty() && posIncr == 0) effectivePosIncr = 1; PreanalyzedToken token = createPreanalyzedToken(term, start, end, effectivePosIncr, payload, type, flags); return token; } @Deprecated  AbstractFieldGenerator(String fieldname); @Deprecated  AbstractFieldGenerator(String fieldname, FilterRegistry filterRegistry);  AbstractFieldGenerator();  AbstractFieldGenerator(FilterRegistry filterRegistry); void setFilterRegistry(FilterRegistry filterRegistry); @SuppressWarnings("unchecked") List<T> getTokensForAnnotationIndexes(FeaturePathSets featurePathSets,
			Filter filterForField, boolean sort, Class<T> tokenClass, AnnotationFS coveringAnnotation,
			DistributedField<? extends IToken> distributedFields, JCas aJCas); @SuppressWarnings("unchecked") T createRawFieldValueForString(String input, Filter f); ArrayFieldValue createRawArrayFieldValue(Collection<T> fieldValues); @SuppressWarnings("unchecked") ArrayFieldValue createRawArrayFieldValue(Collection<T> fieldValues, Filter filter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath, Filter filter,
			Filter overallFilter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath, Filter filter); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fs, String featurePath); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] a, String[] featurePaths); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] a, String[] featurePaths,
			Filter[] filters); ArrayFieldValue createRawFieldValueForAnnotations(FeatureStructure[] fss, String[] featurePaths,
			Filter[] filters, Filter overallFilter); ArrayFieldValue createRawFieldValueForAnnotation(FeatureStructure annotation, String[] featurePaths,
			Filter[] filters); IFieldValue createRawFieldValueForAnnotation(FeatureStructure fs, String featurePath, Filter f); PreanalyzedFieldValue createPreanalyzedFieldValue(String stringValue, List<PreanalyzedToken> tokens); PreanalyzedToken createPreanalyzedTokenInTokenSequence(List<?> fieldValueList, String term, int start,
			int end, int posIncr, byte[] payload, String type, int flags); String getFieldname(); void setFieldname(String fieldname); void addFieldSubgenerator(FieldGenerator subgenerator); FieldGenerator getFieldSubgenerator(Class<? extends FieldGenerator> generatorClass); void addInnerDocumentGenerator(FieldValueGenerator subgenerator); FieldValueGenerator getInnerDocumentGenerator(Class<? extends FieldValueGenerator> generatorClass); @Deprecated void addSubgeneratorFeatureStructure(Object key, TOP featureStructure); Map<Class<?>, List<TOP>> getSubgeneratorFS();  }