Package eu.simuline.util
Enum JavaPath.ClsSrc
- java.lang.Object
-
- java.lang.Enum<JavaPath.ClsSrc>
-
- eu.simuline.util.JavaPath.ClsSrc
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JavaPath.ClsSrc>
- Enclosing class:
- JavaPath
public static enum JavaPath.ClsSrc extends java.lang.Enum<JavaPath.ClsSrc>
Determines whether a class file or a source file is meant.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateClsSrc()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract java.lang.StringfileEnding()Returns the ending of a class file or of a source file.(package private) abstract java.lang.StringtrimInnerClass(java.lang.String clsName)Returns the name of the class enclosingclsName(includingclsNameitself) which has its own source/class-file.static JavaPath.ClsSrcvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JavaPath.ClsSrc[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Class
public static final JavaPath.ClsSrc Class
-
Source
public static final JavaPath.ClsSrc Source
-
-
Method Detail
-
values
public static JavaPath.ClsSrc[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JavaPath.ClsSrc c : JavaPath.ClsSrc.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JavaPath.ClsSrc valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fileEnding
abstract java.lang.String fileEnding()
Returns the ending of a class file or of a source file.- Returns:
- either
.classor.java.
-
trimInnerClass
abstract java.lang.String trimInnerClass(java.lang.String clsName)
Returns the name of the class enclosingclsName(includingclsNameitself) which has its own source/class-file.- Parameters:
clsName- the name of a class as aStringvalue.- Returns:
- The name of the class enclosing
clsName(includingclsNameitself) which has its own source/class-file. Note that for class files, this is justclsNameitself, whereas for source files the part of the classname followingJavaPath.INNER_CLASS_SEPis stripped off.
-
-