public class TypeImpl extends AnnotatedElementImpl implements Type
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.net.URI> |
definingURIs |
private java.util.List<MethodModel> |
methods |
private TypeProxy<Type> |
sink |
Constructor and Description |
---|
TypeImpl(java.lang.String name,
TypeProxy<Type> sink) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addDefiningURI(java.net.URI uri) |
(package private) void |
addMethod(MethodModelImpl m) |
java.util.Collection<java.net.URI> |
getDefiningURIs()
Returns the defining URIs
|
java.util.Collection<MethodModel> |
getMethods()
Returns an unmodifiable collection of methods that are declared
in this type.
|
(package private) TypeProxy<Type> |
getProxy() |
java.util.Collection<Member> |
getReferences()
Returns a unmodifiable collection of this type references.
|
protected void |
print(java.lang.StringBuffer sb) |
boolean |
wasDefinedIn(java.util.Collection<java.net.URI> uris)
Determine if this type was defined in one of the passed URI or not
|
addAnnotation, getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getName, shortDesc
private final java.util.List<MethodModel> methods
private final java.util.Set<java.net.URI> definingURIs
public java.util.Collection<java.net.URI> getDefiningURIs()
Type
getDefiningURIs
in interface Type
void addDefiningURI(java.net.URI uri)
public boolean wasDefinedIn(java.util.Collection<java.net.URI> uris)
Type
wasDefinedIn
in interface Type
uris
- collection of URI to check if this type was defined in them.void addMethod(MethodModelImpl m)
public java.util.Collection<MethodModel> getMethods()
Type
getMethods
in interface Type
public java.util.Collection<Member> getReferences()
Type
getReferences
in interface Type
protected void print(java.lang.StringBuffer sb)
print
in class AnnotatedElementImpl