|
Groovy example source code file (Phases.java)
The Groovy Phases.java source code/* * Copyright 2003-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.codehaus.groovy.control; /** * Compilation phase identifiers. * * @author <a href="mailto:cpoirier@dreaming.org">Chris Poirier * * @version $Id: Phases.java 10493 2008-01-19 10:23:02Z russel $ */ public class Phases { public static final int INITIALIZATION = 1; // Opening of files and such public static final int PARSING = 2; // Lexing, parsing, and AST building public static final int CONVERSION = 3; // CST to AST conversion public static final int SEMANTIC_ANALYSIS = 4; // AST semantic analysis and elucidation public static final int CANONICALIZATION = 5; // AST completion public static final int INSTRUCTION_SELECTION = 6; // Class generation, phase 1 public static final int CLASS_GENERATION = 7; // Class generation, phase 2 public static final int OUTPUT = 8; // Output of class to disk public static final int FINALIZATION = 9; // Cleanup public static final int ALL = 9; // Synonym for full compilation public static String[] descriptions = { "startup" , "initialization" , "parsing" , "conversion" , "semantic analysis" , "canonicalization" , "instruction selection" , "class generation" , "output" , "cleanup" }; /** * Returns a description of the specified phase. */ public static String getDescription( int phase ) { return descriptions[phase]; } } Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Phases.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.