org.jetbrains.kotlin.js.patterns
Class NamePredicate

java.lang.Object
  extended by org.jetbrains.kotlin.js.patterns.NamePredicate
All Implemented Interfaces:
com.google.common.base.Predicate<Name>

public final class NamePredicate
extends java.lang.Object
implements com.google.common.base.Predicate<Name>


Field Summary
static NamePredicate BOOLEAN
           
static NamePredicate CHAR
           
static NamePredicate LONG
           
static NamePredicate NUMBER
           
static NamePredicate PRIMITIVE_NUMBERS
           
static NamePredicate PRIMITIVE_NUMBERS_MAPPED_TO_PRIMITIVE_JS
           
static NamePredicate STRING
           
 
Constructor Summary
NamePredicate(java.util.Collection<Name> validNames)
           
NamePredicate(java.util.List<java.lang.String> validNames)
           
NamePredicate(Name... validNames)
           
NamePredicate(java.lang.String... validNames)
           
 
Method Summary
 boolean apply(Name name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Field Detail

PRIMITIVE_NUMBERS

@NotNull
public static final NamePredicate PRIMITIVE_NUMBERS

PRIMITIVE_NUMBERS_MAPPED_TO_PRIMITIVE_JS

@NotNull
public static final NamePredicate PRIMITIVE_NUMBERS_MAPPED_TO_PRIMITIVE_JS

STRING

@NotNull
public static final NamePredicate STRING

NUMBER

@NotNull
public static final NamePredicate NUMBER

BOOLEAN

@NotNull
public static final NamePredicate BOOLEAN

CHAR

@NotNull
public static final NamePredicate CHAR

LONG

@NotNull
public static final NamePredicate LONG
Constructor Detail

NamePredicate

public NamePredicate(@NotNull
                     java.lang.String... validNames)

NamePredicate

public NamePredicate(@NotNull
                     java.util.List<java.lang.String> validNames)

NamePredicate

public NamePredicate(@NotNull
                     java.util.Collection<Name> validNames)

NamePredicate

public NamePredicate(@NotNull
                     Name... validNames)
Method Detail

apply

public boolean apply(@Nullable
                     Name name)
Specified by:
apply in interface com.google.common.base.Predicate<Name>