public abstract class PoshDummyElement<THIS extends PoshElement,PARENT extends PoshElement> extends PoshElement<THIS,PARENT>
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENT_PATTERN
Regular pattern, only text that matches this pattern can be a name of the
POSH element.
|
| Constructor and Description |
|---|
PoshDummyElement() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getUnusedName(String template,
List<? extends NamedLapElement> elements)
Get valid name for new element, but name can't be same as any name used
by passed elements.
|
protected static boolean |
isUsedName(String name,
List<? extends NamedLapElement> elements)
Is passed name used by one of elements?
|
protected <T extends PoshElement> |
moveChildInList(List<T> list,
T child,
int newIndex)
Take the @list of elements and one @child of the @list.
|
addElementListener, emitChildDeleted, emitChildMove, emitChildNode, firePropertyChange, getChildDataNodes, getDataFlavor, getElementListeners, getNumberOfChildInstances, getParent, getRootNode, isChildOfParent, moveChild, removeElementListener, setParentpublic static final String IDENT_PATTERN
NAME in the PoshParser.jj
Because of dash (-), not all strings that match this pattern are FQN.protected <T extends PoshElement> boolean moveChildInList(List<T> list, T child, int newIndex)
NoSuchElementException, if @newIndex is same as the index
the @child is currently at, don't do anything.T - list - child - newIndex - Indexprotected static boolean isUsedName(String name, List<? extends NamedLapElement> elements)
name - name to be testedelements - elements againt which the test is doneprotected static String getUnusedName(String template, List<? extends NamedLapElement> elements)
template - string used as prefix of created nameelements - elements that must have different name that created nameCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.