Top Description Methods
com.github.javaparser.resolution.declarations

public Interface ResolvedParameterDeclaration

extends ResolvedValueDeclaration

Declaration of a parameter.
Author
Federico Tomassetti

Method Summary

Modifier and TypeMethod and Description
public default ResolvedParameterDeclaration
asParameter()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.asParameter.

Return this as a ParameterDeclaration or throw an UnsupportedOperationException
public default String
describeType()

Describe the type of the parameter.

public default boolean
hasName()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.hasName.

Necessary because parameters obtained through reflection could not have a name.
public default boolean
isParameter()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.isParameter.

Does this declaration represents a method parameter?
public boolean
isVariadic()

Is this parameter declared as variadic?

Inherited from com.github.javaparser.resolution.declarations.ResolvedValueDeclaration:
getType

Method Detail

asParameterback to summary
public default ResolvedParameterDeclaration asParameter()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.asParameter.

Doc from com.github.javaparser.resolution.declarations.ResolvedDeclaration.asParameter.

Return this as a ParameterDeclaration or throw an UnsupportedOperationException

Annotations
@Override
describeTypeback to summary
public default String describeType()

Describe the type of the parameter. In practice add three dots to the type name if the parameter is variadic.

hasNameback to summary
public default boolean hasName()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.hasName.

Necessary because parameters obtained through reflection could not have a name.

isParameterback to summary
public default boolean isParameter()

Overrides default com.github.javaparser.resolution.declarations.ResolvedDeclaration.isParameter.

Doc from com.github.javaparser.resolution.declarations.ResolvedDeclaration.isParameter.

Does this declaration represents a method parameter?

Annotations
@Override
isVariadicback to summary
public boolean isVariadic()

Is this parameter declared as variadic?