Package org.jboss.jdeparser
Class ImplJParamDeclaration
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- org.jboss.jdeparser.AbstractJDocCommentable
-
- org.jboss.jdeparser.BasicJAnnotatable
-
- org.jboss.jdeparser.ImplJParamDeclaration
-
- All Implemented Interfaces:
JAnnotatable
,JCommentable
,JDocCommentable
,JParamDeclaration
class ImplJParamDeclaration extends BasicJAnnotatable implements JParamDeclaration
-
-
Constructor Summary
Constructors Constructor Description ImplJParamDeclaration(int mods, JType type, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComment
doc()
Get the@param
JavaDoc block for this parameter.int
mods()
Get the parameter modifiers.java.lang.String
name()
Get the parameter name.JType
type()
Get the parameter type.boolean
varargs()
Determine whether the parameter is a vararg parameter.(package private) void
write(SourceFileWriter writer)
-
Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotations
-
Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotate
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
-
-
-
Field Detail
-
type
private final JType type
-
name
private final java.lang.String name
-
mods
private final int mods
-
-
Constructor Detail
-
ImplJParamDeclaration
ImplJParamDeclaration(int mods, JType type, java.lang.String name)
-
-
Method Detail
-
type
public JType type()
Description copied from interface:JParamDeclaration
Get the parameter type.- Specified by:
type
in interfaceJParamDeclaration
- Returns:
- the parameter type
-
name
public java.lang.String name()
Description copied from interface:JParamDeclaration
Get the parameter name.- Specified by:
name
in interfaceJParamDeclaration
- Returns:
- the parameter name
-
mods
public int mods()
Description copied from interface:JParamDeclaration
Get the parameter modifiers.- Specified by:
mods
in interfaceJParamDeclaration
- Returns:
- the parameter modifiers
-
varargs
public boolean varargs()
Description copied from interface:JParamDeclaration
Determine whether the parameter is a vararg parameter.- Specified by:
varargs
in interfaceJParamDeclaration
- Returns:
true
if the parameter is vararg,false
otherwise
-
doc
public JComment doc()
Description copied from interface:JParamDeclaration
Get the@param
JavaDoc block for this parameter.- Specified by:
doc
in interfaceJParamDeclaration
- Returns:
- the comment block
-
write
void write(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-