net.sourceforge.jane.jjtree
Class Modifiers

java.lang.Object
  |
  +--net.sourceforge.jane.jjtree.Modifiers
All Implemented Interfaces:
JavaParserConstants

public class Modifiers
extends java.lang.Object
implements JavaParserConstants

A container for modifiers.


Fields inherited from interface net.sourceforge.jane.jjtree.JavaParserConstants
_DEFAULT, ABSTRACT, ANDASSIGN, ASSERT, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
Modifiers()
          Create a new Modifiers.
 
Method Summary
 boolean isAbstract()
          Returns true if this element is abstract.
 boolean isFinal()
          Returns true if this element is final.
 boolean isNative()
          Returns true if this element is native.
 boolean isPackageProtected()
          Returns true if this element is package protected.
 boolean isPrivate()
          Returns true if this element is public.
 boolean isProtected()
          Returns true if this element is public.
 boolean isPublic()
          Returns true if this element is public.
 boolean isStatic()
          Returns true if this element is static.
 boolean isStrict()
          Returns true if this element is static.
 boolean isSynchronized()
          Returns true if this element is synchronized.
static Modifiers newInstance(Token start, Token end)
          Create a modifiers instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modifiers

public Modifiers()
Create a new Modifiers.
Method Detail

isPublic

public boolean isPublic()
Returns true if this element is public.

isProtected

public boolean isProtected()
Returns true if this element is public.

isPrivate

public boolean isPrivate()
Returns true if this element is public.

isPackageProtected

public boolean isPackageProtected()
Returns true if this element is package protected.

isAbstract

public boolean isAbstract()
Returns true if this element is abstract.

isFinal

public boolean isFinal()
Returns true if this element is final.

isStatic

public boolean isStatic()
Returns true if this element is static.

isNative

public boolean isNative()
Returns true if this element is native.

isSynchronized

public boolean isSynchronized()
Returns true if this element is synchronized.

isStrict

public boolean isStrict()
Returns true if this element is static.

newInstance

public static Modifiers newInstance(Token start,
                                    Token end)
Create a modifiers instance.


Copyright © 2002-2002 SourceForge. All Rights Reserved.