public class DotAstHelper
extends java.lang.Object
Constructor and Description |
---|
DotAstHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedList<org.eclipse.gef.dot.internal.language.dot.Attribute> |
getAllAttributesSameName(org.eclipse.gef.dot.internal.language.dot.Attribute comparator) |
static java.util.LinkedList<org.eclipse.gef.dot.internal.language.dot.Attribute> |
getAllAttributesSameValue(org.eclipse.gef.dot.internal.language.dot.Attribute comparator) |
static java.util.List<org.eclipse.gef.dot.internal.language.dot.NodeId> |
getAllNodeIds(org.eclipse.gef.dot.internal.language.dot.NodeId baseNodeId)
Collects all nodeId EObjects having the same name as the baseNodeId
|
static org.eclipse.gef.dot.internal.language.terminals.ID |
getAttributeValue(org.eclipse.gef.dot.internal.language.dot.DotGraph graph,
java.lang.String name) |
static org.eclipse.gef.dot.internal.language.terminals.ID |
getAttributeValue(java.util.List<org.eclipse.gef.dot.internal.language.dot.AttrList> attrLists,
java.lang.String name)
Returns the value of the first attribute with the give name or
null if no attribute could be found. |
static org.eclipse.gef.dot.internal.language.terminals.ID |
getAttributeValue(org.eclipse.gef.dot.internal.language.dot.Subgraph subgraph,
java.lang.String name) |
static org.eclipse.gef.dot.internal.language.terminals.ID |
getAttributeValueAll(org.eclipse.gef.dot.internal.language.dot.DotGraph graph,
java.lang.String name) |
static java.lang.String |
getColorSchemeAttributeValue(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)
Returns the color scheme attribute value that is set for the given
attribute.
|
static java.lang.String |
getDependedOnAttributeValue(org.eclipse.gef.dot.internal.language.dot.Attribute dependentAttribute,
java.lang.String attributeName)
Returns an attribute value specified by attributeName that is set for given attribute
|
static org.eclipse.gef.dot.internal.language.dot.NodeId |
getNodeId(org.eclipse.gef.dot.internal.language.dot.NodeId nodeId) |
public static org.eclipse.gef.dot.internal.language.dot.NodeId getNodeId(org.eclipse.gef.dot.internal.language.dot.NodeId nodeId)
public static java.util.List<org.eclipse.gef.dot.internal.language.dot.NodeId> getAllNodeIds(org.eclipse.gef.dot.internal.language.dot.NodeId baseNodeId)
public static java.util.LinkedList<org.eclipse.gef.dot.internal.language.dot.Attribute> getAllAttributesSameValue(org.eclipse.gef.dot.internal.language.dot.Attribute comparator)
public static java.util.LinkedList<org.eclipse.gef.dot.internal.language.dot.Attribute> getAllAttributesSameName(org.eclipse.gef.dot.internal.language.dot.Attribute comparator)
public static java.lang.String getColorSchemeAttributeValue(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)
attribute
- The attribute to determine the color scheme attribute value
for.public static java.lang.String getDependedOnAttributeValue(org.eclipse.gef.dot.internal.language.dot.Attribute dependentAttribute, java.lang.String attributeName)
dependentAttribute
- The attribute to determine a depending value for.attributeName
- The name of the attribute that the dependentAttribute depends on.public static org.eclipse.gef.dot.internal.language.terminals.ID getAttributeValue(org.eclipse.gef.dot.internal.language.dot.DotGraph graph, java.lang.String name)
public static org.eclipse.gef.dot.internal.language.terminals.ID getAttributeValueAll(org.eclipse.gef.dot.internal.language.dot.DotGraph graph, java.lang.String name)
public static org.eclipse.gef.dot.internal.language.terminals.ID getAttributeValue(org.eclipse.gef.dot.internal.language.dot.Subgraph subgraph, java.lang.String name)
public static org.eclipse.gef.dot.internal.language.terminals.ID getAttributeValue(java.util.List<org.eclipse.gef.dot.internal.language.dot.AttrList> attrLists, java.lang.String name)
null
if no attribute could be found.attrLists
- The AttrList
s to search.name
- The name of the attribute whose value is to be retrieved.null
in case the attribute
could not be found.Copyright (c) 2014 itemis AG and others. All rights reserved.