Class ASTLanguageSpecification
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<ModelicaNode>
-
- net.sourceforge.pmd.lang.modelica.ast.ASTLanguageSpecification
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,ModelicaNode
public class ASTLanguageSpecification extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<ModelicaNode>
-
-
Constructor Summary
Constructors Constructor Description ASTLanguageSpecification(int id)ASTLanguageSpecification(ModelicaParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginColumn()intgetBeginLine()ModelicaScopegetContainingScope()Returns the lexical scope this node is contained in.intgetEndColumn()intgetEndLine()ModelicaScopegetMostSpecificScope()Returns the most specific lexical scope naturally associated with this node.StringgetXPathNodeName()ObjectjjtAccept(ModelicaParserVisitor visitor, Object data)Accept the visitor.voidjjtClose()voidjjtSetLastToken(net.sourceforge.pmd.lang.ast.GenericToken token)-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
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.modelica.ast.ModelicaNode
children, getChild, getParent
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Constructor Detail
-
ASTLanguageSpecification
public ASTLanguageSpecification(int id)
-
ASTLanguageSpecification
public ASTLanguageSpecification(ModelicaParser p, int id)
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(ModelicaParserVisitor visitor, Object data)
Accept the visitor.- Specified by:
jjtAcceptin interfaceModelicaNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtClose
public void jjtClose()
- Specified by:
jjtClosein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtClosein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtSetLastToken
public void jjtSetLastToken(net.sourceforge.pmd.lang.ast.GenericToken token)
- Overrides:
jjtSetLastTokenin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getContainingScope
public ModelicaScope getContainingScope()
Description copied from interface:ModelicaNodeReturns the lexical scope this node is contained in.- Specified by:
getContainingScopein interfaceModelicaNode
-
getMostSpecificScope
public ModelicaScope getMostSpecificScope()
Description copied from interface:ModelicaNodeReturns the most specific lexical scope naturally associated with this node.- Specified by:
getMostSpecificScopein interfaceModelicaNode- Returns:
- the scope defined by this node itself or the same as
ModelicaNode.getContainingScope()otherwise
-
-