public final class PointerType
extends java.lang.Object
implements java.io.Serializable
PointerTypes. Each PointerType
carries additional information: a human-readable label, an optional reflexive
type that labels links pointing the opposite direction, an encoding of
parts-of-speech that it applies to, and a short string that represents it in
the dictionary files.| Modifier | Constructor and Description |
|---|---|
private |
PointerType(java.lang.String label,
java.lang.String key,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(POS pos)
Whether or not this PointerType can be associated with
pos |
static java.util.List |
getAllPointerTypes() |
static java.util.List |
getAllPointerTypesForPOS(POS pos) |
private java.lang.String |
getFlagsAsString() |
java.lang.String |
getKey() |
java.lang.String |
getLabel() |
static PointerType |
getPointerTypeForKey(java.lang.String key)
Return the
PointerType whose key matches key. |
private static int |
getPOSMask(POS pos) |
PointerType |
getSymmetricType()
Returns the pointer type that is symmetric to this type.
|
int |
hashCode() |
static void |
initialize() |
boolean |
isSymmetric() |
static boolean |
isSymmetric(PointerType type)
Returns true if type is a symmetric pointer type
(it is its own symmetric type).
|
private static void |
setSymmetric(PointerType a,
PointerType b)
Set a as b's symmetric type, and vice versa.
|
boolean |
symmetricTo(PointerType type)
Returns true if type is symmetric to this pointer type.
|
java.lang.String |
toString() |
static final long serialVersionUID
private static final int N
private static final int V
private static final int ADJ
private static final int ADV
private static final int LEXICAL
public static final PointerType ANTONYM
public static final PointerType CATEGORY
public static final PointerType REGION
public static final PointerType USAGE
public static final PointerType HYPERNYM
public static final PointerType HYPONYM
public static final PointerType NOMINALIZATION
public static final PointerType INSTANCE_HYPERNYM
public static final PointerType INSTANCES_HYPONYM
public static final PointerType ATTRIBUTE
public static final PointerType SEE_ALSO
public static final PointerType MEMBER_HOLONYM
public static final PointerType SUBSTANCE_HOLONYM
public static final PointerType PART_HOLONYM
public static final PointerType MEMBER_MERONYM
public static final PointerType SUBSTANCE_MERONYM
public static final PointerType PART_MERONYM
public static final PointerType CATEGORY_MEMBER
public static final PointerType REGION_MEMBER
public static final PointerType USAGE_MEMBER
public static final PointerType ENTAILMENT
public static final PointerType ENTAILED_BY
public static final PointerType CAUSE
public static final PointerType VERB_GROUP
public static final PointerType SIMILAR_TO
public static final PointerType PARTICIPLE_OF
public static final PointerType PERTAINYM
public static final PointerType DERIVED
private static final java.util.List ALL_TYPES
PointerTypes.private static final java.util.Map POS_TO_MASK_MAP
private static final java.util.Map KEY_TO_POINTER_TYPE_MAP
private static boolean _initialized
private Resolvable _label
private Resolvable _key
private int _flags
private PointerType _symmetricType
private transient java.lang.String _cachedToString
private java.lang.String _flagStringCache
private PointerType(java.lang.String label,
java.lang.String key,
int flags)
public static void initialize()
public static boolean isSymmetric(PointerType type)
public static PointerType getPointerTypeForKey(java.lang.String key)
PointerType whose key matches key.public static java.util.List getAllPointerTypes()
public static java.util.List getAllPointerTypesForPOS(POS pos)
private static void setSymmetric(PointerType a, PointerType b)
private static int getPOSMask(POS pos)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getKey()
public java.lang.String getLabel()
public boolean appliesTo(POS pos)
pospublic boolean isSymmetric()
public boolean symmetricTo(PointerType type)
public PointerType getSymmetricType()
public int hashCode()
hashCode in class java.lang.Objectprivate java.lang.String getFlagsAsString()