Example usage for com.google.common.collect ListMultimap toString

List of usage examples for com.google.common.collect ListMultimap toString

Introduction

In this page you can find the example usage for com.google.common.collect ListMultimap toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:exm.stc.ic.opt.FunctionInline.java

private void inlineFunctions(Logger logger, Program program) {
    // Do inlining repeatedly until no changes since removing a function
    // can allow more functions to be pruned;
    boolean changed;
    int i = 0;//from  ww w. j a v  a 2  s.  c om
    do {
        FuncCallFinder finder = new FuncCallFinder();
        TreeWalk.walk(logger, program, finder);

        pruneBuiltins(logger, program, finder);

        Pair<ListMultimap<FnID, FnID>, Set<FnID>> actions = selectInlineFunctions(program, finder);
        ListMultimap<FnID, FnID> inlineLocations = actions.val1;
        Set<FnID> toRemove = actions.val2;

        logger.debug("Inline locs: " + inlineLocations.toString());
        logger.debug("Functions to prune: " + toRemove.toString());

        changed = doInlining(logger, program, inlineLocations, toRemove);
        logger.debug("changed=" + changed);
        i++;
    } while (changed && i < MAX_ITERS_PER_PASS);
}

From source file:org.eclipse.acceleo.engine.internal.environment.AcceleoEvaluationEnvironment.java

/**
 * {@inheritDoc}//  w w  w. j  a  v  a  2 s  .  co  m
 * 
 * @see org.eclipse.ocl.AbstractEvaluationEnvironment#toString()
 */
@Override
public String toString() {
    ListMultimap<String, Object> variableMap = scopedVariableMap.getLast();
    return variableMap.toString();
}