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:
ASTAccessibleByClause
,ASTAdditiveExpression
,ASTAlterTrigger
,ASTAlterTypeSpec
,ASTArgument
,ASTArgumentList
,ASTArguments
,ASTAssignment
,ASTAttribute
,ASTAttributeDeclaration
,ASTBlock
,ASTBooleanLiteral
,ASTCallSpecTail
,ASTCaseExpression
,ASTCaseStatement
,ASTCaseWhenClause
,ASTCloseStatement
,ASTCollectionDeclaration
,ASTCollectionTypeDefinition
,ASTCollectionTypeName
,ASTComment
,ASTCompilationDataType
,ASTCompilationDeclarationFragment
,ASTCompilationExpression
,ASTCompoundTriggerBlock
,ASTConditionalAndExpression
,ASTConditionalCompilationStatement
,ASTConditionalOrExpression
,ASTContinueStatement
,ASTCursorBody
,ASTCursorForLoopStatement
,ASTCursorSpecification
,ASTCursorUnit
,ASTDatabaseEvent
,ASTDatabaseLink
,ASTDatatype
,ASTDatatypeDeclaration
,ASTDateTimeLiteral
,ASTDDLCommand
,ASTDDLEvent
,ASTDeclarativeSection
,ASTDeclarativeUnit
,ASTDirectory
,ASTElseClause
,ASTElsifClause
,ASTEmbeddedSqlStatement
,ASTEqualityExpression
,ASTEqualsOldIDNewID
,ASTExceptionDeclaration
,ASTExceptionHandler
,ASTExitStatement
,ASTExpression
,ASTFetchStatement
,ASTFieldDeclaration
,ASTForAllIndex
,ASTForAllStatement
,ASTForIndex
,ASTFormalParameter
,ASTFormalParameters
,ASTForStatement
,ASTGlobal
,ASTGotoStatement
,ASTID
,ASTIfStatement
,ASTInlinePragma
,ASTInput
,ASTIsNullCondition
,ASTIsOfTypeCondition
,ASTJavaInterfaceClass
,ASTKEYWORD_RESERVED
,ASTKEYWORD_UNRESERVED
,ASTLabel
,ASTLabelledStatement
,ASTLikeExpression
,ASTLiteral
,ASTLoopStatement
,ASTMethodDeclaration
,ASTMethodDeclarator
,ASTMultiplicativeExpression
,ASTMultiSetCondition
,ASTName
,ASTNonDMLEvent
,ASTNonDMLTrigger
,ASTNullLiteral
,ASTNumericLiteral
,ASTObjectDeclaration
,ASTObjectExpression
,ASTObjectNameDeclaration
,ASTOpenStatement
,ASTOutOfLineConstraint
,ASTPackageBody
,ASTPackageSpecification
,ASTParallelClause
,ASTPipelineStatement
,ASTPragma
,ASTPragmaClause
,ASTPrimaryExpression
,ASTPrimaryPrefix
,ASTPrimarySuffix
,ASTProgramUnit
,ASTQualifiedID
,ASTQualifiedName
,ASTRaiseStatement
,ASTRead2NextOccurrence
,ASTReadPastNextOccurrence
,ASTReferencesClause
,ASTRelationalExpression
,ASTReturnStatement
,ASTScalarDataTypeName
,ASTSelectStatement
,ASTSkip2NextOccurrence
,ASTSkip2NextTerminator
,ASTSkip2NextTokenOccurrence
,ASTSkipPastNextOccurrence
,ASTSkipPastNextTokenOccurrence
,ASTSqlPlusCommand
,ASTSqlStatement
,ASTStatement
,ASTStringExpression
,ASTStringLiteral
,ASTSubTypeDefinition
,ASTSynonym
,ASTTable
,ASTTableColumn
,ASTTriggerTimingPointSection
,ASTTriggerUnit
,ASTTrimExpression
,ASTTypeKeyword
,ASTTypeMethod
,ASTTypeSpecification
,ASTUnaryExpression
,ASTUnaryExpressionNotPlusMinus
,ASTUnlabelledStatement
,ASTUnqualifiedID
,ASTVariableOrConstantDeclaration
,ASTVariableOrConstantDeclarator
,ASTVariableOrConstantDeclaratorId
,ASTVariableOrConstantInitializer
,ASTView
,ASTViewColumn
,ASTWhileStatement
,ASTWrappedObject
public abstract class AbstractPLSQLNode extends net.sourceforge.pmd.lang.ast.AbstractNode implements PLSQLNode
-
-
Field Summary
Fields Modifier and Type Field Description protected PLSQLParser
parser
protected net.sourceforge.pmd.lang.symboltable.Scope
scope
protected java.lang.Object
value
-
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.Object
childrenAccept(PLSQLParserVisitor visitor, java.lang.Object data)
Accept the visitor.void
dump(java.lang.String prefix)
java.lang.String
getCanonicalImage()
Return node image converted to the normal Oracle form.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.net.sourceforge.pmd.lang.symboltable.Scope
getScope()
java.lang.String
getXPathNodeName()
java.lang.Object
jjtAccept(PLSQLParserVisitor visitor, java.lang.Object data)
Accept the visitor.void
jjtClose()
java.lang.Object
jjtGetValue()
void
jjtOpen()
void
jjtSetValue(java.lang.Object value)
void
setScope(net.sourceforge.pmd.lang.symboltable.Scope scope)
java.lang.String
toString(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:
jjtOpen
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
jjtOpen
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtClose
public void jjtClose()
- Specified by:
jjtClose
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
jjtClose
in 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:PLSQLNode
Accept the visitor.
-
childrenAccept
public java.lang.Object childrenAccept(PLSQLParserVisitor visitor, java.lang.Object data)
Description copied from interface:PLSQLNode
Accept the visitor.- Specified by:
childrenAccept
in interfacePLSQLNode
-
getXPathNodeName
public java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getXPathNodeName
in 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()
-
-