public interface ClassDeclaration extends AnnotationTypeElementDeclaration, BlockStatement, TypeDeclaration
ClassDeclaration
denotes the nonterminal symbol ClassDeclaration, as defined by the Java Language Specification.Modifier and Type | Method and Description |
---|---|
Identifier |
getIdentifier()
Returns the
Identifier for this ClassDeclaration . |
boolean |
isAbstract()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to abstract , false otherwise. |
boolean |
isFinal()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to final , false otherwise. |
boolean |
isPrivate()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to private , false otherwise. |
boolean |
isProtected()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to protected , false otherwise. |
boolean |
isPublic()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to public , false otherwise. |
boolean |
isStatic()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to static , false otherwise. |
boolean |
isStrictFP()
Returns
true if, and only if, the class modifiers of this ClassDeclaration is set to strictfp , false otherwise. |
void |
setAbstract(boolean isAbstract)
Sets or unsets the
abstract class modifier for this ClassDeclaration instance. |
void |
setFinal(boolean isFinal)
Sets or unsets the
final class modifier for this ClassDeclaration instance. |
void |
setIdentifier(Identifier identifier)
Sets the
Identifier for this ClassDeclaration instance. |
void |
setPrivate(boolean isPrivate)
Sets or unsets the
private class modifier for this ClassDeclaration instance. |
void |
setProtected(boolean isProtected)
Sets or unsets the
protected class modifier for this ClassDeclaration instance. |
void |
setPublic(boolean isPublic)
Sets or unsets the
public class modifier for this ClassDeclaration instance. |
void |
setStatic(boolean isStatic)
Sets or unsets the
static class modifier for this ClassDeclaration instance. |
void |
setStrictFP(boolean isStrictFP)
Sets or unsets the
strictfp class modifier for this ClassDeclaration instance. |
boolean isAbstract()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to abstract
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to abstract
, false
otherwiseboolean isFinal()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to final
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to final
, false
otherwiseboolean isPrivate()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to private
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to private
, false
otherwiseboolean isProtected()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to protected
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to protected
, false
otherwiseboolean isPublic()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to public
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to public
, false
otherwiseboolean isStatic()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to static
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to static
, false
otherwiseboolean isStrictFP()
true
if, and only if, the class modifiers of this ClassDeclaration
is set to strictfp
, false
otherwise.true
if, and only if, the class modifiers of this ClassDeclaration
is set to strictfp
, false
otherwiseIdentifier getIdentifier()
Identifier
for this ClassDeclaration
void setAbstract(boolean isAbstract)
abstract
class modifier for this ClassDeclaration
instance.
If isAbstract
is true
, the class modifiers final
and static
will be unset.
isAbstract
- the new state for the abstract
class modifiervoid setFinal(boolean isFinal)
final
class modifier for this ClassDeclaration
instance.
If isFinal
is true
, the class modifier abstract
will be unset.
isFinal
- the new state for the final
class modifiervoid setIdentifier(Identifier identifier)
Identifier
for this ClassDeclaration
instance.
If identifier
is null
, a NullPointerException
should be thrown.
identifier
- the new Identifier
java.lang.NullPointerException
- thrown if, and only if, identifier
is null
void setPrivate(boolean isPrivate)
private
class modifier for this ClassDeclaration
instance.
If isPrivate
is true
, the class modifiers protected
and public
will be unset.
isPrivate
- the new state for the private
class modifiervoid setProtected(boolean isProtected)
protected
class modifier for this ClassDeclaration
instance.
If isProtected
is true
, the class modifiers private
and public
will be unset.
isProtected
- the new state for the protected
class modifiervoid setPublic(boolean isPublic)
public
class modifier for this ClassDeclaration
instance.
If isPublic
is true
, the class modifiers private
and protected
will be unset.
isPublic
- the new state for the public
class modifiervoid setStatic(boolean isStatic)
static
class modifier for this ClassDeclaration
instance.
If isStatic
is true
, the class modifier abstract
will be unset.
isStatic
- the new state for the static
class modifiervoid setStrictFP(boolean isStrictFP)
strictfp
class modifier for this ClassDeclaration
instance.isStrictFP
- the new state for the strictfp
class modifier