Top Inners Fields Constructors Methods
org.glassfish.pfl.basic.tools.argparser

public Class ElementParserImpl

extends Object
implements ElementParser
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.basic.tools.argparser.ElementParser, org.glassfish.pfl.basic.func.UnaryFunction, java.util.function.Function
Imports
java.lang.reflect.Array, .Constructor, .InvocationTargetException, .Method, .ParameterizedType, .Type, java.util.ArrayList, .List, org.glassfish.pfl.basic.contain.Pair, org.glassfish.pfl.basic.func.UnaryFunction

References Deprecated

ElementParser is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private String[]
private UnaryFunction<String, Object>
func

References Deprecated UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv String[]
append(String str, String[] strs)

public String[]
public Object
private ElementParserImpl.ResultData
private String
private Class<T>
private UnaryFunction<String, Object>
getPrimitiveParser(Class<T> type)
References Deprecated UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

private String
private ElementParserImpl.ResultData
getSimpleData(final Class<T> type)

private UnaryFunction<String, Object>
makeClassConverter(final Class<?> type)
References Deprecated UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
private String[] description
funcback to summary
private UnaryFunction<String, Object> func

References Deprecated

UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

ElementParserImplback to summary
public ElementParserImpl(Method m)

Method Detail

appendback to summary
pack-priv String[] append(String str, String[] strs)
describeback to summary
public String[] describe()

Implements org.glassfish.pfl.basic.tools.argparser.ElementParser.describe.

Annotations
@Override
evaluateback to summary
public Object evaluate(String str)

Implements org.glassfish.pfl.basic.func.UnaryFunction.evaluate.

Annotations
@Override
getDataback to summary
private ElementParserImpl.ResultData getData(Method meth)
getEnumElementsback to summary
private String getEnumElements(Class<?> cls)
getListElementClassback to summary
private Class<T> getListElementClass(Method meth)
getPrimitiveParserback to summary
private UnaryFunction<String, Object> getPrimitiveParser(Class<T> type)

References Deprecated

UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getSeparatorback to summary
private String getSeparator(Method meth)
getSimpleDataback to summary
private ElementParserImpl.ResultData getSimpleData(final Class<T> type)
makeClassConverterback to summary
private UnaryFunction<String, Object> makeClassConverter(final Class<?> type)

References Deprecated

UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

org.glassfish.pfl.basic.tools.argparser back to summary

private Class ElementParserImpl.ResultData

extends Pair<UnaryFunction<String, Object>, String[]>
Class Inheritance

Field Summary

Inherited from org.glassfish.pfl.basic.contain.Pair:
_first_second

Constructor Summary

AccessConstructor and Description
public
ResultData(UnaryFunction<String, Object> func, String[] desc)
References Deprecated UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

Method Summary

Inherited from org.glassfish.pfl.basic.contain.Pair:
equalsfirsthashCodesecondtoString

Constructor Detail

ResultDataback to summary
public ResultData(UnaryFunction<String, Object> func, String[] desc)

References Deprecated

UnaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.