Enum xswag_syntax_java::lex::Keyword [] [src]

pub enum Keyword {
    Abstract,
    Assert,
    Boolean,
    Break,
    Byte,
    Case,
    Catch,
    Char,
    Class,
    Const,
    Continue,
    Default,
    Do,
    Double,
    Else,
    Enum,
    Extends,
    Final,
    Finally,
    Float,
    For,
    If,
    Goto,
    Implements,
    Import,
    Instanceof,
    Int,
    Interface,
    Long,
    Native,
    New,
    Package,
    Private,
    Protected,
    Public,
    Return,
    Short,
    Static,
    Strictfp,
    Super,
    Switch,
    Synchronized,
    This,
    Throw,
    Throws,
    Transient,
    Try,
    Void,
    Volatile,
    While,
}

Represents one of the Java keywords

Variants

AbstractAssertBooleanBreakByteCaseCatchCharClassConstContinueDefaultDoDoubleElseEnumExtendsFinalFinallyFloatForIfGotoImplementsImportInstanceofIntInterfaceLongNativeNewPackagePrivateProtectedPublicReturnShortStaticStrictfpSuperSwitchSynchronizedThisThrowThrowsTransientTryVoidVolatileWhile

Methods

impl Keyword
[src]

fn as_java_string(&self) -> &'static str

Trait Implementations

impl Debug for Keyword
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for Keyword
[src]

impl PartialEq for Keyword
[src]

fn eq(&self, __arg_0: &Keyword) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Clone for Keyword
[src]

fn clone(&self) -> Keyword

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Keyword
[src]

impl Display for Keyword
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl FromStr for Keyword
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

impl Into<String> for Keyword
[src]

fn into(self) -> String

Performs the conversion.