Package org.openquark.cal.services.FeatureName

Examples of org.openquark.cal.services.FeatureName.FeatureType


     * @param locale the locale associated with the empty metadata.
     * @return the correct instance of CALFeatureMetadata without any fields initialized
     */
    public static CALFeatureMetadata getEmptyMetadata(CALFeatureName featureName, Locale locale) {
       
        FeatureType type = featureName.getType();
       
        if (type == CALFeatureName.FUNCTION) {
            return new FunctionMetadata(featureName, locale);
           
        } else if (type == CALFeatureName.CLASS_METHOD) {
View Full Code Here


       
        if (pathElementsOfFolder.length < 1) {
            return null;
        }
       
        FeatureType featureType = getFeatureTypeFromFolderPathElements(pathElementsOfFolder);
       
        ModuleName moduleName;
        if (featureType == CALFeatureName.MODULE) {
            moduleName = ModuleName.make(FileSystemResourceHelper.fromFileSystemName(pathElementsOfFolder[pathElementsOfFolder.length - 1]));
        } else {
View Full Code Here

    public ResourcePath.Folder getFeatureFolder(FeatureName featureName) {
        if (!(featureName instanceof CALFeatureName && ((CALFeatureName)featureName).hasModuleName())) {
            throw new IllegalArgumentException("The feature name must represent a cal feature, not the type " + featureName.getType());
        }

        FeatureType type = featureName.getType();
        ModuleName moduleName = ((CALFeatureName)featureName).toModuleName();
        return getFeatureFolder(moduleName, type);
    }
View Full Code Here

     * @param featureName the name of the feature.
     * @return the string to use to look up that feature.
     */
    private String getFeatureString(FeatureName featureName) {
       
        FeatureType type = featureName.getType();
       
        if (featureName instanceof CALFeatureName) {

            CALFeatureName calFeatureName = (CALFeatureName)featureName;
           
View Full Code Here

     * @param featureName the feature name to get an address for
     * @return an address for the given feature name
     */
    public static NavAddress getAddress(CALFeatureName featureName) {
       
        FeatureType type = featureName.getType();
       
        if (type == CALFeatureName.FUNCTION) {
            return new NavAddress(FUNCTION_METHOD, featureName.getName(), null, null);
           
        } else if (type == CALFeatureName.TYPE_CONSTRUCTOR) {
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.FeatureName.FeatureType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.