Top Description Fields Constructors Methods
javassist.compiler.ast

public Class ArrayInit

extends ASTList
Class Inheritance
Imports
javassist.compiler.CompileError

Array initializer such as { 1, 2, 3 }.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ArrayInit(ASTree
maybe null when the initializer is {} (empty).
firstElement
)

Constructs an object.

Method Summary

Modifier and TypeMethod and Description
public void
accept(Visitor v)

Overrides javassist.compiler.ast.ASTList.accept.

Is a method for the visitor pattern.

public String
getTag()

Overrides javassist.compiler.ast.ASTree.getTag.

Returns the type of this node.

public int

Returns:

the number of the elements.
size
()

Gets the number of the elements.

Inherited from javassist.compiler.ast.ASTList:
appendconcatgetLeftgetRightheadlengthlengthmakesetHeadsetLeftsetRightsetTailsublistsubsttailtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javassist.compiler.ast.ASTList.serialVersionUID.

default serialVersionUID

Constructor Detail

ArrayInitback to summary
public ArrayInit(ASTree firstElement)

Constructs an object.

Parameters
firstElement:ASTree

maybe null when the initializer is {} (empty).

Method Detail

acceptback to summary
public void accept(Visitor v) throws CompileError

Overrides javassist.compiler.ast.ASTList.accept.

Doc from javassist.compiler.ast.ASTree.accept.

Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

Annotations
@Override
getTagback to summary
public String getTag()

Overrides javassist.compiler.ast.ASTree.getTag.

Doc from javassist.compiler.ast.ASTree.getTag.

Returns the type of this node. This method is used by toString().

Annotations
@Override
sizeback to summary
public int size()

Gets the number of the elements. Don't call length().

Returns:int

the number of the elements.