FileDocCategorySizeDatePackage
CstString.javaAPI DocAndroid 1.5 API2515Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstString

public final class CstString extends TypedConstant
Constants of type CONSTANT_String_info.

Fields Summary
private final CstUtf8
string
non-null; the string value
Constructors Summary
public CstString(CstUtf8 string)
Constructs an instance.

param
string non-null; the string value

        if (string == null) {
            throw new NullPointerException("string == null");
        }

        this.string = string;
    
public CstString(String string)
Constructs an instance.

param
string non-null; the string value

        this(new CstUtf8(string));
    
Methods Summary
protected intcompareTo0(Constant other)
{@inheritDoc}

        return string.compareTo(((CstString) other).string);
    
public booleanequals(java.lang.Object other)
{@inheritDoc}

        if (!(other instanceof CstString)) {
            return false;
        }

        return string.equals(((CstString) other).string);
    
public CstUtf8getString()
Gets the string value.

return
non-null; the string value

        return string;
    
public com.android.dx.rop.type.TypegetType()
{@inheritDoc}

        return Type.STRING;
    
public inthashCode()
{@inheritDoc}

        return string.hashCode();
    
public booleanisCategory2()
{@inheritDoc}

        return false;
    
public java.lang.StringtoHuman()
{@inheritDoc}

        return string.toQuoted();
    
public java.lang.StringtoString()
{@inheritDoc}

        return "string{" + toHuman() + '}";
    
public java.lang.StringtypeName()
{@inheritDoc}

        return "string";