signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class DeleteJobRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteJobRequest deleteJobRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteJobRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteJobRequest . getJobName ( ) , JOBNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage...
public class MsgPhrase { /** * Returns for given parameter < i > _ name < / i > the instance of class * { @ link MsgPhrase } . * @ param _ name name of the system configuration * @ return instance of class { @ link MsgPhrase } * @ throws EFapsException on error */ public static MsgPhrase get ( final String _nam...
final Cache < String , MsgPhrase > cache = InfinispanCache . get ( ) . < String , MsgPhrase > getCache ( MsgPhrase . NAMECACHE ) ; if ( ! cache . containsKey ( _name ) ) { MsgPhrase . loadMsgPhrase ( _name ) ; } return cache . get ( _name ) ;
public class SMBFileShareInfoMarshaller { /** * Marshall the given parameter object . */ public void marshall ( SMBFileShareInfo sMBFileShareInfo , ProtocolMarshaller protocolMarshaller ) { } }
if ( sMBFileShareInfo == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( sMBFileShareInfo . getFileShareARN ( ) , FILESHAREARN_BINDING ) ; protocolMarshaller . marshall ( sMBFileShareInfo . getFileShareId ( ) , FILESHAREID_BINDING ) ; protoc...
public class ExcelTools { /** * 将StringTokenizer类型数据转化生成字符串数 � ? * @ param sourceStr 解析 " , " 间隔的字符串 , 变成字符串数组 * @ param strDot */ private String [ ] Tokenizer2StringArray ( String sourceStr , String strDot ) { } }
StringTokenizer st = new StringTokenizer ( sourceStr , strDot ) ; int size = st . countTokens ( ) ; String [ ] strArray = new String [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { strArray [ i ] = st . nextToken ( ) ; } return strArray ;
public class AbstractRestClient { /** * Build a keystore with certificates loaded from resource * Certificates can be in binary or base64 DER / . crt format . * @ param certResourcesthe resource names * @ returnthe key store * @ throws KeyStoreExceptionif the key store couldn ' t be created * @ throws Certifi...
KeyStore keyStore = KeyStore . getInstance ( KeyStore . getDefaultType ( ) ) ; keyStore . load ( null ) ; for ( String res : certResources ) { X509Certificate cert = loadX509CertificateFromResource ( res ) ; String alias = cert . getSubjectX500Principal ( ) . getName ( ) ; keyStore . setCertificateEntry ( alias , cert ...
public class FluxBuilder { /** * Given a topology definition , resolve and instantiate all components found and return a map * keyed by the component id . */ private static void buildComponents ( ExecutionContext context ) throws ClassNotFoundException , NoSuchMethodException , IllegalAccessException , InvocationTarg...
Collection < BeanDef > cDefs = context . getTopologyDef ( ) . getComponents ( ) ; if ( cDefs != null ) { for ( BeanDef bean : cDefs ) { Object obj = buildObject ( bean , context ) ; context . addComponent ( bean . getId ( ) , obj ) ; } }
public class SelectContext { /** * Selects an option by its value . * @ param value The value of the option that shall be selected . * @ return A { @ link de . codecentric . zucchini . web . steps . SelectStep } that selects an option by its value . */ public SelectStep value ( String value ) { } }
return new SelectStep ( element , value , SelectStep . OptionSelectorType . VALUE ) ;
public class CollectionUtils { /** * As multi value map . * @ param innerMap the inner map * @ return the multi value map */ public static MultiValueMap asMultiValueMap ( final Map innerMap ) { } }
return org . springframework . util . CollectionUtils . toMultiValueMap ( innerMap ) ;
public class ElementBase { /** * Locates and returns a child that is an instance of the specified class . If none is found , * returns null . * @ param < T > The type of child being sought . * @ param clazz Class of the child being sought . * @ param last If specified , the search begins after this child . If n...
int i = last == null ? - 1 : children . indexOf ( last ) ; for ( i ++ ; i < children . size ( ) ; i ++ ) { if ( clazz . isInstance ( children . get ( i ) ) ) { return ( T ) children . get ( i ) ; } } return null ;
public class ChineseTrans { /** * 将全角传闻半角 、 繁体转为简体 * @ param input * @ return */ public String normalize ( String input ) { } }
char [ ] c = input . toCharArray ( ) ; normalise ( c ) ; return new String ( c ) ;
public class WeldConfiguration { /** * Iterate through the { @ link ConfigurationKey # values ( ) } and try to get a system property for every key . The value is automatically converted - a runtime * exception may be thrown during conversion . * @ return all the properties set as system properties */ private Map < ...
Map < ConfigurationKey , Object > found = new EnumMap < ConfigurationKey , Object > ( ConfigurationKey . class ) ; for ( ConfigurationKey key : ConfigurationKey . values ( ) ) { String property = getSystemProperty ( key . get ( ) ) ; if ( property != null ) { processKeyValue ( found , key , property ) ; } } return foun...
public class GeometryType { /** * Returns the value SRID parameter . * @ return the SRID or < code > null < / code > if not present . */ public Integer getSRID ( ) { } }
Integer srid = null ; if ( getParameters ( ) . length > 1 && getParameters ( ) [ 1 ] != null ) { srid = Integer . valueOf ( getParameters ( ) [ 1 ] . toString ( ) ) ; } return srid ;
public class TaskStatistics { /** * Get key of type String */ public String getStringValue ( Enum key ) { } }
if ( this . _task . get ( key ) == null ) { return "" ; } else { return this . _task . get ( key ) ; }
public class JasperUtil { /** * Images are in the master file */ public static Report restoreImagesName ( Report report ) { } }
JasperContent reportContent = ( JasperContent ) report . getContent ( ) ; JcrFile masterFile = reportContent . getMaster ( ) ; try { String masterContent = new String ( masterFile . getDataProvider ( ) . getBytes ( ) , "UTF-8" ) ; if ( reportContent . getImageFiles ( ) != null ) { for ( JcrFile imageFile : reportConten...
public class CmsImportHelper { /** * Returns a stream for the content of the file . < p > * @ param fileName the name of the file to stream , relative to the folder or zip file * @ return an input stream for the content of the file , remember to close it after using * @ throws CmsImportExportException if somethin...
try { InputStream stream = null ; // is this a zip - file ? if ( getZipFile ( ) != null ) { // yes ZipEntry entry = getZipFile ( ) . getEntry ( fileName ) ; // path to file might be relative , too if ( ( entry == null ) && fileName . startsWith ( "/" ) ) { entry = getZipFile ( ) . getEntry ( fileName . substring ( 1 ) ...
public class JMXetricXmlConfigurationService { /** * Gets a list of MBeanAttributes for a single < mbean > , they correspond to * the < attribute > tags in the XML file . * @ param mBean * the < mbean > node * @ param sampleDMax * value of dmax passed down from < sample > * @ return a list of attributes ass...
String mBeanName = selectParameterFromNode ( mBean , "name" , null ) ; String mBeanPublishName = selectParameterFromNode ( mBean , "pname" , "" ) ; String mBeanDMax = selectParameterFromNode ( mBean , "dmax" , sampleDMax ) ; log . finer ( "Mbean is " + mBeanName ) ; NodeList attrs = getXmlNodeSet ( "attribute" , mBean ...
public class Expression { /** * Add field : value */ public Expression add ( String field , boolean value ) { } }
return add ( field , JsonNodeFactory . instance . booleanNode ( value ) ) ;
public class ObjectInputStream { /** * Reads the fields of the specified { @ link Streamable } instance from the input stream using * the default object streaming mechanisms ( a call is not made to < code > readObject ( ) < / code > , * even if such a method exists ) . */ public void defaultReadObject ( ) throws IO...
// sanity check if ( _current == null ) { throw new RuntimeException ( "defaultReadObject() called illegally." ) ; } // read the instance data _streamer . readObject ( _current , this , false ) ;
public class CacheEntry { /** * Delete the cached build after the specified delay in minues * @ param mgr * The cache manager . May be null if persist hasn ' t yet been * called , in which case , persist will have no effect when it * is called . */ public synchronized void delete ( final ICacheManager mgr ) { }...
delete = true ; if ( filename != null ) { mgr . deleteFileDelayed ( filename ) ; }
public class ForkChannel { /** * Removes the fork - channel from the fork - stack ' s hashmap and resets its state . Does < em > not < / em > affect the * main - channel */ @ Override public ForkChannel disconnect ( ) { } }
if ( state != State . CONNECTED ) return this ; prot_stack . down ( new Event ( Event . DISCONNECT , local_addr ) ) ; // will be discarded by ForkProtocol prot_stack . stopStack ( cluster_name ) ; ( ( ForkProtocolStack ) prot_stack ) . remove ( fork_channel_id ) ; nullFields ( ) ; state = State . OPEN ; notifyChannelDi...
public class ApiOvhRouter { /** * Get this object properties * REST : GET / router / { serviceName } / privateLink / { peerServiceName } * @ param serviceName [ required ] The internal name of your Router offer * @ param peerServiceName [ required ] Service name of the other side of this link */ public OvhPrivate...
String qPath = "/router/{serviceName}/privateLink/{peerServiceName}" ; StringBuilder sb = path ( qPath , serviceName , peerServiceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPrivateLink . class ) ;
public class AbstractProviderResolver { /** * Close a given config , if it ' s a WebSphereConfig */ private void closeConfig ( Config config ) { } }
if ( config instanceof WebSphereConfig ) { try { ( ( WebSphereConfig ) config ) . close ( ) ; } catch ( IOException e ) { throw new ConfigException ( Tr . formatMessage ( tc , "could.not.close.CWMCG0004E" , e ) ) ; } }
public class PhotosApi { /** * Returns all visible sets and pools the photo belongs to . * < br > * This method does not require authentication . * @ param photoId photo id to find contexts for . * @ return object with a list of all sets and pools the photo is in . * @ throws JinxException if the photo id is ...
JinxUtils . validateParams ( photoId ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.photos.getAllContexts" ) ; params . put ( "photo_id" , photoId ) ; return jinx . flickrGet ( params , AllContexts . class ) ;
public class Registry { /** * Get the value nodes in this name / value chain . * @ param header The message header that contains the name / value tree . * @ oaram bAddIfNotFound Add the value if it is not found . * @ return The node at the end of the name / value tree . */ public NameValue [ ] getNameValueArray (...
Object [ ] [ ] mxString = header . getNameValueTree ( ) ; NameValue [ ] rgNodes = new NameValue [ 10 ] ; rgNodes [ 0 ] = this ; int i = 0 ; if ( mxString != null ) { for ( ; i < mxString . length ; i ++ ) { rgNodes [ i + 1 ] = rgNodes [ i ] . getNameValueNode ( ( String ) mxString [ i ] [ MessageConstants . NAME ] , mx...
public class RemoveUnusedCode { /** * Traverses everything in the current scope and marks variables that * are referenced . * During traversal , we identify subtrees that will only be * referenced if their enclosing variables are referenced . Instead of * traversing those subtrees , we create a continuation for...
Node parent = n . getParent ( ) ; Token type = n . getToken ( ) ; switch ( type ) { case CATCH : traverseCatch ( n , scope ) ; break ; case FUNCTION : { VarInfo varInfo = null ; // If this function is a removable var , then create a continuation // for it instead of traversing immediately . if ( NodeUtil . isFunctionDe...
public class GlobalMetadata { /** * Set an arbitrary file - level metadata key */ public void setFileMetadata ( String file , String key , Object val ) { } }
throwIfImmutable ( ) ; Map < String , Object > fileKeys = fileLevel . get ( file ) ; if ( fileKeys == null ) { fileKeys = new ConcurrentHashMap < > ( ) ; fileLevel . put ( file , fileKeys ) ; } fileKeys . put ( key , val ) ; cachedId = null ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link EllipsoidType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link EllipsoidType } { @ code > } */ @ ...
return new JAXBElement < EllipsoidType > ( _Ellipsoid_QNAME , EllipsoidType . class , null , value ) ;
public class AndroidGraphics { /** * Registers a font with the graphics system . * @ param path the path to the font resource ( relative to the asset manager ' s path prefix ) . * @ param name the name under which to register the font . * @ param style the style variant of the specified name provided by the font ...
try { registerFont ( platform . assets ( ) . getTypeface ( path ) , name , style , ligatureGlyphs ) ; } catch ( Exception e ) { platform . reportError ( "Failed to load font [name=" + name + ", path=" + path + "]" , e ) ; }
public class X509CertImpl { /** * Gets the extension identified by the given ObjectIdentifier * @ param oid the Object Identifier value for the extension . * @ return Extension or null if certificate does not contain this * extension */ public Extension getExtension ( ObjectIdentifier oid ) { } }
if ( info == null ) { return null ; } try { CertificateExtensions extensions ; try { extensions = ( CertificateExtensions ) info . get ( CertificateExtensions . NAME ) ; } catch ( CertificateException ce ) { return null ; } if ( extensions == null ) { return null ; } else { Extension ex = extensions . getExtension ( oi...
public class EntityCacheHelper { /** * 查询并缓存结果 ( 默认缓存一天 ) * @ param entityClass 实体类class ( 用户组装实际的缓存key ) * @ param key 缓存的key ( 和entityClass一起组成真实的缓存key 。 < br > 如entityClass = UserEntity . class , key = findlist , 实际的key为 : UserEntity . findlist ) * @ param dataCaller 缓存不存在数据加载源 * @ return */ public static < ...
return queryTryCache ( entityClass , key , CacheHandler . defaultCacheExpire , dataCaller ) ;
public class Resolver { /** * Resolves a BelTerm , as a { @ link String } , to an equivalent * { @ link KamNode } in the { @ link Kam } . * @ param kam { @ link Kam } , the KAM to resolve against * @ param kAMStore { @ link KAMStore } , the KAM store to use in resolving the * bel term expression * @ param bel...
if ( nulls ( kam , kAMStore , belTerm , nsmap , equivalencer ) ) { throw new InvalidArgument ( "null parameter(s) provided to resolve API." ) ; } try { // algorithm : // - parse the bel term // - get all parameters ; remap to kam namespace by prefix // - convert bel term to string replacing each parameter with ' # ' //...
public class SearchSkillGroupsResult { /** * The skill groups that meet the filter criteria , in sort order . * @ param skillGroups * The skill groups that meet the filter criteria , in sort order . */ public void setSkillGroups ( java . util . Collection < SkillGroupData > skillGroups ) { } }
if ( skillGroups == null ) { this . skillGroups = null ; return ; } this . skillGroups = new java . util . ArrayList < SkillGroupData > ( skillGroups ) ;
public class BootstrapConfig { /** * Add properties from source to target if the target map does not * already contain a property with that value . When a new attribute * is discovered , System properties are checked to see if an override * has been specified . If the property is present as a System property * ...
if ( source == null || source . isEmpty ( ) || target == null ) return ; // only add " new " properties ( first value wins ) for ( String key : source . stringPropertyNames ( ) ) { if ( ! target . containsKey ( key ) && key . length ( ) > 0 ) { // Check for a System property override first . String value = System . get...
public class KeyValuePairTokenizer { /** * decoding part */ public void initToken ( String token ) { } }
values . clear ( ) ; if ( token == null ) return ; String [ ] parts = token . split ( "&" ) ; for ( int i = 0 ; i < parts . length ; i ++ ) { String [ ] sub = parts [ i ] . split ( "=" ) ; if ( sub . length < 1 ) continue ; String name = sub [ 0 ] ; String value = "" ; if ( sub . length >= 2 ) value = sub [ 1 ] ; value...
public class Modification { /** * Writes this modification to the { @ link ByteBuf } . * @ param byteBuf the { @ link ByteBuf } to write to . * @ param codec the { @ link Codec } to use . */ public void writeTo ( ByteBuf byteBuf , Codec codec ) { } }
writeArray ( byteBuf , key ) ; byteBuf . writeByte ( control ) ; if ( ! ControlByte . NON_EXISTING . hasFlag ( control ) && ! ControlByte . NOT_READ . hasFlag ( control ) ) { byteBuf . writeLong ( versionRead ) ; } if ( ControlByte . REMOVE_OP . hasFlag ( control ) ) { return ; } codec . writeExpirationParams ( byteBuf...
public class DestinationUrl { /** * Creates an instance of an connection URL based on an destination string . In case that the destination string does * not match the form HOST ? QUEUE | | TOPIC an IllegalArgumentException is thrown . */ public static DestinationUrl createDestinationUrl ( String destination ) { } }
String [ ] split = splitDestination ( destination ) ; String host = split [ 0 ] . trim ( ) ; String jmsDestination = split [ 1 ] . trim ( ) ; return new DestinationUrl ( host , jmsDestination ) ;
public class PublicIPAddressesInner { /** * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set . * @ param resourceGroupName The name of the resource group . * @ param virtualMachineScaleSetName The name of the virtual machine scale set . * @ param ...
return AzureServiceFuture . fromPageResponse ( listVirtualMachineScaleSetVMPublicIPAddressesSinglePageAsync ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , ipConfigurationName ) , new Func1 < String , Observable < ServiceResponse < Page < PublicIPAddressInner > > > > ( ) ...
public class AbstractCLA { /** * { @ inheritDoc } */ @ Override public Enum < ? > [ ] asEnumArray ( final String _name , final Object [ ] _possibleConstants ) throws ParseException { } }
// should not be called . throw new ParseException ( "invalid to store " + this . toString ( ) + " in an Enum[]" , 0 ) ;
public class JsAdminServiceImpl { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . admin . JsAdminService # getMessagingEngine ( java . lang . String , java . lang . String ) */ public JsMessagingEngine getMessagingEngine ( String busName , String engine ) { } }
if ( ! isInitialized ( ) ) { return null ; } return _jsmain . getMessagingEngine ( busName , engine ) ;
public class TiffReader { /** * Read the IFDs contained in the Tiff file . */ private void readIFDs ( ) { } }
int offset0 = 0 ; try { // The pointer to the first IFD is located in bytes 4-7 offset0 = data . readLong ( 4 ) . toInt ( ) ; tiffModel . setFirstIFDOffset ( offset0 ) ; if ( offset0 == 0 ) validation . addErrorLoc ( "There is no first IFD" , "Header" ) ; else if ( offset0 > data . size ( ) ) validation . addErrorLoc (...
public class GenerateCryptoKeysCommand { /** * Generate key . * @ param keySize the key size */ @ ShellMethod ( key = "generate-key" , value = "Generate signing/encryption crypto keys for CAS settings" ) public void generateKey ( @ ShellOption ( value = { } }
"key-size" } , defaultValue = "256" , help = "Key size" ) final int keySize ) { LOGGER . info ( EncodingUtils . generateJsonWebKey ( keySize ) ) ;
public class ListDevicePoolsResult { /** * Information about the device pools . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setDevicePools ( java . util . Collection ) } or { @ link # withDevicePools ( java . util . Collection ) } if you want to * overr...
if ( this . devicePools == null ) { setDevicePools ( new java . util . ArrayList < DevicePool > ( devicePools . length ) ) ; } for ( DevicePool ele : devicePools ) { this . devicePools . add ( ele ) ; } return this ;
public class RandomVariableDifferentiableAD { /** * Binary operators : checking for return type priority . */ @ Override public RandomVariable add ( RandomVariable randomVariable ) { } }
if ( randomVariable . getTypePriority ( ) > this . getTypePriority ( ) ) { // Check type priority return randomVariable . add ( this ) ; } return new RandomVariableDifferentiableAD ( getValues ( ) . add ( randomVariable . getValues ( ) ) , Arrays . asList ( this , randomVariable ) , OperatorType . ADD ) ;
public class OpenTSDBMain { /** * Reads the pid from the specified pid file * @ param pidFile The pid file to read from * @ return The read pid or possibly null / blank if failed to read */ private static Long getPid ( File pidFile ) { } }
FileReader reader = null ; BufferedReader lineReader = null ; String pidLine = null ; try { reader = new FileReader ( pidFile ) ; lineReader = new BufferedReader ( reader ) ; pidLine = lineReader . readLine ( ) ; if ( pidLine != null ) { pidLine = pidLine . trim ( ) ; } } catch ( Exception ex ) { log . error ( "Failed ...
public class CellMaskedMatrix { /** * { @ inheritDoc } */ public double get ( int row , int col ) { } }
row = getIndexFromMap ( rowMaskMap , row ) ; col = getIndexFromMap ( colMaskMap , col ) ; return matrix . get ( row , col ) ;
public class CSSPageRuleImpl { /** * { @ inheritDoc } */ @ Override public String getCssText ( ) { } }
final StringBuilder sb = new StringBuilder ( ) ; final String sel = getSelectorText ( ) ; sb . append ( "@page " ) . append ( sel ) ; if ( sel . length ( ) > 0 ) { sb . append ( " " ) ; } sb . append ( "{" ) ; final CSSStyleDeclarationImpl style = getStyle ( ) ; if ( null != style ) { sb . append ( style . getCssText (...
public class MetricsCacheManager { /** * Construct all required command line options */ private static Options constructOptions ( ) { } }
Options options = new Options ( ) ; Option cluster = Option . builder ( "c" ) . desc ( "Cluster name in which the topology needs to run on" ) . longOpt ( "cluster" ) . hasArgs ( ) . argName ( "cluster" ) . required ( ) . build ( ) ; Option role = Option . builder ( "r" ) . desc ( "Role under which the topology needs to...
public class CreatePhoneCountryConstantsClass { /** * Instantiates a class via deferred binding . * @ return the new instance , which must be cast to the requested class */ public static PhoneCountrySharedConstants create ( final Locale plocale ) { } }
if ( phoneCountryConstants == null ) { // NOPMD it ' s thread save ! synchronized ( PhoneCountryConstantsImpl . class ) { if ( phoneCountryConstants == null ) { phoneCountryConstants = createPhoneCountryConstants ( plocale ) ; } } } return phoneCountryConstants ;
public class CmsContainerPageElementPanel { /** * Hides list collector direct edit buttons , if present . < p > */ public void hideEditableListButtons ( ) { } }
if ( m_editables != null ) { for ( CmsListCollectorEditor editor : m_editables . values ( ) ) { editor . getElement ( ) . getStyle ( ) . setDisplay ( Display . NONE ) ; } }
public class CLI { /** * Execute a CLI command . This can be any command that you might execute on * the CLI command line , including both server - side operations and local * commands such as ' cd ' or ' cn ' . * @ param cliCommand A CLI command . * @ return A result object that provides all information about ...
try { // The intent here is to return a Response when this is doable . if ( ctx . isWorkflowMode ( ) || ctx . isBatchMode ( ) ) { ctx . handle ( cliCommand ) ; return new Result ( cliCommand , ctx . getExitCode ( ) ) ; } handler . parse ( ctx . getCurrentNodePath ( ) , cliCommand , ctx ) ; if ( handler . getFormat ( ) ...
public class EditText { /** * @ return the vertical offset of the shadow layer * @ see # setShadowLayer ( float , float , float , int ) * @ attr ref android . R . styleable # TextView _ shadowDy */ @ TargetApi ( Build . VERSION_CODES . JELLY_BEAN ) public float getShadowDy ( ) { } }
if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) return mInputView . getShadowDy ( ) ; return 0 ;
public class ArgumentDescriptor { /** * @ see XmlCapable # toXML ( ) */ public String toXML ( ) { } }
String eol = System . getProperty ( "line.separator" ) ; RepositoryTags tags = RepositoryTags . getInstance ( ) ; // The result String result = " " ; switch ( this . fieldSource ) { case SOURCE_FIELD : result += " " + tags . getOpeningTagNonClosingById ( RUNTIME_ARGUMENT ) ; result += " " + tags . getAttribute ( FI...
public class StringUtils { /** * Extracts letters from the String value . * @ param value the String value from which to extract letters . * @ return only letters from the String value . * @ throws NullPointerException if the String value is null . * @ see java . lang . Character # isLetter ( char ) */ public s...
StringBuilder letters = new StringBuilder ( value . length ( ) ) ; for ( char chr : value . toCharArray ( ) ) { if ( Character . isLetter ( chr ) ) { letters . append ( chr ) ; } } return letters . toString ( ) ;
public class CaptionFormatMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CaptionFormat captionFormat , ProtocolMarshaller protocolMarshaller ) { } }
if ( captionFormat == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( captionFormat . getFormat ( ) , FORMAT_BINDING ) ; protocolMarshaller . marshall ( captionFormat . getPattern ( ) , PATTERN_BINDING ) ; protocolMarshaller . marshall ( cap...
public class CNExpression { /** * 将数字转换为中文表示 * @ param num 数字 * @ return 数字的中文表示 */ public String num2Chn ( int num ) { } }
char s [ ] = new char [ 32 ] , ch ; int counter1 , counter2 ; int chr , preChr = - 1 ; int len = 0 ; boolean suffixZero = true ; counter1 = 0 ; counter2 = 0 ; while ( num > 0 ) { chr = num % 10 ; if ( chr != 0 ) { suffixZero = false ; if ( counter1 > 0 ) { s [ len ] = this . strUnit . charAt ( counter1 ) ; len ++ ; } i...
public class TableBucketReader { /** * Creates a new instance of the { @ link TableBucketReader } class that can read { @ link TableKey } instances . * @ param segment A { @ link DirectSegmentAccess } that can be used to read from the Segment . * @ param getBackpointer A Function that , when invoked with a { @ link...
return new TableBucketReader . Key ( segment , getBackpointer , executor ) ;
public class SingleThreadEventExecutor { /** * Returns the { @ link ThreadProperties } of the { @ link Thread } that powers the { @ link SingleThreadEventExecutor } . * If the { @ link SingleThreadEventExecutor } is not started yet , this operation will start it and block until * it is fully started . */ public fin...
ThreadProperties threadProperties = this . threadProperties ; if ( threadProperties == null ) { Thread thread = this . thread ; if ( thread == null ) { assert ! inEventLoop ( ) ; submit ( NOOP_TASK ) . syncUninterruptibly ( ) ; thread = this . thread ; assert thread != null ; } threadProperties = new DefaultThreadPrope...
public class SARLProjectConfigurator { /** * Read the configuration for the Compilation mojo . * @ param request the request . * @ param mojo the mojo execution . * @ param monitor the monitor . * @ return the configuration . * @ throws CoreException error in the eCore configuration . */ private SARLConfigura...
final SARLConfiguration config = new SARLConfiguration ( ) ; final MavenProject project = request . getMavenProject ( ) ; final File input = getParameterValue ( project , "input" , File . class , mojo , monitor ) ; // $ NON - NLS - 1 $ final File output = getParameterValue ( project , "output" , File . class , mojo , m...
public class PanButtonCollection { /** * Apply the correct positions on all panning buttons , and render them . */ public void accept ( PainterVisitor visitor , Object group , Bbox bounds , boolean recursive ) { } }
// Apply position on all pan buttons : applyPosition ( ) ; // Then render them : map . getVectorContext ( ) . drawGroup ( group , this ) ; map . getVectorContext ( ) . drawImage ( this , background . getId ( ) , background . getHref ( ) , background . getBounds ( ) , ( PictureStyle ) background . getStyle ( ) ) ; north...
public class HelloSignClient { /** * Retrieves the current user ' s signature requests . The resulting object * represents a paged query result . The page information can be retrieved on * from the ListInfo object on the SignatureRequestList . * @ return SignatureRequestList * @ throws HelloSignException thrown...
return new SignatureRequestList ( httpClient . withAuth ( auth ) . get ( BASE_URI + SIGNATURE_REQUEST_LIST_URI ) . asJson ( ) ) ;
public class DRL6Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 747:1 : extends _ key : { . . . } ? = > id = ID ; */ public final void extends_key ( ) throws RecognitionException { } }
Token id = null ; try { // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 748:5 : ( { . . . } ? = > id = ID ) // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 748:12 : { . . . } ? = > id = ID { if ( ! ( ( ( helper . validateIdentifierKey ( DroolsSoftKey...
public class JsScopeUiDatePickerOnChangeEvent { /** * Creates a default { @ link JsScopeUiDatePickerOnChangeEvent } to execute the given * statement . * @ param jsStatement * the JavaScript statement to execute with the scope . * @ return the created { @ link JsScopeUiDatePickerOnChangeEvent } . */ public stati...
return new JsScopeUiDatePickerOnChangeEvent ( ) { private static final long serialVersionUID = 1L ; @ Override protected void execute ( JsScopeContext scopeContext ) { scopeContext . append ( jsStatement == null ? "" : jsStatement . render ( ) ) ; } } ;
public class ModuleExtensionListProcessor { /** * { @ inheritDoc } */ public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } }
final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final ModuleSpecification moduleSpecification = deploymentUnit . getAttachment ( Attachments . MODULE_SPECIFICATION ) ; final ModuleLoader moduleLoader = deploymentUnit . getAttachment ( Attachments . SERVICE_MODULE_LOADER ) ; final ServiceCon...
public class LooseArtifactNotifier { /** * { @ inheritDoc } */ @ Override public synchronized boolean setNotificationOptions ( long interval , boolean useMBean ) { } }
for ( LooseArtifactNotifier childNotification : children . values ( ) ) { childNotification . setNotificationOptions ( interval , useMBean ) ; } Long compareInterval = Long . valueOf ( interval ) ; if ( compareInterval . equals ( this . interval ) && ( ( useMBean && FileMonitor . MONITOR_TYPE_EXTERNAL . equals ( this ....
public class CommerceDiscountPersistenceImpl { /** * Removes all the commerce discounts where expirationDate & lt ; & # 63 ; and status = & # 63 ; from the database . * @ param expirationDate the expiration date * @ param status the status */ @ Override public void removeByLtE_S ( Date expirationDate , int status )...
for ( CommerceDiscount commerceDiscount : findByLtE_S ( expirationDate , status , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceDiscount ) ; }
public class AWSIotClient { /** * Lists logging levels . * @ param listV2LoggingLevelsRequest * @ return Result of the ListV2LoggingLevels operation returned by the service . * @ throws InternalException * An unexpected error has occurred . * @ throws NotConfiguredException * The resource is not configured ...
request = beforeClientExecution ( request ) ; return executeListV2LoggingLevels ( request ) ;
public class ScriptRunner { /** * Invokes the specified < code > Task < / code > with the specified * < code > TaskRequest < / code > and < code > TaskResponse < / code > and returns the * < code > RETURN _ VALUE < / code > . Use this * overload of the < code > evaluate < / code > method when you may need to * ...
ReturnValueImpl rslt = new ReturnValueImpl ( ) ; RuntimeRequestResponse tr = new RuntimeRequestResponse ( ) ; tr . enclose ( req ) ; tr . setAttribute ( Attributes . RETURN_VALUE , rslt ) ; run ( k , tr , res ) ; return rslt . getValue ( ) ;
public class DomainService { /** * Checks if the charging station exists in the repository and if it has been registered and configured . If not a * IllegalStateException will be thrown . * @ param chargingStationId charging station identifier . * @ return ChargingStation if the charging station exists and is reg...
ChargingStation chargingStation = chargingStationRepository . findOne ( chargingStationId . getId ( ) ) ; if ( chargingStation == null ) { throw new IllegalStateException ( "Unknown charging station." ) ; } if ( ! chargingStation . isRegisteredAndConfigured ( ) ) { throw new IllegalStateException ( "Charging station ha...
public class EnhancerHelper { /** * Creates a new enhancer for the given class . If the class already implements * { @ link JDBCPersistable } , then a special " no - op " enhancer will be returned that * doesn ' t do any special enhancement . Otherwise , a byte - code enhancer is returned . * @ param baseClass cl...
"unchecked" } ) public static < T > Enhancer < T > getJDBCPersistableEnhancer ( Class < T > baseClass ) { Enhancer < T > enhancer = ( Enhancer < T > ) jdbcPersistableEnhancers . get ( baseClass ) ; if ( enhancer == null ) { if ( JDBCPersistable . class . isAssignableFrom ( baseClass ) ) { enhancer = new NoOpEnhancer < ...
public class ImageHolder { /** * decides which icon to apply or hide this view * @ param imageHolder * @ param imageView * @ param iconColor * @ param tint */ public static void applyDecidedIconOrSetGone ( ImageHolder imageHolder , ImageView imageView , int iconColor , boolean tint ) { } }
if ( imageHolder != null && imageView != null ) { Drawable drawable = ImageHolder . decideIcon ( imageHolder , imageView . getContext ( ) , iconColor , tint ) ; if ( drawable != null ) { imageView . setImageDrawable ( drawable ) ; imageView . setVisibility ( View . VISIBLE ) ; } else if ( imageHolder . getBitmap ( ) !=...
public class UpdateGameInfoApi { /** * 对外接口上传设备信息 * @ param gameInfo 设备信息 */ public long updateGameInfo ( GameInfo gameInfo ) { } }
HMSAgentLog . i ( "updateGameInfo:gameInfo=" + StrUtils . objDesc ( gameInfo ) ) ; HuaweiApiClient client = ApiClientMgr . INST . getApiClient ( ) ; if ( client == null || ! ApiClientMgr . INST . isConnect ( client ) ) { HMSAgentLog . e ( "client not connted" ) ; return CommonCode . ErrorCode . CLIENT_API_INVALID ; } r...
public class LocalDataCenterEndPointProvider { /** * Returns the current list of endPoints . Unlike { @ link # getEndPoints ( ) } the host discovery is queried and a new * list of endPoints is generated on every call . */ private ImmutableList < EndPoint > getEndPointsFromHostDiscovery ( ) { } }
Iterable < ServiceEndPoint > hosts = _hostDiscovery . getHosts ( ) ; ImmutableList . Builder < EndPoint > endPoints = ImmutableList . builder ( ) ; for ( final ServiceEndPoint host : hosts ) { if ( host . equals ( _self ) ) { continue ; } endPoints . add ( new EndPoint ( ) { @ Override public String getAddress ( ) { re...
public class SnorocketOWLReasoner { /** * A convenience method that determines if the specified class expression is * satisfiable with respect to the reasoner axioms . * @ param classExpression * The class expression * @ return < code > true < / code > if classExpression is satisfiable with respect * to the s...
if ( classExpression . isAnonymous ( ) ) { return false ; } else { // If the node that contains OWLNothing contains this OWLClass then // it is not satisfiable Object id = getId ( classExpression . asOWLClass ( ) ) ; au . csiro . ontology . Node bottom = getTaxonomy ( ) . getBottomNode ( ) ; return ! bottom . getEquiva...
public class EnvironmentCheck { /** * Report version info from DOM interfaces . * Currently distinguishes between pre - DOM level 2 , the DOM * level 2 working draft , the DOM level 2 final draft , * and not found . * @ param h Hashtable to put information in */ protected void checkDOMVersion ( Hashtable h ) { ...
if ( null == h ) h = new Hashtable ( ) ; final String DOM_LEVEL2_CLASS = "org.w3c.dom.Document" ; final String DOM_LEVEL2_METHOD = "createElementNS" ; // String , String final String DOM_LEVEL2WD_CLASS = "org.w3c.dom.Node" ; final String DOM_LEVEL2WD_METHOD = "supported" ; // String , String final String DOM_LEVEL2FD_C...
public class ConstraintSolver { /** * Get option value for this { @ link ConstraintSolver } . * @ param op The option to get ( see { @ link OPTIONS } ) . * @ return < code > true < / code > iff the given option is set . */ public boolean getOption ( OPTIONS op ) { } }
if ( op . equals ( OPTIONS . AUTO_PROPAGATE ) ) return autoprop ; else if ( op . equals ( OPTIONS . NO_PROP_ON_VAR_CREATION ) ) return noPropOnVarCreation ; else if ( op . equals ( OPTIONS . MANUAL_PROPAGATE ) ) return ! autoprop ; else if ( op . equals ( OPTIONS . DOMAINS_AUTO_INSTANTIATED ) ) return domainsAutoInstan...
public class DecimalFormat { /** * Appends an affix pattern to the given StringBuffer , quoting special * characters as needed . Uses the internal affix pattern , if that exists , * or the literal affix , if the internal affix pattern is null . The * appended string will generate the same affix pattern ( or liter...
if ( affixPattern == null ) { appendAffix ( buffer , expAffix , localized ) ; } else { int i ; for ( int pos = 0 ; pos < affixPattern . length ( ) ; pos = i ) { i = affixPattern . indexOf ( QUOTE , pos ) ; if ( i < 0 ) { appendAffix ( buffer , affixPattern . substring ( pos ) , localized ) ; break ; } if ( i > pos ) { ...
public class SocketBindingJBossASClient { /** * Sets the port number for the named socket binding found in the named socket binding group . * @ param socketBindingGroupName the name of the socket binding group that has the named socket binding * @ param socketBindingName the name of the socket binding whose port is...
setSocketBindingPortExpression ( socketBindingGroupName , socketBindingName , null , port ) ;
public class GetTraceGraphRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetTraceGraphRequest getTraceGraphRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getTraceGraphRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getTraceGraphRequest . getTraceIds ( ) , TRACEIDS_BINDING ) ; protocolMarshaller . marshall ( getTraceGraphRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; } catc...
public class CalendarFormatterBase { /** * Format the quarter based on the month . */ void formatQuarter ( StringBuilder b , ZonedDateTime d , int width , FieldVariants quarters ) { } }
int quarter = ( d . getMonth ( ) . getValue ( ) - 1 ) / 3 ; switch ( width ) { case 5 : b . append ( quarters . narrow [ quarter ] ) ; break ; case 4 : b . append ( quarters . wide [ quarter ] ) ; break ; case 3 : b . append ( quarters . abbreviated [ quarter ] ) ; break ; case 2 : b . append ( '0' ) ; // fall through ...
public class DnsTextEndpointGroupBuilder { /** * Returns a newly created { @ link DnsTextEndpointGroup } . */ public DnsTextEndpointGroup build ( ) { } }
return new DnsTextEndpointGroup ( eventLoop ( ) , minTtl ( ) , maxTtl ( ) , serverAddressStreamProvider ( ) , backoff ( ) , hostname ( ) , mapping ) ;
public class AbstractInstance { /** * Creates or returns the RPC stub object for the instance ' s task manager . * @ return the RPC stub object for the instance ' s task manager * @ throws IOException * thrown if the RPC stub object for the task manager cannot be created */ private TaskOperationProtocol getTaskMa...
if ( this . taskManager == null ) { this . taskManager = RPC . getProxy ( TaskOperationProtocol . class , new InetSocketAddress ( getInstanceConnectionInfo ( ) . address ( ) , getInstanceConnectionInfo ( ) . ipcPort ( ) ) , NetUtils . getSocketFactory ( ) ) ; } return this . taskManager ;
public class CPFriendlyURLEntryUtil { /** * Returns the first cp friendly url entry in the ordered set where groupId = & # 63 ; and classNameId = & # 63 ; and urlTitle = & # 63 ; . * @ param groupId the group ID * @ param classNameId the class name ID * @ param urlTitle the url title * @ param orderByComparator...
return getPersistence ( ) . findByG_C_U_First ( groupId , classNameId , urlTitle , orderByComparator ) ;
public class HeaderConverter { /** * { @ inheritDoc } */ @ Override public Header convert ( XBELHeader source ) { } }
if ( source == null ) return null ; String name = source . getName ( ) ; String description = source . getDescription ( ) ; String version = source . getVersion ( ) ; // Destination type Header dest = new Header ( name , description , version ) ; if ( source . isSetAuthorGroup ( ) ) { List < String > author = source . ...
public class AesUtils { /** * AES / CBC / PKCS5Padding Decryption * @ param inputStream input stream to be decrypted * @ param key valid AES key sizes are 128 , 192 , or 256 bits ( 16 , 24 , or 32 bytes ) . * @ param iv AES initialization vector . Must be the same size as the key . * @ return decrypted input st...
checkNotNull ( inputStream ) ; checkNotNull ( key ) ; checkNotNull ( iv ) ; checkArgument ( key . length == iv . length ) ; AESFastEngine aesEngine = new AESFastEngine ( ) ; PaddedBufferedBlockCipher cipher = new PaddedBufferedBlockCipher ( new CBCBlockCipher ( aesEngine ) , new PKCS7Padding ( ) ) ; cipher . init ( fal...
public class DataSourceMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DataSource dataSource , ProtocolMarshaller protocolMarshaller ) { } }
if ( dataSource == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( dataSource . getS3DataSource ( ) , S3DATASOURCE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage (...
public class GBIMGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case AfplibPackage . GBIMG__XPOS : setXPOS ( ( Integer ) newValue ) ; return ; case AfplibPackage . GBIMG__YPOS : setYPOS ( ( Integer ) newValue ) ; return ; case AfplibPackage . GBIMG__FORMAT : setFORMAT ( ( Integer ) newValue ) ; return ; case AfplibPackage . GBIMG__RES : setRES ( ( Integer ) n...
public class MediatingAdditionalDescriptors { /** * / * ( non - Javadoc ) * @ see org . jasig . services . persondir . support . IAdditionalDescriptors # setAttributes ( java . util . Map ) */ @ Override public void setAttributes ( final Map < String , List < Object > > attributes ) { } }
for ( final IAdditionalDescriptors additionalDescriptors : delegateDescriptors ) { additionalDescriptors . setAttributes ( attributes ) ; }
public class ApiOvhIp { /** * Get statistics about the email traffic * REST : GET / ip / { ip } / spam / { ipSpamming } / stats * @ param from [ required ] Start date * @ param to [ required ] End date * @ param ip [ required ] * @ param ipSpamming [ required ] IP address which is sending spam */ public Array...
String qPath = "/ip/{ip}/spam/{ipSpamming}/stats" ; StringBuilder sb = path ( qPath , ip , ipSpamming ) ; query ( sb , "from" , from ) ; query ( sb , "to" , to ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ;
public class Service { /** * The current state of deployments for the service . * @ return The current state of deployments for the service . */ public java . util . List < Deployment > getDeployments ( ) { } }
if ( deployments == null ) { deployments = new com . amazonaws . internal . SdkInternalList < Deployment > ( ) ; } return deployments ;
public class MultiColumnText { /** * Add a simple rectangular column with specified left * and right x position boundaries . * @ param left left boundary * @ param right right boundary */ public void addSimpleColumn ( float left , float right ) { } }
ColumnDef newCol = new ColumnDef ( left , right ) ; columnDefs . add ( newCol ) ;
public class FacesBackingBean { /** * Store this object in the user session , in the appropriate place . Used by the framework ; normally should not be * called directly . */ public void persistInSession ( HttpServletRequest request , HttpServletResponse response ) { } }
StorageHandler sh = Handlers . get ( getServletContext ( ) ) . getStorageHandler ( ) ; HttpServletRequest unwrappedRequest = PageFlowUtils . unwrapMultipart ( request ) ; RequestContext rc = new RequestContext ( unwrappedRequest , null ) ; String attrName = ScopedServletUtils . getScopedSessionAttrName ( InternalConsta...
public class CellValue { /** * Converts a value to a CellValue * @ param type a hint * @ param o the value * @ return the CellValue */ public static CellValue fromTypeAndObject ( final TableCell . Type type , final Object o ) { } }
// TODO : use the type hint , with a switch . . . return CellValue . fromObject ( o ) ;
public class SnowflakeChunkDownloader { /** * Create a pool of downloader threads . * @ param threadNamePrefix name of threads in pool * @ param parallel number of thread in pool * @ return new thread pool */ private static ThreadPoolExecutor createChunkDownloaderExecutorService ( final String threadNamePrefix , ...
ThreadFactory threadFactory = new ThreadFactory ( ) { private int threadCount = 1 ; public Thread newThread ( final Runnable r ) { final Thread thread = new Thread ( r ) ; thread . setName ( threadNamePrefix + threadCount ++ ) ; thread . setUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) { public v...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link CnType } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "cn" ) public JAXBElement < CnType > createCn ( CnType value ) { } }
return new JAXBElement < CnType > ( _Cn_QNAME , CnType . class , null , value ) ;
public class EmptyMemoryRecord { /** * Set up the screen input fields . */ public void setupFields ( ) { } }
FieldInfo field = null ; field = new FieldInfo ( this , ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setDataClass ( Integer . class ) ;
public class XARMojo { /** * Adds the contents of a specific directory to a queue of files . * @ param fileQueue the queue of files * @ param sourceDir the directory to be scanned */ private static void addContentsToQueue ( Queue < File > fileQueue , File sourceDir ) throws MojoExecutionException { } }
File [ ] files = sourceDir . listFiles ( ) ; if ( files != null ) { for ( File currentFile : files ) { fileQueue . add ( currentFile ) ; } } else { throw new MojoExecutionException ( String . format ( "Couldn't get list of files in source dir [%s]" , sourceDir ) ) ; }
public class Service { public static void main ( String [ ] arg ) { } }
String opt ; opt = System . getProperty ( "SERVICE_OUT" ) ; if ( opt != null ) { try { PrintStream stdout = new PrintStream ( new FileOutputStream ( opt ) ) ; System . setOut ( stdout ) ; } catch ( Exception e ) { log . warn ( LogSupport . EXCEPTION , e ) ; } } opt = System . getProperty ( "SERVICE_ERR" ) ; if ( opt !=...
public class SdkClientBuilder { /** * Specify proxy credentials . * @ param user user * @ param password password * @ return current client builder */ public SdkClientBuilder proxyCredentials ( String user , String password ) { } }
this . proxyCredentials = new UsernamePasswordCredentials ( user , password ) ; return this ;
public class ExpressionUtil { /** * Undo the effects of the combine ( List < AbstractExpression > exps ) method to reconstruct the list * of expressions in its original order , basically right - to - left in the given expression tree . * NOTE : This implementation is tuned to the odd shape of the trees produced by ...
if ( expr == null ) { return new ArrayList < AbstractExpression > ( ) ; } if ( expr instanceof ConjunctionExpression ) { ConjunctionExpression conj = ( ConjunctionExpression ) expr ; if ( conj . getExpressionType ( ) == ExpressionType . CONJUNCTION_AND ) { // Calculate the list for the tree or leaf on the left . List <...
public class FunctionMap { /** * loadFunctionMap loads an initial function map . * @ return the constructor of FunctionMap . */ public static FunctionMap loadFunctionMap ( ) { } }
FunctionMap fm = new FunctionMap ( ) ; fm . fm = new HashMap < > ( ) ; fm . addFunction ( "keyMatch" , new KeyMatchFunc ( ) ) ; fm . addFunction ( "keyMatch2" , new KeyMatch2Func ( ) ) ; fm . addFunction ( "regexMatch" , new RegexMatchFunc ( ) ) ; fm . addFunction ( "ipMatch" , new IPMatchFunc ( ) ) ; return fm ;