- public static final Function<ASTSchemaSource, SourceIdentifier> GET_IDENTIFIER = new Function<ASTSchemaSource, SourceIdentifier>() {
- @Override
- public SourceIdentifier apply(@Nonnull final ASTSchemaSource input) {
- Preconditions.checkNotNull(input);
- return input.getIdentifier();
- }
- };
- public static final Function<ASTSchemaSource, SourceIdentifier> GET_SEMVER_IDENTIFIER = new Function<ASTSchemaSource, SourceIdentifier>() {
- @Override
- public SemVerSourceIdentifier apply(@Nonnull final ASTSchemaSource input) {
- Preconditions.checkNotNull(input);
- return input.getSemVerIdentifier();
- }
- };
- public static final Function<ASTSchemaSource, YangModelDependencyInfo> GET_DEPINFO = new Function<ASTSchemaSource, YangModelDependencyInfo>() {
- @Override
- public YangModelDependencyInfo apply(@Nonnull final ASTSchemaSource input) {
- Preconditions.checkNotNull(input);
- return input.getDependencyInformation();
- }
- };
- public static final Function<ASTSchemaSource, ParserRuleContext> GET_AST = new Function<ASTSchemaSource, ParserRuleContext>() {
- @Override
- public ParserRuleContext apply(@Nonnull final ASTSchemaSource input) {
- Preconditions.checkNotNull(input);
- return input.getAST();
- }
- };
+ @Deprecated
+ public static final Function<ASTSchemaSource, SourceIdentifier> GET_IDENTIFIER = ASTSchemaSource::getIdentifier;
+ @Deprecated
+ public static final Function<ASTSchemaSource, SourceIdentifier> GET_SEMVER_IDENTIFIER = ASTSchemaSource::getSemVerIdentifier;
+ @Deprecated
+ public static final Function<ASTSchemaSource, YangModelDependencyInfo> GET_DEPINFO = ASTSchemaSource::getDependencyInformation;
+ @Deprecated
+ public static final Function<ASTSchemaSource, ParserRuleContext> GET_AST = ASTSchemaSource::getAST;