Class TypeImpl

    • Field Detail

      • methods

        private final java.util.List<MethodModel> methods
      • definingURIs

        private final java.util.Set<java.net.URI> definingURIs
    • Constructor Detail

      • TypeImpl

        public TypeImpl​(java.lang.String name,
                        TypeProxy<Type> sink)
    • Method Detail

      • getDefiningURIs

        public java.util.Collection<java.net.URI> getDefiningURIs()
        Description copied from interface: Type
        Returns the defining URIs
        Specified by:
        getDefiningURIs in interface Type
        Returns:
        a collection of URIs in which the type was defined
      • addDefiningURI

        void addDefiningURI​(java.net.URI uri)
      • wasDefinedIn

        public boolean wasDefinedIn​(java.util.Collection<java.net.URI> uris)
        Description copied from interface: Type
        Determine if this type was defined in one of the passed URI or not
        Specified by:
        wasDefinedIn in interface Type
        Parameters:
        uris - collection of URI to check if this type was defined in them.
        Returns:
        true if this type as defined in one the passed URI
      • getMethods

        public java.util.Collection<MethodModel> getMethods()
        Description copied from interface: Type
        Returns an unmodifiable collection of methods that are declared in this type.
        Specified by:
        getMethods in interface Type
        Returns:
        methods declared on this type
      • getReferences

        public java.util.Collection<Member> getReferences()
        Description copied from interface: Type
        Returns a unmodifiable collection of this type references. A reference can be a field declaration in a type which type is this instance or it can be a method declaration which return type is this type
        Specified by:
        getReferences in interface Type
        Returns:
        references on this type