net.sourceforge.pmd
Class SourceType
java.lang.Object
net.sourceforge.pmd.SourceType
- All Implemented Interfaces:
- java.lang.Comparable<SourceType>
public final class SourceType
- extends java.lang.Object
- implements java.lang.Comparable<SourceType>
Enumeration of the types of source code.
- Author:
- Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JAVA_13
public static final SourceType JAVA_13
JAVA_14
public static final SourceType JAVA_14
JAVA_15
public static final SourceType JAVA_15
JAVA_16
public static final SourceType JAVA_16
JAVA_17
public static final SourceType JAVA_17
JSP
public static final SourceType JSP
getId
public java.lang.String getId()
getSourceTypeForId
public static SourceType getSourceTypeForId(java.lang.String id)
- Get the SourceType for a certain Id. Case insensitive.
- Returns:
- null if not found
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
compareTo
public int compareTo(SourceType other)
- Specified by:
compareTo
in interface java.lang.Comparable<SourceType>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object