Skip navigation links
A C D E F G H I N P U V 

A

ArgumentParser - Class in com.easy.argparse
This thread-safe class parses the command line arguments provided in form of an array of Strings and instantiates data class such that parsed values can be obtained from the created instance of data class
For example, consider below:
Expected format: -m minute [-s seconds]
Command line arguments: -s 45 -m 20
Then, created instance of data class can be used to obtain 20 for minute and 45 for seconds
Follow below rules to use this class:
Usage expression (like -m minute [-s seconds] can contain as many mandatory and optional expressions as required but optional expressions cannot be nested Any other bracket (curly braces or round brackets) must not be present in usage format expression A variable with name same as specified in usage expression must be present in the data class, along with corresponding setter method The data type of variable corresponding to name in usage expression must be either of below:
String Primitive data type (boolean, byte, char, short, int, long, float, double) Wrapper to primitive data type (Boolean, Byte, Character, Short, Integer, Long, Float, Double) An array of any of the above types An optional alias can be defined.
ArgumentParser(String, Class<?>) - Constructor for class com.easy.argparse.ArgumentParser
 
ArgumentParser(String, Class<?>, String) - Constructor for class com.easy.argparse.ArgumentParser
 

C

com.easy.argparse - package com.easy.argparse
 

D

DataClassValidator - Class in com.easy.argparse
This thread safe class examines the data class for given list of usage tokens.
DataClassValidator(Class<?>) - Constructor for class com.easy.argparse.DataClassValidator
 

E

equals(Object) - Method in class com.easy.argparse.UsageToken
 

F

FieldValueManager - Class in com.easy.argparse
This thread safe class parses the command line arguments (as an array of String) and updates the data class with available values
FieldValueManager(Class<?>, UsageTokenManager, String) - Constructor for class com.easy.argparse.FieldValueManager
 
findUsageToken(String) - Method in class com.easy.argparse.UsageTokenManager
 

G

getArgValueObject(UsageToken) - Method in class com.easy.argparse.FieldValueManager
 
getAvailableUsageTokens() - Method in class com.easy.argparse.FieldValueManager
 
getDataVariableName() - Method in class com.easy.argparse.UsageToken
 
getMandatoryExpression() - Method in class com.easy.argparse.UsageExpressionExtractor
 
getMappedField(Class<?>) - Method in class com.easy.argparse.UsageToken
 
getOptionalExpression() - Method in class com.easy.argparse.UsageExpressionExtractor
 
getOptionAliasName() - Method in class com.easy.argparse.UsageToken
 
getOptionName() - Method in class com.easy.argparse.UsageToken
 
getSetterMethod(Class<?>) - Method in class com.easy.argparse.UsageToken
 
getSetterMethod(UsageToken) - Method in class com.easy.argparse.UsageTokenManager
 

H

hashCode() - Method in class com.easy.argparse.UsageToken
 

I

initialize() - Method in class com.easy.argparse.UsageTokenManager
Initialize and update the data structures representing mandatory and optional usage tokens
isMissingMandatoryOption(Set<UsageToken>) - Method in class com.easy.argparse.UsageTokenManager
 

N

noTokensAvailable() - Method in class com.easy.argparse.UsageTokenManager
 

P

parse(String[]) - Method in class com.easy.argparse.ArgumentParser
 

U

updateAvailableValues(String[]) - Method in class com.easy.argparse.FieldValueManager
Parse available values and keep a map of values available for corresponding option in usage
UsageExpressionExtractor - Class in com.easy.argparse
This thread-safe class parses the usage expressions and extracts mandatory and optional expressions from it
UsageToken - Class in com.easy.argparse
This thread-safe class represents a usage token present in the usage expression.
UsageToken(String, String, String) - Constructor for class com.easy.argparse.UsageToken
 
UsageTokenManager - Class in com.easy.argparse
This thread-safe class extracts and manages the mandatory and optional usage tokens from given usage expression
UsageTokenManager(String, Class<?>) - Constructor for class com.easy.argparse.UsageTokenManager
 

V

validateVariableNames(List<UsageToken>) - Method in class com.easy.argparse.DataClassValidator
 
validateVariableNames() - Method in class com.easy.argparse.UsageTokenManager
Validate the data class for mandatory and optional usage tokens
A C D E F G H I N P U V 
Skip navigation links

Copyright © 2017. All rights reserved.