Package org.hybridlabs.source.beautifier.replacement

Examples of org.hybridlabs.source.beautifier.replacement.DefaultTypeReplacementStrategy


    private Map<Integer, TypeReplacementStrategy> strategyMap = new HashMap<Integer, TypeReplacementStrategy>();

    public JavaImportBeautifierImpl() {
        // populate strategy map
      strategyMap.put(new Integer(NEW), new DefaultTypeReplacementStrategy("[\\,\\<\\)\\[\\<\\(\\s]"));
      strategyMap.put(new Integer(GENERIC_UPPER_BOUNDS), new DefaultTypeReplacementStrategy( "[\\(\\,\\<\\[\\,\\>\\s]"));
      strategyMap.put(new Integer(EXTENDS_CLAUSE), new DefaultTypeReplacementStrategy("[\\(\\>\\<\\[\\,\\;\\{\\s]"));
      strategyMap.put(new Integer(IMPLEMENTS_CLAUSE), new DefaultTypeReplacementStrategy("[\\(\\>\\<\\[\\,\\;\\{\\s]"));
      strategyMap.put(new Integer(THROWS), new DefaultTypeReplacementStrategy("[\\(\\,\\>\\<\\)\\.\\s*]"));
      strategyMap.put(new Integer(TYPE), new DefaultTypeReplacementStrategy("[\\(\\,\\>\\)\\[\\<\\;\\s\\.]"));
      strategyMap.put(new Integer(EXPRESSION), new DefaultTypeReplacementStrategy("[\\(\\,\\>\\<\\)\\.\\s*]"));
      strategyMap.put(new Integer(ANNOTATION), new DefaultTypeReplacementStrategy("[\\(\\>\\<\\[\\,\\;\\{\\s]"));
      strategyMap.put(new Integer(AT), new DefaultTypeReplacementStrategy("[\\(\\>\\<\\[\\,\\;\\{\\s]"));
      strategyMap.put(new Integer(CAST), new DefaultTypeReplacementStrategy("[\\(\\)\\>\\<\\[\\,\\;\\{\\s\\.]"));
      strategyMap.put(new Integer(ANNOTATION_VALUE), new DefaultTypeReplacementStrategy("[\\(\\>\\<\\[\\,\\;\\{\\s\\.]"));
    }
View Full Code Here


   
    private Map strategyMap = new HashMap();
   
    public JavaImportBeautifierImpl() {
        // populate strategy map
        strategyMap.put(new Integer(NEW), new DefaultTypeReplacementStrategy("[\\,|\\<|\\)|\\[|\\<|\\(|\\s]"));
        strategyMap.put(new Integer(GENERIC_UPPER_BOUNDS), new DefaultTypeReplacementStrategy( "[\\(|\\,|\\<|\\[|\\,|\\>|\\s]"));
        strategyMap.put(new Integer(EXTENDS_CLAUSE), new DefaultTypeReplacementStrategy("[\\(|\\>|\\<|\\[|\\,|\\;|\\{\\s]"));
        strategyMap.put(new Integer(IMPLEMENTS_CLAUSE), new DefaultTypeReplacementStrategy("[\\(|\\>|\\<|\\[|\\,|\\;|\\{|\\s]"));
       
        strategyMap.put(new Integer(TYPE), new DefaultTypeReplacementStrategy("[\\(|\\,|\\>|\\)\\[\\<|\\;|\\s|\\.class]"));
        strategyMap.put(new Integer(EXPRESSION), new DefaultTypeReplacementStrategy("[\\(|\\,|\\>|\\<|\\)|\\.|\\s*]"));
        strategyMap.put(new Integer(ANNOTATION), new DefaultTypeReplacementStrategy("[\\(|\\>|\\<|\\[\\,|\\;|\\{|\\s]"));
        strategyMap.put(new Integer(AT), new DefaultTypeReplacementStrategy("[\\(|\\>|\\<|\\[\\,|\\;|\\{|\\s]"));
        strategyMap.put(new Integer(CAST), new DefaultTypeReplacementStrategy("[\\(|\\)|\\>|\\<|\\[\\,|\\;|\\{|\\s|\\.]"));
        strategyMap.put(new Integer(ANNOTATION_VALUE), new DefaultTypeReplacementStrategy("[\\(|\\>|\\<|\\[|\\,|\\;|\\{|\\s|\\.]"));
    }
View Full Code Here

TOP

Related Classes of org.hybridlabs.source.beautifier.replacement.DefaultTypeReplacementStrategy

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.