All Downloads are FREE. Search and download functionalities are using the official Maven repository.

processing.mode.java.preproc.PreprocessorResult Maven / Gradle / Ivy

Go to download

Processing is a programming language, development environment, and online community. This Java Mode package contains the Java mode for Processing IDE.

The newest version!
package processing.mode.java.preproc;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import processing.app.SketchException;

/**
 * 
 * @author Jonathan Feinberg <[email protected]>
 *
 */
public class PreprocessorResult {
  public final int headerOffset;
  public final String className;
  public final List extraImports;
  public final PdePreprocessor.Mode programType;

  public PreprocessorResult(PdePreprocessor.Mode programType,
                          int headerOffset, String className,
                          final List extraImports) throws SketchException {
    if (className == null) {
      throw new SketchException("Could not find main class");
    }
    this.headerOffset = headerOffset;
    this.className = className;
    this.extraImports = Collections.unmodifiableList(new ArrayList(extraImports));
    this.programType = programType;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy