public class IrDocArrayType extends AbstractIrDocElement implements IrDocType
Constructor and Description |
---|
IrDocArrayType(IrDocType componentType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(IrDocElementVisitor<R,P> visitor,
P context)
Accepts and calls back the visitor.
|
boolean |
equals(Object obj) |
IrDocType |
getComponentType()
Returns the element type.
|
IrDocElementKind |
getKind()
Returns the element kind.
|
int |
hashCode() |
void |
setComponentType(IrDocType componentType)
Sets the the element type.
|
String |
toString() |
getLocation, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation, setLocation
public IrDocArrayType(IrDocType componentType)
componentType
- the element typeIllegalArgumentException
- if the parameter is null
public IrDocElementKind getKind()
IrDocElement
getKind
in interface IrDocElement
public IrDocType getComponentType()
public void setComponentType(IrDocType componentType)
componentType
- the element typeIllegalArgumentException
- if the parameter is null
IllegalArgumentException
- if the component type contains this typepublic <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElement
accept
in interface IrDocElement
R
- type of visitor resultP
- type of visitor contextvisitor
- the visitor to call backcontext
- the visitor contextCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.