public class nl.basjes.parse.useragent.analyze.MatcherExtractAction extends nl.basjes.parse.useragent.analyze.MatcherAction
{
private static final org.apache.logging.log4j.Logger LOG;
private final java.lang.String attribute;
private final long confidence;
private java.lang.String foundValue;
private java.lang.String fixedValue;
private final java.lang.String expression;
private nl.basjes.parse.useragent.AgentField$MutableAgentField resultAgentField;
private void <init>()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
specialinvoke v.<nl.basjes.parse.useragent.analyze.MatcherAction: void <init>()>();
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue> = null;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue> = null;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute> = null;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence> = -1L;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String expression> = null;
return;
}
public void <init>(java.lang.String, long, java.lang.String, nl.basjes.parse.useragent.analyze.Matcher)
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
long v;
java.lang.String v, v;
nl.basjes.parse.useragent.analyze.Matcher v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v := @parameter: java.lang.String;
v := @parameter: long;
v := @parameter: java.lang.String;
v := @parameter: nl.basjes.parse.useragent.analyze.Matcher;
specialinvoke v.<nl.basjes.parse.useragent.analyze.MatcherAction: void <init>()>();
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue> = null;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue> = null;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute> = v;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence> = v;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String expression> = v;
virtualinvoke v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: void init(java.lang.String,nl.basjes.parse.useragent.analyze.Matcher)>(v, v);
return;
}
public void setResultAgentField(nl.basjes.parse.useragent.AgentField$MutableAgentField)
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
nl.basjes.parse.useragent.AgentField$MutableAgentField v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v := @parameter: nl.basjes.parse.useragent.AgentField$MutableAgentField;
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: nl.basjes.parse.useragent.AgentField$MutableAgentField resultAgentField> = v;
return;
}
protected nl.basjes.parse.useragent.yauaa.shaded.org.antlr.v.runtime.ParserRuleContext parseWalkerExpression(nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser)
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser$MatcherExtractContext v;
nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v := @parameter: nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser;
v = virtualinvoke v.<nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser: nl.basjes.parse.useragent.parser.UserAgentTreeWalkerParser$MatcherExtractContext matcherExtract()>();
return v;
}
public boolean isFixedValue()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
java.lang.String v;
boolean v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue>;
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
protected void setFixedValue(java.lang.String)
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
org.apache.logging.log4j.Logger v;
java.lang.Long v;
long v;
java.lang.String v, v;
boolean v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v := @parameter: java.lang.String;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object)>("-- set Fixed value({} , {} , {})", v, v, v);
label:
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue> = v;
return;
}
public java.lang.String getAttribute()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
java.lang.String v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
return v;
}
public void inform(java.lang.String, nl.basjes.parse.useragent.analyze.treewalker.steps.WalkList$WalkResult)
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
nl.basjes.parse.useragent.analyze.treewalker.steps.WalkList$WalkResult v;
org.apache.logging.log4j.Logger v, v, v;
java.lang.String v, v, v, v, v, v, v;
boolean v, v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v := @parameter: java.lang.String;
v := @parameter: nl.basjes.parse.useragent.analyze.treewalker.steps.WalkList$WalkResult;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object)>("INFO  : EXTRACT ({}): {}", v, v);
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = virtualinvoke v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String getMatchExpression()>();
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object)>("NEED  : EXTRACT ({}): {}", v, v);
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue>;
if v != null goto label;
v = virtualinvoke v.<nl.basjes.parse.useragent.analyze.treewalker.steps.WalkList$WalkResult: java.lang.String getValue()>();
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue> = v;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object)>("KEPT  : EXTRACT ({}): {}", v, v);
label:
return;
}
public boolean obtainResult()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
long v, v, v, v;
java.lang.Long v, v;
java.lang.String v, v, v, v, v, v, v, v, v;
boolean v, v, v;
nl.basjes.parse.useragent.AgentField$MutableAgentField v, v;
org.apache.logging.log4j.Logger v, v, v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
virtualinvoke v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: void processInformedMatches()>();
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue>;
if v == null goto label;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object)>("Set fixedvalue ({})[{}]: {}", v, v, v);
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: nl.basjes.parse.useragent.AgentField$MutableAgentField resultAgentField>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
virtualinvoke v.<nl.basjes.parse.useragent.AgentField$MutableAgentField: void setValueForced(java.lang.String,long)>(v, v);
return 1;
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue>;
if v == null goto label;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object,java.lang.Object,java.lang.Object)>("Set parsevalue ({})[{}]: {}", v, v, v);
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: nl.basjes.parse.useragent.AgentField$MutableAgentField resultAgentField>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
virtualinvoke v.<nl.basjes.parse.useragent.AgentField$MutableAgentField: void setValueForced(java.lang.String,long)>(v, v);
return 1;
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean verbose>;
if v == 0 goto label;
v = <nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void info(java.lang.String,java.lang.Object)>("Nothing found for {}", v);
label:
return 0;
}
public void reset()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
specialinvoke v.<nl.basjes.parse.useragent.analyze.MatcherAction: void reset()>();
v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String foundValue> = null;
return;
}
public java.lang.String toString()
{
nl.basjes.parse.useragent.analyze.MatcherExtractAction v;
long v, v;
java.lang.String v, v, v, v, v, v, v, v;
nl.basjes.parse.useragent.analyze.Matcher v, v;
boolean v;
v := @this: nl.basjes.parse.useragent.analyze.MatcherExtractAction;
v = virtualinvoke v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: boolean isFixedValue()>();
if v == 0 goto label;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: nl.basjes.parse.useragent.analyze.Matcher matcher>;
v = virtualinvoke v.<nl.basjes.parse.useragent.analyze.Matcher: java.lang.String getMatcherSourceLocation()>();
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String fixedValue>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,long,java.lang.String)>(v, v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Extract FIXED.(\u): (\u, \u) =   \"\u0001\"");
return v;
label:
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: nl.basjes.parse.useragent.analyze.Matcher matcher>;
v = virtualinvoke v.<nl.basjes.parse.useragent.analyze.Matcher: java.lang.String getMatcherSourceLocation()>();
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String attribute>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: long confidence>;
v = v.<nl.basjes.parse.useragent.analyze.MatcherExtractAction: java.lang.String expression>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,long,java.lang.String)>(v, v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Extract DYNAMIC.(\u): (\u, \u):    \u0001");
return v;
}
static void <clinit>()
{
org.apache.logging.log4j.Logger v;
v = staticinvoke <org.apache.logging.log4j.LogManager: org.apache.logging.log4j.Logger getLogger(java.lang.Class)>(class "Lnl/basjes/parse/useragent/analyze/MatcherExtractAction;");
<nl.basjes.parse.useragent.analyze.MatcherExtractAction: org.apache.logging.log4j.Logger LOG> = v;
return;
}
}