Class MorphosyntacticTagsAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.morfologik.MorphosyntacticTagsAttributeImpl
- All Implemented Interfaces:
Cloneable,MorphosyntacticTagsAttribute,org.apache.lucene.util.Attribute
public class MorphosyntacticTagsAttributeImpl
extends org.apache.lucene.util.AttributeImpl
implements MorphosyntacticTagsAttribute
Morphosyntactic annotations for surface forms.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear to default value.clone()voidcopyTo(org.apache.lucene.util.AttributeImpl target) booleangetTags()Returns the POS tag of the term.inthashCode()voidreflectWith(org.apache.lucene.util.AttributeReflector reflector) voidsetTags(List<StringBuilder> tags) Sets the internal tags reference to the given list.Methods inherited from class org.apache.lucene.util.AttributeImpl
end, reflectAsString
-
Constructor Details
-
MorphosyntacticTagsAttributeImpl
public MorphosyntacticTagsAttributeImpl()Initializes this attribute with no tags
-
-
Method Details
-
getTags
Returns the POS tag of the term. If you need a copy of this char sequence, copy its contents (and cloneStringBuilders) because it changes with each new term to avoid unnecessary memory allocations.- Specified by:
getTagsin interfaceMorphosyntacticTagsAttribute
-
clear
public void clear()Description copied from interface:MorphosyntacticTagsAttributeClear to default value.- Specified by:
clearin interfaceMorphosyntacticTagsAttribute- Specified by:
clearin classorg.apache.lucene.util.AttributeImpl
-
equals
-
hashCode
public int hashCode() -
setTags
Sets the internal tags reference to the given list. The contents is not copied.- Specified by:
setTagsin interfaceMorphosyntacticTagsAttribute- Parameters:
tags- A list of POS tags corresponding to current lemma.
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target) - Specified by:
copyToin classorg.apache.lucene.util.AttributeImpl
-
clone
- Overrides:
clonein classorg.apache.lucene.util.AttributeImpl
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector) - Specified by:
reflectWithin classorg.apache.lucene.util.AttributeImpl
-