IT. Expert System.

Android Reference

PatternMatcher


android.os

Class PatternMatcher

  • All Implemented Interfaces:
    Parcelable
    Direct Known Subclasses:
    PathPermission


    public class PatternMatcher
    extends Object
    implements Parcelable
    A simple pattern matcher, which is safe to use on untrusted data: it does not provide full reg-exp support, only simple globbing that can not be used maliciously.
    • Field Detail

      • PATTERN_LITERAL

        public static final int PATTERN_LITERAL
        Pattern type: the given pattern must exactly match the string it is tested against.
        See Also:
        Constant Field Values
      • PATTERN_PREFIX

        public static final int PATTERN_PREFIX
        Pattern type: the given pattern must match the beginning of the string it is tested against.
        See Also:
        Constant Field Values
      • PATTERN_SIMPLE_GLOB

        public static final int PATTERN_SIMPLE_GLOB
        Pattern type: the given pattern is interpreted with a simple glob syntax for matching against the string it is tested against. In this syntax, you can use the '*' character to match against zero or more occurrences of the character immediately before. If the character before it is '.' it will match any character. The character '\' can be used as an escape. This essentially provides only the '*' wildcard part of a normal regexp.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PatternMatcher

        public PatternMatcher(String pattern,
                      int type)
      • PatternMatcher

        public PatternMatcher(Parcel src)
    • Method Detail

      • getPath

        public final String getPath()
      • getType

        public final int getType()
      • match

        public boolean match(String str)
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3180 / . Delta: 0.04117 с