public class List extends Object implements PetalNode
Constructor and Description |
---|
List(String name)
create a list with the given name
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
accept the given visitor
|
void |
add(PetalNode value) |
Object |
clone() |
boolean |
equals(Object o) |
ArrayList<PetalNode> |
get() |
PetalNode |
get(int i) |
int |
getChildCount()
get the number of child nodes
|
List<PetalNode> |
getElements() |
String |
getKind()
get the kind of this PetalNode
|
String |
getName() |
void |
remove(PetalNode value) |
void |
set(int i,
PetalNode node) |
void |
setName(String n) |
int |
size() |
String |
toString() |
public List(String name)
name
- public void setName(String n)
public final String getName()
public final String getKind()
PetalNode
public final int getChildCount()
PetalNode
getChildCount
in interface PetalNode
public final PetalNode get(int i)
public final void set(int i, PetalNode node)
public final void add(PetalNode value)
public final void remove(PetalNode value)
public final int size()
Copyright © 2018 BITPlan GmbH. All rights reserved.