Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`static SourceType` | `JAVA_13`
`static SourceType` | `JAVA_14`
`static SourceType` | `JAVA_15`
`static SourceType` | `JAVA_16`
`static SourceType` | `JAVA_17`
`static SourceType` | `JSP`

Method Summary
`int` | `compareTo(SourceType other)`
`boolean` | `equals(java.lang.Object other)`
`java.lang.String` | `getId()`
`static SourceType` | `getSourceTypeForId(java.lang.String id)` Get the SourceType for a certain Id.
`int` | `hashCode()`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### 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

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2009 InfoEther. All Rights Reserved.