java.lang.Object
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ExternalDefinition
- All Implemented Interfaces:
- IDefinition
- Direct Known Subclasses:
- ExternalClass, ExternalConstructor, ExternalMethod, ExternalPackage, ExternalVariable, InterfaceConstructor
- public abstract class ExternalDefinition
- extends java.lang.Object
- implements IDefinition
|
Method Summary |
void |
addReference(Reference reference)
adds any reference that this definition have to its collection of
_references |
int |
getNumReferences()
gets the number of references refer to by this definition |
java.util.Iterator |
getReferences()
gets the collection of references refer to by this definition |
boolean |
isSourced()
verifies if this definition node is source/non-sourced(with no source-code) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalDefinition
public ExternalDefinition()
isSourced
public boolean isSourced()
- Description copied from interface:
IDefinition
- verifies if this definition node is source/non-sourced(with no source-code)
- Specified by:
isSourced in interface IDefinition
addReference
public void addReference(Reference reference)
- Description copied from interface:
IDefinition
- adds any reference that this definition have to its collection of
_references
- Specified by:
addReference in interface IDefinition
getReferences
public java.util.Iterator getReferences()
- Description copied from interface:
IDefinition
- gets the collection of references refer to by this definition
- Specified by:
getReferences in interface IDefinition
getNumReferences
public int getNumReferences()
- Description copied from interface:
IDefinition
- gets the number of references refer to by this definition
- Specified by:
getNumReferences in interface IDefinition