public class ScriptAttributeImpl extends org.apache.lucene.util.AttributeImpl implements ScriptAttribute, Cloneable, Serializable
ScriptAttribute
that stores the script
as an integer.Constructor and Description |
---|
ScriptAttributeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
copyTo(org.apache.lucene.util.AttributeImpl target) |
boolean |
equals(Object other) |
int |
getCode()
Get the numeric code for this script value.
|
String |
getName()
Get the full name.
|
String |
getShortName()
Get the abbreviated name.
|
int |
hashCode() |
void |
reflectWith(org.apache.lucene.util.AttributeReflector reflector) |
void |
setCode(int code)
Set the numeric code for this script value.
|
public int getCode()
ScriptAttribute
UScript
.getCode
in interface ScriptAttribute
public void setCode(int code)
ScriptAttribute
UScript
.setCode
in interface ScriptAttribute
code
- numeric codepublic String getName()
ScriptAttribute
getName
in interface ScriptAttribute
public String getShortName()
ScriptAttribute
getShortName
in interface ScriptAttribute
public void clear()
clear
in class org.apache.lucene.util.AttributeImpl
public void copyTo(org.apache.lucene.util.AttributeImpl target)
copyTo
in class org.apache.lucene.util.AttributeImpl
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
reflectWith
in class org.apache.lucene.util.AttributeImpl