org.eclipse.xtext.grammaranalysis.impl
Class CfgAdapter
java.lang.Object
org.eclipse.xtext.grammaranalysis.impl.CfgAdapter
- All Implemented Interfaces:
- Cfg<AbstractElement,AbstractElement>, Production<AbstractElement,AbstractElement>
- Direct Known Subclasses:
- ContextPDAProvider.SerializerCfg
public class CfgAdapter
- extends java.lang.Object
- implements Cfg<AbstractElement,AbstractElement>
- Author:
- Moritz Eysholdt - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grammar
protected Grammar grammar
CfgAdapter
public CfgAdapter(Grammar grammar)
getAlternativeChildren
public java.lang.Iterable<AbstractElement> getAlternativeChildren(AbstractElement ele)
- Specified by:
getAlternativeChildren
in interface Production<AbstractElement,AbstractElement>
getCall
public AbstractElement getCall(AbstractElement ele)
- Specified by:
getCall
in interface Cfg<AbstractElement,AbstractElement>
getParent
public AbstractElement getParent(AbstractElement ele)
- Specified by:
getParent
in interface Production<AbstractElement,AbstractElement>
getRoot
public AbstractElement getRoot()
- Specified by:
getRoot
in interface Production<AbstractElement,AbstractElement>
getSequentialChildren
public java.lang.Iterable<AbstractElement> getSequentialChildren(AbstractElement ele)
- Specified by:
getSequentialChildren
in interface Production<AbstractElement,AbstractElement>
getToken
public AbstractElement getToken(AbstractElement owner)
- Specified by:
getToken
in interface Production<AbstractElement,AbstractElement>
getUnorderedChildren
public java.lang.Iterable<AbstractElement> getUnorderedChildren(AbstractElement ele)
- Specified by:
getUnorderedChildren
in interface Production<AbstractElement,AbstractElement>
isMany
public boolean isMany(AbstractElement ele)
- Specified by:
isMany
in interface Production<AbstractElement,AbstractElement>
isOptional
public boolean isOptional(AbstractElement ele)
- Specified by:
isOptional
in interface Production<AbstractElement,AbstractElement>