All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xcase.rest.generator.raml.events.ParsingEvent Maven / Gradle / Ivy

package com.xcase.rest.generator.raml.events;

import com.xcase.rest.generator.*;
import com.google.gson.*;
import com.xcase.common.impl.simple.core.CommonHTTPManager;
import com.xcase.common.utils.ConverterUtils;
import com.xcase.rest.generator.raml.EventType;
import com.xcase.rest.generator.raml.IParsingEventVisitor;
import com.xcase.rest.generator.raml.Mark;
import java.lang.invoke.MethodHandles;
import java.io.*;
import java.net.*;
import java.nio.file.*;
import java.util.*;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public abstract class ParsingEvent
{
    /// 
    /// Gets a value indicating the variation of depth caused by this event.
    /// The value can be either -1, 0 or 1. For start events, it will be 1,
    /// for end events, it will be -1, and for the remaining events, it will be 0.
    /// 
    public int NestingIncrease;

    /// 
    /// Gets the event type, which allows for simpler type comparisons.
    /// 
    public EventType Type;

    /// 
    /// Gets the position in the input stream where the event starts.
    /// 
    public Mark Start;

    /// 
    /// Gets the position in the input stream where the event ends.
    /// 
    public Mark End;

    /// 
    /// Accepts the specified visitor.
    /// 
    /// Visitor to accept, may not be null
    public abstract void accept(IParsingEventVisitor visitor);

    /// 
    /// Initializes a new instance of the  class.
    /// 
    /// The start position of the event.
    /// The end position of the event.
    public ParsingEvent(Mark start, Mark end)
    {
        this.Start = start;
        this.End = end;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy