Class ASTRelOp
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<B,N>
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
- net.sourceforge.pmd.lang.modelica.ast.ASTRelOp
-
- All Implemented Interfaces:
GenericNode<ModelicaNode>
,JjtreeNode<ModelicaNode>
,Node
,TextAvailableNode
,ModelicaNode
,Reportable
public final class ASTRelOp extends AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
operator
-
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
id
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <P,R>
RacceptModelicaVisitor(ModelicaVisitor<? super P,? extends R> visitor, P data)
<P,R>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
ModelicaScope
getContainingScope()
Returns the lexical scope this node is contained in.ModelicaScope
getMostSpecificScope()
Returns the most specific lexical scope naturally associated with this node.String
getOperator()
String
getXPathNodeName()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
addChild, compareLocation, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtClose, jjtOpen, setFirstToken, setImage, setLastToken, toString
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokens
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
-
-
-
Field Detail
-
operator
protected String operator
-
-
Method Detail
-
acceptModelicaVisitor
protected <P,R> R acceptModelicaVisitor(ModelicaVisitor<? super P,? extends R> visitor, P data)
-
getOperator
public String getOperator()
-
acceptVisitor
public final <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfaceNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
getContainingScope
public ModelicaScope getContainingScope()
Description copied from interface:ModelicaNode
Returns the lexical scope this node is contained in.- Specified by:
getContainingScope
in interfaceModelicaNode
-
getMostSpecificScope
public ModelicaScope getMostSpecificScope()
Description copied from interface:ModelicaNode
Returns the most specific lexical scope naturally associated with this node.- Specified by:
getMostSpecificScope
in interfaceModelicaNode
- Returns:
- the scope defined by this node itself or the same as
ModelicaNode.getContainingScope()
otherwise
-
-