Package com.facebook.buck.rules.modern
Interface ValueVisitor<E extends Exception>
-
- All Known Implementing Classes:
AbstractValueVisitor
,DepsComputingVisitor
,OutputPathVisitor
,StringifyingValueVisitor
public interface ValueVisitor<E extends Exception>
A ValueVisitor can be used to visit all the values referenced from a Buildable. This can be used for things like deriving all the inputs or outputs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
visitBoolean(Boolean value)
void
visitByte(Byte value)
void
visitCharacter(Character value)
void
visitDouble(Double value)
<T extends AddsToRuleKey>
voidvisitDynamic(T value, ClassInfo<T> classInfo)
<T> void
visitField(Field field, T value, ValueTypeInfo<T> valueTypeInfo, List<Class<? extends CustomFieldBehaviorTag>> customBehavior)
void
visitFloat(Float value)
void
visitInteger(Integer value)
<T> void
visitList(com.google.common.collect.ImmutableList<T> value, ValueTypeInfo<T> innerType)
void
visitLong(Long value)
<K,V>
voidvisitMap(com.google.common.collect.ImmutableMap<K,V> value, ValueTypeInfo<K> keyType, ValueTypeInfo<V> valueType)
<T> void
visitNullable(T value, ValueTypeInfo<T> inner)
<T> void
visitOptional(Optional<T> value, ValueTypeInfo<T> innerType)
void
visitOutputPath(OutputPath value)
void
visitPath(Path path)
<T> void
visitSet(com.google.common.collect.ImmutableSet<T> value, ValueTypeInfo<T> innerType)
void
visitShort(Short value)
<K,V>
voidvisitSortedMap(com.google.common.collect.ImmutableSortedMap<K,V> value, ValueTypeInfo<K> keyType, ValueTypeInfo<V> valueType)
<T> void
visitSortedSet(com.google.common.collect.ImmutableSortedSet<T> value, ValueTypeInfo<T> innerType)
void
visitSourcePath(SourcePath value)
void
visitString(String value)
void
visitTargetConfiguration(TargetConfiguration value)
-
-
-
Method Detail
-
visitList
<T> void visitList(com.google.common.collect.ImmutableList<T> value, ValueTypeInfo<T> innerType) throws E extends Exception
-
visitSet
<T> void visitSet(com.google.common.collect.ImmutableSet<T> value, ValueTypeInfo<T> innerType) throws E extends Exception
-
visitSortedSet
<T> void visitSortedSet(com.google.common.collect.ImmutableSortedSet<T> value, ValueTypeInfo<T> innerType) throws E extends Exception
-
visitMap
<K,V> void visitMap(com.google.common.collect.ImmutableMap<K,V> value, ValueTypeInfo<K> keyType, ValueTypeInfo<V> valueType) throws E extends Exception
-
visitSortedMap
<K,V> void visitSortedMap(com.google.common.collect.ImmutableSortedMap<K,V> value, ValueTypeInfo<K> keyType, ValueTypeInfo<V> valueType) throws E extends Exception
-
visitNullable
<T> void visitNullable(@Nullable T value, ValueTypeInfo<T> inner) throws E extends Exception
-
visitOptional
<T> void visitOptional(Optional<T> value, ValueTypeInfo<T> innerType) throws E extends Exception
-
visitOutputPath
void visitOutputPath(OutputPath value) throws E extends Exception
-
visitSourcePath
void visitSourcePath(SourcePath value) throws E extends Exception
-
visitField
<T> void visitField(Field field, T value, ValueTypeInfo<T> valueTypeInfo, List<Class<? extends CustomFieldBehaviorTag>> customBehavior) throws E extends Exception
-
visitDynamic
<T extends AddsToRuleKey> void visitDynamic(T value, ClassInfo<T> classInfo) throws E extends Exception
-
visitTargetConfiguration
void visitTargetConfiguration(TargetConfiguration value) throws E extends Exception
-
-