Class AnalysisTreeRepresentationImpl

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.tensorics.core.util.chains.Chain<java.lang.String> fallbackNaming()
      Provides a naming representation, which will always returns a name and never null.
      org.tensorics.core.util.chains.Chain<java.lang.String> formulaLike()
      Retrieves a representation function, which expresses the expression tree like formula.
      org.tensorics.core.util.chains.Chain<java.lang.String> strictNaming()
      Retrieves a representation which only retrieves a name when it is really well defined, otherwise it will retrieve null.
      static AnalysisTreeRepresentationImpl usingEmptyNameRepo()  
      static AnalysisTreeRepresentationImpl usingNamesFrom​(org.tensorics.core.util.names.NameRepository nameRepository)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • strictNaming

        public final org.tensorics.core.util.chains.Chain<java.lang.String> strictNaming()
        Retrieves a representation which only retrieves a name when it is really well defined, otherwise it will retrieve null. Currently, as well defined we mean that it has either a valid name method or is stored as a constant in one of the classes in the default scanning range.
        Specified by:
        strictNaming in interface AnalysisTreeRepresentation
        Returns:
        a string representation, that only returns non-null values if it is well defined.
      • fallbackNaming

        public final org.tensorics.core.util.chains.Chain<java.lang.String> fallbackNaming()
        Provides a naming representation, which will always returns a name and never null. The fallback here is currently the simple class name.
        Specified by:
        fallbackNaming in interface AnalysisTreeRepresentation
        Returns:
        a function that maps objects to names and never returns null