public class JavaClass extends ParameterizedGraphCondition implements JavaClassBuilder, JavaClassBuilderAt, JavaClassBuilderInFile, JavaClassBuilderLineMatch
GraphCondition that matches Vertices in the graph based upon the provided parameters.| Modifier and Type | Method and Description |
|---|---|
JavaClassBuilderAt |
annotationMatches(AnnotationTypeCondition condition)
Specifies an annotation that must be present on the current element.
|
JavaClassBuilderAt |
annotationMatches(String element,
AnnotationCondition condition)
Specifies a specific condition match for filtering annotations based upon their elements.
|
org.ocpsoft.rewrite.config.ConditionBuilder |
as(String variable)
Optionally specify the variable name to use for the output of this condition
|
JavaClassBuilderAt |
at(TypeReferenceLocation... locations)
Only match if the TypeReference is at the specified location within the file.
|
protected boolean |
evaluateAndPopulateValueStores(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FrameCreationContext frameCreationContext) |
protected boolean |
evaluateWithValueStore(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FrameContext frameContext) |
static JavaClassBuilderReferences |
from(String inputVarName)
Create a new
JavaClass Condition based upon the provided Java regular expression. |
List<TypeReferenceLocation> |
getLocations() |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getMatchesSource() |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getReferences() |
Set<String> |
getRequiredParameterNames() |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getTypeFilterRegex() |
String |
getVarname() |
JavaClassBuilderInFile |
inType(String typeFilterPattern)
Specify a Java type pattern pattern for which this condition should match.
|
JavaClassBuilderLineMatch |
matchesSource(String lineMatchRegex)
Specify the exact regex for the line to match (useful to distinguish hard-coded strings etc.)
|
static JavaClassBuilder |
references(String regex)
Create a new
JavaClass Condition based upon the provided Java regular expression. |
void |
setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store) |
String |
toString() |
evaluateevaluate, getInputVariablesName, getOutputVariablesName, setInputVariablesName, setOutputVariablesName, setResultsand, andNot, or, orNotpublic static JavaClassBuilder references(String regex)
JavaClass Condition based upon the provided Java regular expression.public static JavaClassBuilderReferences from(String inputVarName)
JavaClass Condition based upon the provided Java regular expression.public JavaClassBuilderInFile inType(String typeFilterPattern)
inType in interface JavaClassBuilderinType in interface JavaClassBuilderLineMatchpublic JavaClassBuilderLineMatch matchesSource(String lineMatchRegex)
JavaClassBuildermatchesSource in interface JavaClassBuilderpublic JavaClassBuilderAt annotationMatches(String element, AnnotationCondition condition)
JavaClassBuilderAtannotationMatches in interface JavaClassBuilderAtpublic JavaClassBuilderAt annotationMatches(AnnotationTypeCondition condition)
JavaClassBuilderAtannotationMatches in interface JavaClassBuilderAtpublic JavaClassBuilderAt at(TypeReferenceLocation... locations)
at in interface JavaClassBuilderat in interface JavaClassBuilderInFileat in interface JavaClassBuilderLineMatchpublic org.ocpsoft.rewrite.config.ConditionBuilder as(String variable)
as in interface JavaClassBuilderas in interface JavaClassBuilderAtas in interface JavaClassBuilderInFileas in interface JavaClassBuilderLineMatchprotected boolean evaluateAndPopulateValueStores(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FrameCreationContext frameCreationContext)
evaluateAndPopulateValueStores in class ParameterizedGraphConditionprotected boolean evaluateWithValueStore(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FrameContext frameContext)
evaluateWithValueStore in class ParameterizedGraphConditionpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface org.ocpsoft.rewrite.param.Parameterizedpublic void setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store)
setParameterStore in interface org.ocpsoft.rewrite.param.Parameterizedpublic String getVarname()
getVarname in class ParameterizedGraphConditionpublic org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getReferences()
public org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getMatchesSource()
public List<TypeReferenceLocation> getLocations()
public org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getTypeFilterRegex()
Copyright © 2018 JBoss by Red Hat. All rights reserved.