Top Description Fields Constructors Methods
javassist.bytecode.annotation

public Class ArrayMemberValue

extends MemberValue
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Array, .Method, java.util.Map, javassist.ClassPool, javassist.bytecode.ConstPool

Array member.
Authors
Bill Burke, Shigeru Chiba

Field Summary

Modifier and TypeField and Description
pack-priv MemberValue
pack-priv MemberValue[]
Inherited from javassist.bytecode.annotation.MemberValue:
cptag

Constructor Summary

AccessConstructor and Description
public
ArrayMemberValue(ConstPool cp)

Constructs an array.

public
ArrayMemberValue(MemberValue
the type of the array elements.
t
,
ConstPool cp)

Constructs an array.

Method Summary

Modifier and TypeMethod and Description
public void
accept(MemberValueVisitor visitor)

Implements abstract javassist.bytecode.annotation.MemberValue.accept.

Accepts a visitor.

pack-priv Class<?>
public MemberValue

Returns:

null if the type is not specified.
getType
()

Obtains the type of the elements.

pack-priv Object
getValue(ClassLoader cl, ClassPool cp, Method method)

Implements abstract javassist.bytecode.annotation.MemberValue.getValue.

Returns the value.

public MemberValue[]
getValue()

Obtains the elements of the array.

public void
public void
public void
setValue(MemberValue[] elements)

Sets the elements of the array.

public String
toString()

Overrides java.lang.Object.toString.

Obtains the string representation of this object.

public void
write(AnnotationsWriter writer)

Implements abstract javassist.bytecode.annotation.MemberValue.write.

Writes the value.

Inherited from javassist.bytecode.annotation.MemberValue:
loadClass

Field Detail

typeback to summary
pack-priv MemberValue type
valuesback to summary
pack-priv MemberValue[] values

Constructor Detail

ArrayMemberValueback to summary
public ArrayMemberValue(ConstPool cp)

Constructs an array. The initial value or type are not specified.

ArrayMemberValueback to summary
public ArrayMemberValue(MemberValue t, ConstPool cp)

Constructs an array. The initial value is not specified.

Parameters
t:MemberValue

the type of the array elements.

Method Detail

acceptback to summary
public void accept(MemberValueVisitor visitor)

Implements abstract javassist.bytecode.annotation.MemberValue.accept.

Accepts a visitor.

Annotations
@Override
getTypeback to summary
pack-priv Class<?> getType(ClassLoader cl) throws ClassNotFoundException

Implements abstract javassist.bytecode.annotation.MemberValue.getType.

Annotations
@Override
getTypeback to summary
public MemberValue getType()

Obtains the type of the elements.

Returns:MemberValue

null if the type is not specified.

getValueback to summary
pack-priv Object getValue(ClassLoader cl, ClassPool cp, Method method) throws ClassNotFoundException

Implements abstract javassist.bytecode.annotation.MemberValue.getValue.

Doc from javassist.bytecode.annotation.MemberValue.getValue.

Returns the value. If the value type is a primitive type, the returned value is boxed.

Annotations
@Override
getValueback to summary
public MemberValue[] getValue()

Obtains the elements of the array.

renameClassback to summary
public void renameClass(String oldname, String newname)

Overrides javassist.bytecode.annotation.MemberValue.renameClass.

Annotations
@Override
renameClassback to summary
public void renameClass(Map<String, String> classnames)

Overrides javassist.bytecode.annotation.MemberValue.renameClass.

Annotations
@Override
setValueback to summary
public void setValue(MemberValue[] elements)

Sets the elements of the array.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Obtains the string representation of this object.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override
writeback to summary
public void write(AnnotationsWriter writer) throws IOException

Implements abstract javassist.bytecode.annotation.MemberValue.write.

Writes the value.

Annotations
@Override