Class ASTModifierNode
- 
                    
                    
- All Implemented Interfaces:
 - 
                            
                            
net.sourceforge.pmd.lang.apex.ast.AccessNode,net.sourceforge.pmd.lang.apex.ast.ApexNode,net.sourceforge.pmd.lang.ast.Node,net.sourceforge.pmd.lang.ast.impl.GenericNode,net.sourceforge.pmd.reporting.Reportable 
public final class ASTModifierNode extends AbstractApexNode.Many<T> implements AccessNode
 
- 
                
                    
                    
- 
                                
                            
                                
Field Summary
Fields Modifier and Type Field Description public final static intPUBLICpublic final static intPRIVATEpublic final static intPROTECTEDpublic final static intSTATICpublic final static intFINALpublic final static intTRANSIENTpublic final static intABSTRACTpublic final static Comparator<Node>COORDS_COMPARATOR 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description intgetModifiers()booleanisPublic()booleanisProtected()booleanisPrivate()booleanisAbstract()booleanisStatic()booleanisFinal()booleanisTransient()booleanisTest()Returns true if function has `@isTest` annotation or `testmethod` modifier booleanhasDeprecatedTestMethod()Returns true if function has `testmethod` modifier booleanisTestOrTestSetup()booleanisWithSharing()booleanisWithoutSharing()booleanisInheritedSharing()booleanisWebService()booleanisGlobal()booleanisOverride()booleanisVirtual()- 
                                            
                                        
                                            
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.Many
hasRealLoc - 
                                            
                                        
                                            
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNode
acceptVisitor, getDefiningType, getRoot, getTextRegion, getXPathNodeName - 
                                            
                                        
                                            
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, toString - 
                                            
                                        
                                            
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, descendants, descendantsOrSelf, getFirstChild, getLastChild, getNextSibling, getPreviousSibling - 
                                            
                                        
                                            
Methods inherited from class net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, ancestors, ancestorsOrSelf, asStream, children, children, compareLocation, descendants, descendants, descendantsOrSelf, getAstInfo, getBeginColumn, getBeginLine, getChild, getEndColumn, getEndLine, getFirstChild, getImage, getLanguageVersion, getLastChild, getNextSibling, getParent, getPreviousSibling, getReportLocation, getRoot, getTextDocument, getTextRegion, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary - 
                                        
                                    
                                        
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
getModifiers
int getModifiers()
 
- 
                                        
isPublic
boolean isPublic()
 
- 
                                        
isProtected
boolean isProtected()
 
- 
                                        
isPrivate
boolean isPrivate()
 
- 
                                        
isAbstract
boolean isAbstract()
 
- 
                                        
isStatic
boolean isStatic()
 
- 
                                        
isFinal
boolean isFinal()
 
- 
                                        
isTransient
boolean isTransient()
 
- 
                                        
isTest
boolean isTest()
Returns true if function has `@isTest` annotation or `testmethod` modifier
 
- 
                                        
hasDeprecatedTestMethod
boolean hasDeprecatedTestMethod()
Returns true if function has `testmethod` modifier
 
- 
                                        
isTestOrTestSetup
boolean isTestOrTestSetup()
 
- 
                                        
isWithSharing
boolean isWithSharing()
 
- 
                                        
isWithoutSharing
boolean isWithoutSharing()
 
- 
                                        
isInheritedSharing
boolean isInheritedSharing()
 
- 
                                        
isWebService
boolean isWebService()
 
- 
                                        
isGlobal
boolean isGlobal()
 
- 
                                        
isOverride
boolean isOverride()
 
- 
                                        
isVirtual
boolean isVirtual()
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                                            
                                        
                                            
 
 -