public class IrDocBasicType extends AbstractIrDocElement implements IrDocType
Constructor and Description |
---|
IrDocBasicType(IrBasicTypeKind typeKind)
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) |
IrDocElementKind |
getKind()
Returns the element kind.
|
IrBasicTypeKind |
getTypeKind()
Returns the type kind.
|
int |
hashCode() |
void |
setTypeKind(IrBasicTypeKind typeKind)
Sets the type kind.
|
String |
toString() |
getLocation, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation, setLocation
public IrDocBasicType(IrBasicTypeKind typeKind)
typeKind
- the type kindIllegalArgumentException
- if the parameter is null
public IrDocElementKind getKind()
IrDocElement
getKind
in interface IrDocElement
public IrBasicTypeKind getTypeKind()
public void setTypeKind(IrBasicTypeKind typeKind)
typeKind
- the type kindIllegalArgumentException
- if the parameter is null
public <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–2019 Asakusa Framework Team. All rights reserved.