A C F G L M P R T

A

add(Patrun, Map<String, String>, Object) - Method in interface com.nearform.patrun.Customiser
Called when a node is added to the decision tree
add(Map<String, String>, Object) - Method in class com.nearform.patrun.Patrun
Register a pattern, and the object that will be returned if an input matches.
add(String, Object) - Method in class com.nearform.patrun.Patrun
Register a pattern, and the object that will be returned if an input matches.

C

com.nearform.patrun - package com.nearform.patrun
 
Customiser - Interface in com.nearform.patrun
Interface to be implemented if you need to customise the add / find or remove behaviour of a Patrun object

F

find(Patrun, Map<String, String>, Object) - Method in interface com.nearform.patrun.Modifier
Called when a node is matched against a pattern on the find method of Patrun
find(Map<String, String>, Boolean) - Method in class com.nearform.patrun.Patrun
Return the unique match for this subject, or null if not found.
find(Map<String, String>) - Method in class com.nearform.patrun.Patrun
Return the unique match for this subject, or null if not found.
find(String) - Method in class com.nearform.patrun.Patrun
Return the unique match for this subject, or null if not found.
find(String, Boolean) - Method in class com.nearform.patrun.Patrun
Return the unique match for this subject, or null if not found.

G

getData() - Method in class com.nearform.patrun.Pattern
Get the data object for this item
getMatch() - Method in class com.nearform.patrun.Pattern
Get the pattern for this item
getModifier() - Method in class com.nearform.patrun.Pattern
Get the custom modifier for this item

L

list(Map<String, String>, Boolean) - Method in class com.nearform.patrun.Patrun
Return the list of registered patterns that contain this partial pattern.
list() - Method in class com.nearform.patrun.Patrun
Return the list of all registered patterns.
list(Map<String, String>) - Method in class com.nearform.patrun.Patrun
Return the list of registered patterns that contain this partial pattern.
list(String) - Method in class com.nearform.patrun.Patrun
Return the list of registered patterns that contain this partial pattern.
list(String, Boolean) - Method in class com.nearform.patrun.Patrun
Return the list of registered patterns that contain this partial pattern.

M

Modifier - Interface in com.nearform.patrun
An interface for a custom modifier used to customise the find and remove methods

P

Patrun - Class in com.nearform.patrun
Package patrun is a fast pattern matcher on Go map properties For a full guide visit https://github.com/colmharte/patrun-java Need to pick out an object based on a subset of its properties? Say you've got: { x: 1 } -> A { x: 1, y: 1 } -> B { x: 1, y: 2 } -> C Then patrun can give you the following results: { x: 1 } -> A { x: 2 } -> no match { x: 1, y: 1 } -> B { x: 1, y: 2 } -> C { x: 2, y: 2 } -> no match { y: 1 } -> no match It's basically _query-by-example_ for property sets.
Patrun() - Constructor for class com.nearform.patrun.Patrun
 
Patrun(Customiser) - Constructor for class com.nearform.patrun.Patrun
Constructor taking a customiser object to allow the add / find / remove method results to be customised
Pattern - Class in com.nearform.patrun
Represents a data Node within the patrun decision tree
Pattern(Map<String, String>, Object, Modifier) - Constructor for class com.nearform.patrun.Pattern
Construct an instance of Pattern
Printer - Interface in com.nearform.patrun
A simple interface to that can be passed ionto the toString method of patrun to allow data objects to be ciustom formatted when being generated into a String

R

remove(Patrun, Map<String, String>, Object) - Method in interface com.nearform.patrun.Modifier
Called when a node is about to be removed from the decision tree
remove(Map<String, String>) - Method in class com.nearform.patrun.Patrun
Remove this pattern, and it's object, from the matcher.
remove(String) - Method in class com.nearform.patrun.Patrun
Remove this pattern, and it's object, from the matcher.

T

toString() - Method in class com.nearform.patrun.Patrun
Generate a string representation of the decision tree for debugging.
toString(Printer) - Method in class com.nearform.patrun.Patrun
Generate a string representation of the decision tree for debugging.
toString(Object) - Method in interface com.nearform.patrun.Printer
A toString method to generate a custom String representation of an object

A C F G L M P R T

Copyright © 2015. All rights reserved.