Class AnalysisTreeRepresentationImpl
- java.lang.Object
-
- org.streamingpool.ext.analysis.repr.AnalysisTreeRepresentationImpl
-
- All Implemented Interfaces:
AnalysisTreeRepresentation
public class AnalysisTreeRepresentationImpl extends java.lang.Object implements AnalysisTreeRepresentation
-
-
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 retrievenull.static AnalysisTreeRepresentationImplusingEmptyNameRepo()static AnalysisTreeRepresentationImplusingNamesFrom(org.tensorics.core.util.names.NameRepository nameRepository)
-
-
-
Method Detail
-
usingNamesFrom
public static AnalysisTreeRepresentationImpl usingNamesFrom(org.tensorics.core.util.names.NameRepository nameRepository)
-
usingEmptyNameRepo
public static AnalysisTreeRepresentationImpl usingEmptyNameRepo()
-
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 retrievenull. 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:
strictNamingin interfaceAnalysisTreeRepresentation- 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:
fallbackNamingin interfaceAnalysisTreeRepresentation- Returns:
- a function that maps objects to names and never returns
null
-
formulaLike
public org.tensorics.core.util.chains.Chain<java.lang.String> formulaLike()
Description copied from interface:AnalysisTreeRepresentationRetrieves a representation function, which expresses the expression tree like formula.- Specified by:
formulaLikein interfaceAnalysisTreeRepresentation- Returns:
- a function that maps expressions to a text representing the formula
- See Also:
AnalysisTreeRepresentation.formulaLike()
-
-