Class AbstractPLSQLNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- 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,ASTFetchStatement,ASTFieldDeclaration,ASTFloatingPointCondition,ASTForAllIndex,ASTForAllStatement,ASTForIndex,ASTFormalParameter,ASTFormalParameters,ASTForStatement,ASTFromClause,ASTFunctionCall,ASTFunctionName,ASTGlobal,ASTGotoStatement,ASTGroupByClause,ASTGroupingExpressionList,ASTGroupingSetsClause,ASTHierarchicalQueryClause,ASTHostArrayName,ASTID,ASTIfStatement,ASTInCondition,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,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,ASTWithinClause,ASTWrappedObject,ASTXMLAttributesClause,ASTXMLElement,ASTXMLExists,ASTXMLNamespacesClause,ASTXMLPassingClause,ASTXMLTable,ASTXMLTableColum,ASTXMLTableOptions
public abstract class AbstractPLSQLNode extends net.sourceforge.pmd.lang.ast.AbstractNode implements PLSQLNode
-
-
Field Summary
Fields Modifier and Type Field Description protected PLSQLParserparserprotected net.sourceforge.pmd.lang.symboltable.Scopescopeprotected java.lang.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 java.lang.ObjectchildrenAccept(PLSQLParserVisitor visitor, java.lang.Object data)Accept the visitor.voiddump(java.lang.String prefix)java.lang.StringgetCanonicalImage()Return node image converted to the normal Oracle form.static java.lang.StringgetCanonicalImage(java.lang.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()java.lang.StringgetXPathNodeName()java.lang.ObjectjjtAccept(PLSQLParserVisitor visitor, java.lang.Object data)Accept the visitor.voidjjtClose()java.lang.ObjectjjtGetValue()voidjjtOpen()voidjjtSetValue(java.lang.Object value)voidsetScope(net.sourceforge.pmd.lang.symboltable.Scope scope)java.lang.StringtoString(java.lang.String prefix)-
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, getNthParent, 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, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
value
protected java.lang.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(java.lang.Object value)
-
jjtGetValue
public java.lang.Object jjtGetValue()
-
jjtAccept
public java.lang.Object jjtAccept(PLSQLParserVisitor visitor, java.lang.Object data)
Description copied from interface:PLSQLNodeAccept the visitor.
-
childrenAccept
public java.lang.Object childrenAccept(PLSQLParserVisitor visitor, java.lang.Object data)
Description copied from interface:PLSQLNodeAccept the visitor.- Specified by:
childrenAcceptin interfacePLSQLNode
-
getXPathNodeName
public java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
toString
public java.lang.String toString(java.lang.String prefix)
-
dump
public void dump(java.lang.String prefix)
-
getCanonicalImage
public java.lang.String getCanonicalImage()
Return node image converted to the normal Oracle form.Normally this is uppercase, unless the names is quoted ("name").
-
getCanonicalImage
public static java.lang.String getCanonicalImage(java.lang.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()
-
-