link start!
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package org.apache.velocity.context;
|
||||
|
||||
public interface Context {
|
||||
boolean containsKey(Object obj);
|
||||
|
||||
Object get(String str);
|
||||
|
||||
Object[] getKeys();
|
||||
|
||||
Object put(String str, Object obj);
|
||||
|
||||
Object remove(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.apache.velocity.context;
|
||||
|
||||
public interface InternalContextAdapter extends InternalHousekeepingContext, Context, InternalWrapperContext, InternalEventContext {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.velocity.context;
|
||||
|
||||
import org.apache.velocity.app.event.EventCartridge;
|
||||
|
||||
public interface InternalEventContext {
|
||||
EventCartridge attachEventCartridge(EventCartridge eventCartridge);
|
||||
|
||||
EventCartridge getEventCartridge();
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package org.apache.velocity.context;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.velocity.runtime.resource.Resource;
|
||||
import org.apache.velocity.util.introspection.IntrospectionCacheData;
|
||||
|
||||
interface InternalHousekeepingContext {
|
||||
int getCurrentMacroCallDepth();
|
||||
|
||||
String getCurrentMacroName();
|
||||
|
||||
Resource getCurrentResource();
|
||||
|
||||
String getCurrentTemplateName();
|
||||
|
||||
List getMacroLibraries();
|
||||
|
||||
Object[] getMacroNameStack();
|
||||
|
||||
Object[] getTemplateNameStack();
|
||||
|
||||
IntrospectionCacheData icacheGet(Object obj);
|
||||
|
||||
void icachePut(Object obj, IntrospectionCacheData introspectionCacheData);
|
||||
|
||||
void popCurrentMacroName();
|
||||
|
||||
void popCurrentTemplateName();
|
||||
|
||||
void pushCurrentMacroName(String str);
|
||||
|
||||
void pushCurrentTemplateName(String str);
|
||||
|
||||
void setCurrentResource(Resource resource);
|
||||
|
||||
void setMacroLibraries(List list);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.velocity.context;
|
||||
|
||||
public interface InternalWrapperContext {
|
||||
InternalContextAdapter getBaseContext();
|
||||
|
||||
Context getInternalUserContext();
|
||||
|
||||
Object localPut(String str, Object obj);
|
||||
}
|
||||
Reference in New Issue
Block a user