org.codehaus.gmaven.runtime.support.stubgen.parser
Class SourceType

java.lang.Object
  extended by org.codehaus.gmaven.runtime.support.stubgen.parser.SourceType

public final class SourceType
extends Object

Pseudo-enum for Groovy/Java source type.

Version:
$Id: SourceType.java 18 2009-07-16 09:39:40Z user57 $
Author:
Jason Dillon

Field Summary
 int code
           
static SourceType GROOVY
           
static int GROOVY_CODE
           
static String GROOVY_EXT
           
static String GROOVY_NAME
           
static SourceType JAVA
           
static int JAVA_CODE
           
static String JAVA_EXT
           
static String JAVA_NAME
           
 String name
           
static String SOURCE_TYPE_TAG
           
 
Method Summary
static SourceType forCode(int code)
           
static SourceType forName(String name)
           
static SourceType forURL(URL url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GROOVY

public static final SourceType GROOVY

GROOVY_EXT

public static final String GROOVY_EXT
See Also:
Constant Field Values

GROOVY_NAME

public static final String GROOVY_NAME
See Also:
Constant Field Values

GROOVY_CODE

public static final int GROOVY_CODE
See Also:
Constant Field Values

JAVA

public static final SourceType JAVA

JAVA_EXT

public static final String JAVA_EXT
See Also:
Constant Field Values

JAVA_NAME

public static final String JAVA_NAME
See Also:
Constant Field Values

JAVA_CODE

public static final int JAVA_CODE
See Also:
Constant Field Values

SOURCE_TYPE_TAG

public static final String SOURCE_TYPE_TAG
See Also:
Constant Field Values

name

public final String name

code

public final int code
Method Detail

toString

public String toString()
Overrides:
toString in class Object

forURL

public static SourceType forURL(URL url)

forName

public static SourceType forName(String name)

forCode

public static SourceType forCode(int code)


Copyright © 2006-2012 Codehaus. All Rights Reserved.