Class AbstractPLSQLNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<PLSQLNode>
-
- net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,PLSQLNode,net.sourceforge.pmd.lang.symboltable.ScopedNode
- Direct Known Subclasses:
AbstractSelectStatement,ASTAccessibleByClause,ASTAdditiveExpression,ASTAlterTrigger,ASTAlterTypeSpec,ASTAnalyticClause,ASTArgument,ASTArgumentList,ASTArguments,ASTAssignment,ASTAttribute,ASTAttributeDeclaration,ASTBetweenCondition,ASTBlock,ASTBooleanLiteral,ASTBulkCollectIntoClause,ASTCallSpecTail,ASTCaseExpression,ASTCaseStatement,ASTCaseWhenClause,ASTCloseStatement,ASTCollectionDeclaration,ASTCollectionName,ASTCollectionTypeDefinition,ASTCollectionTypeName,ASTColumn,ASTColumnAlias,ASTComment,ASTComparisonCondition,ASTCompilationDataType,ASTCompilationDeclarationFragment,ASTCompilationExpression,ASTCompoundCondition,ASTCompoundTriggerBlock,ASTCondition,ASTConditionalAndExpression,ASTConditionalCompilationStatement,ASTConditionalInsertClause,ASTConditionalOrExpression,ASTContinueStatement,ASTCrossOuterApplyClause,ASTCursorBody,ASTCursorForLoopStatement,ASTCursorSpecification,ASTCursorUnit,ASTDatabaseEvent,ASTDatabaseLink,ASTDatatype,ASTDatatypeDeclaration,ASTDateTimeLiteral,ASTDDLCommand,ASTDDLEvent,ASTDeclarativeSection,ASTDeclarativeUnit,ASTDeleteStatement,ASTDirectory,ASTDMLTableExpressionClause,ASTElseClause,ASTElsifClause,ASTEmbeddedSqlStatement,ASTEqualityExpression,ASTErrorLoggingClause,ASTExceptionDeclaration,ASTExceptionHandler,ASTExistsCondition,ASTExitStatement,ASTExpression,ASTExpressionList,ASTExpressionListMultiple,ASTExpressionListSingle,ASTExtractExpression,ASTFetchStatement,ASTFieldDeclaration,ASTFloatingPointCondition,ASTForAllIndex,ASTForAllStatement,ASTForIndex,ASTFormalParameter,ASTFormalParameters,ASTForStatement,ASTForUpdateClause,ASTFromClause,ASTFunctionCall,ASTFunctionName,ASTGlobal,ASTGotoStatement,ASTGroupByClause,ASTGroupingExpressionList,ASTGroupingSetsClause,ASTHierarchicalQueryClause,ASTHostArrayName,ASTID,ASTIfStatement,ASTInCondition,ASTInlineConstraint,ASTInlinePragma,ASTInnerCrossJoinClause,ASTInput,ASTInsertIntoClause,ASTInsertStatement,ASTIntoClause,ASTIsASetCondition,ASTIsEmptyCondition,ASTIsNullCondition,ASTIsOfTypeCondition,ASTJavaInterfaceClass,ASTJoinClause,ASTKEYWORD_UNRESERVED,ASTLabel,ASTLabelledStatement,ASTLikeCondition,ASTLikeExpression,ASTListaggOverflowClause,ASTLiteral,ASTLoopStatement,ASTMemberCondition,ASTMethodDeclaration,ASTMethodDeclarator,ASTMultiplicativeExpression,ASTMultiSetCondition,ASTMultiTableInsert,ASTName,ASTNonDMLEvent,ASTNonDMLTrigger,ASTNullLiteral,ASTNumericLiteral,ASTObjectDeclaration,ASTObjectExpression,ASTObjectNameDeclaration,ASTOpenStatement,ASTOrderByClause,ASTOuterJoinClause,ASTOuterJoinExpression,ASTOuterJoinType,ASTOutOfLineConstraint,ASTPackageBody,ASTPackageSpecification,ASTParallelClause,ASTPartitionExtensionClause,ASTPipelineStatement,ASTPragma,ASTPragmaClause,ASTPrimaryExpression,ASTPrimaryPrefix,ASTPrimarySuffix,ASTProgramUnit,ASTQualifiedID,ASTQualifiedName,ASTQueryPartitionClause,ASTRaiseStatement,ASTRead2NextOccurrence,ASTReadPastNextOccurrence,ASTReferencesClause,ASTRegexpLikeCondition,ASTRelationalExpression,ASTReturningClause,ASTReturnStatement,ASTRollupCubeClause,ASTRowLimitingClause,ASTScalarDataTypeName,ASTSchemaName,ASTSelectList,ASTSimpleExpression,ASTSingleTableInsert,ASTSkip2NextOccurrence,ASTSkip2NextTerminator,ASTSkip2NextTokenOccurrence,ASTSkipPastNextOccurrence,ASTSkipPastNextTokenOccurrence,ASTSqlExpression,ASTSqlPlusCommand,ASTSqlStatement,ASTStatement,ASTStringExpression,ASTStringLiteral,ASTSubmultisetCondition,ASTSubqueryOperation,ASTSubqueryRestrictionClause,ASTSubTypeDefinition,ASTSynonym,ASTTable,ASTTableAlias,ASTTableCollectionExpression,ASTTableColumn,ASTTableName,ASTTableReference,ASTTriggerTimingPointSection,ASTTriggerUnit,ASTTrimExpression,ASTTypeKeyword,ASTTypeMethod,ASTTypeSpecification,ASTUnaryExpression,ASTUnaryExpressionNotPlusMinus,ASTUnlabelledStatement,ASTUnqualifiedID,ASTUpdateSetClause,ASTUpdateStatement,ASTValuesClause,ASTVariableName,ASTVariableOrConstantDeclaration,ASTVariableOrConstantDeclarator,ASTVariableOrConstantDeclaratorId,ASTVariableOrConstantInitializer,ASTView,ASTViewColumn,ASTWhereClause,ASTWhileStatement,ASTWindowingClause,ASTWithClause,ASTWithinClause,ASTWrappedObject,ASTXMLAttributesClause,ASTXMLElement,ASTXMLExists,ASTXMLNamespacesClause,ASTXMLPassingClause,ASTXMLTable,ASTXMLTableColum,ASTXMLTableOptions
public abstract class AbstractPLSQLNode extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<PLSQLNode> implements PLSQLNode
-
-
Field Summary
Fields Modifier and Type Field Description protected PLSQLParserparserprotected net.sourceforge.pmd.lang.symboltable.Scopescopeprotected Objectvalue
-
Constructor Summary
Constructors Constructor Description AbstractPLSQLNode(int i)AbstractPLSQLNode(PLSQLParser p, int i)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectchildrenAccept(PLSQLParserVisitor visitor, Object data)Accept the visitor.voiddump(String prefix)StringgetCanonicalImage()Return node image converted to the normal Oracle form.static StringgetCanonicalImage(String image)Convert arbitrary String to normal Oracle format, under assumption that the passed image is an Oracle name.net.sourceforge.pmd.lang.symboltable.ScopegetScope()StringgetXPathNodeName()ObjectjjtAccept(PLSQLParserVisitor visitor, Object data)Accept the visitor.voidjjtClose()ObjectjjtGetValue()voidjjtOpen()voidjjtSetValue(Object value)voidsetScope(net.sourceforge.pmd.lang.symboltable.Scope scope)StringtoString(String prefix)-
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, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, 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.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
value
protected Object value
-
parser
protected PLSQLParser parser
-
scope
protected net.sourceforge.pmd.lang.symboltable.Scope scope
-
-
Constructor Detail
-
AbstractPLSQLNode
public AbstractPLSQLNode(int i)
-
AbstractPLSQLNode
public AbstractPLSQLNode(PLSQLParser p, int i)
-
-
Method Detail
-
jjtOpen
public void jjtOpen()
- Specified by:
jjtOpenin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtOpenin 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
-
jjtSetValue
public void jjtSetValue(Object value)
-
jjtGetValue
public Object jjtGetValue()
-
jjtAccept
public Object jjtAccept(PLSQLParserVisitor visitor, Object data)
Description copied from interface:PLSQLNodeAccept the visitor.
-
childrenAccept
public Object childrenAccept(PLSQLParserVisitor visitor, Object data)
Description copied from interface:PLSQLNodeAccept the visitor.- Specified by:
childrenAcceptin interfacePLSQLNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
dump
public void dump(String prefix)
-
getCanonicalImage
public String getCanonicalImage()
Return node image converted to the normal Oracle form.Normally this is uppercase, unless the names is quoted ("name").
-
getCanonicalImage
public static String getCanonicalImage(String image)
Convert arbitrary String to normal Oracle format, under assumption that the passed image is an Oracle name.This a helper method for PLSQL classes dependent on SimpleNode, that would otherwise have to import PLSQParser.
- Parameters:
image-- Returns:
-
getScope
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
-
-